├── .gitattributes ├── java ├── test │ ├── libs │ │ ├── x86 │ │ │ └── libandhook.so │ │ ├── x86_64 │ │ │ └── libandhook.so │ │ ├── arm64-v8a │ │ │ └── libandhook.so │ │ └── armeabi-v7a │ │ │ └── libandhook.so │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── values-v11 │ │ │ └── styles.xml │ │ ├── values-v14 │ │ │ └── styles.xml │ │ └── layout │ │ │ └── activity_main.xml │ ├── src │ │ └── apk │ │ │ └── andhook │ │ │ ├── test │ │ │ ├── A.java │ │ │ ├── B.java │ │ │ └── AndTest.java │ │ │ ├── ui │ │ │ ├── MainApplication.java │ │ │ └── MainActivity.java │ │ │ └── AndHook.java │ ├── .classpath │ ├── project.properties │ ├── .settings │ │ └── org.eclipse.jdt.core.prefs │ ├── .project │ └── AndroidManifest.xml └── library │ ├── libs │ ├── x86 │ │ └── libandhook.so │ ├── x86_64 │ │ └── libandhook.so │ ├── arm64-v8a │ │ └── libandhook.so │ └── armeabi-v7a │ │ └── libandhook.so │ ├── AndroidManifest.xml │ ├── .classpath │ ├── .settings │ └── org.eclipse.jdt.core.prefs │ ├── project.properties │ ├── .project │ └── src │ └── apk │ └── andhook │ └── AndHook.java ├── deprecated ├── andhook.vcxproj.filters ├── andhook.vcxproj ├── andhook.cpp └── dalvik_vm.h ├── .gitignore ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.h linguist-language=C++ -------------------------------------------------------------------------------- /java/test/libs/x86/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/test/libs/x86/libandhook.so -------------------------------------------------------------------------------- /java/library/libs/x86/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/library/libs/x86/libandhook.so -------------------------------------------------------------------------------- /java/test/libs/x86_64/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/test/libs/x86_64/libandhook.so -------------------------------------------------------------------------------- /java/library/libs/x86_64/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/library/libs/x86_64/libandhook.so -------------------------------------------------------------------------------- /java/test/libs/arm64-v8a/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/test/libs/arm64-v8a/libandhook.so -------------------------------------------------------------------------------- /java/test/libs/armeabi-v7a/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/test/libs/armeabi-v7a/libandhook.so -------------------------------------------------------------------------------- /java/library/libs/arm64-v8a/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/library/libs/arm64-v8a/libandhook.so -------------------------------------------------------------------------------- /java/library/libs/armeabi-v7a/libandhook.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/library/libs/armeabi-v7a/libandhook.so -------------------------------------------------------------------------------- /java/test/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/test/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /java/test/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/test/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /java/test/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiuChoi/AndHook/master/java/test/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java/test/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AndHook 5 | Hello world! 6 | 7 | 8 | -------------------------------------------------------------------------------- /deprecated/andhook.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /java/test/src/apk/andhook/test/A.java: -------------------------------------------------------------------------------- 1 | package apk.andhook.test; 2 | 3 | import android.util.Log; 4 | 5 | public final class A { 6 | public static String AA(final String s) { 7 | Log.d(A.class.toString(), "public static method A::AA hit!"); 8 | return "return from A::AA with param " + s; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /java/test/src/apk/andhook/test/B.java: -------------------------------------------------------------------------------- 1 | package apk.andhook.test; 2 | 3 | import android.util.Log; 4 | 5 | public final class B { 6 | public static String BB(final String s) { 7 | Log.d(B.class.toString(), "public static method B::BB hit!"); 8 | return "return from B::BB with param " + s; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /java/test/src/apk/andhook/ui/MainApplication.java: -------------------------------------------------------------------------------- 1 | package apk.andhook.ui; 2 | 3 | import android.app.Application; 4 | 5 | public final class MainApplication extends Application { 6 | 7 | @Override 8 | public void onCreate() { 9 | android.util.Log.d(MainApplication.class.toString(), "onCreate"); 10 | 11 | apk.andhook.test.AndTest.RunTest(this, this.getContentResolver()); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /java/test/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.dylib 16 | *.dll 17 | 18 | # Fortran module files 19 | *.mod 20 | *.smod 21 | 22 | # Compiled Static libraries 23 | *.lai 24 | *.la 25 | *.a 26 | *.lib 27 | 28 | # Executables 29 | *.exe 30 | *.out 31 | *.app 32 | -------------------------------------------------------------------------------- /java/library/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/test/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /java/test/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /java/library/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /java/test/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | -------------------------------------------------------------------------------- /java/library/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.7 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.7 12 | -------------------------------------------------------------------------------- /java/test/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.7 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.7 12 | -------------------------------------------------------------------------------- /java/library/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | android.library=false 16 | -------------------------------------------------------------------------------- /java/test/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /java/test/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 |