├── FileObserver ├── .idea │ ├── .name │ ├── copyright │ │ └── profiles_settings.xml │ ├── encodings.xml │ ├── modules.xml │ ├── runConfigurations.xml │ ├── compiler.xml │ ├── gradle.xml │ └── misc.xml ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── activity_monitor.xml │ │ │ │ └── activity_main.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── demo │ │ │ └── asus │ │ │ └── fileobserver │ │ │ ├── MainActivity.java │ │ │ ├── MonitorActivity.java │ │ │ └── RecursiveFileObserver.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── ProtectSection ├── jni │ ├── Application.mk │ ├── Android.mk │ └── protect_section.cpp ├── APP │ ├── ic_launcher-web.png │ ├── libs │ │ └── armeabi │ │ │ └── libprotect_section.so │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── layout │ │ │ └── activity_main.xml │ ├── AndroidManifest.xml │ └── src │ │ └── com │ │ └── example │ │ └── protectsection │ │ └── MainActivity.java └── crypto code │ └── main.c ├── ProtectFunc ├── jni │ ├── Application.mk │ ├── Android.mk │ └── ProtectFunc.cpp ├── App │ └── ProtectFunc │ │ ├── ic_launcher-web.png │ │ ├── libs │ │ └── armeabi │ │ │ └── libProtectFunc.so │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── layout │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── src │ │ └── com │ │ └── example │ │ └── protectfunc │ │ └── MainActivity.java └── crypto code │ └── main.c ├── dex_parser ├── readme.md ├── leb128.pyc ├── classes.dex ├── dex_class.pyc ├── parse_dex.pyc ├── leb128.py ├── method_code_class.py ├── dex_class.py └── parse_dex.py ├── android_inlinehook ├── Application.mk ├── backtrace.h ├── utils.h ├── log.h ├── asm.S ├── Android.mk ├── README.md ├── list.h ├── utils.c ├── inlineHook.h ├── backtrace.c └── inlineHook.c ├── EnulatorCache ├── ReadMe.md ├── jni │ ├── EnulatorCache.cpp │ └── Android.mk └── src │ └── com │ └── example │ └── enulatorcache │ └── MainActivity.java ├── .gitattributes └── .gitignore /FileObserver/.idea/.name: -------------------------------------------------------------------------------- 1 | FileObserver -------------------------------------------------------------------------------- /FileObserver/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /FileObserver/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /ProtectSection/jni/Application.mk: -------------------------------------------------------------------------------- 1 | 2 | APP_ABI := armeabi -------------------------------------------------------------------------------- /ProtectFunc/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_ABI := armeabi armeabi-v7a x86 -------------------------------------------------------------------------------- /dex_parser/readme.md: -------------------------------------------------------------------------------- 1 | ###dex_parser 2 | Parse the dex file by python -------------------------------------------------------------------------------- /android_inlinehook/Application.mk: -------------------------------------------------------------------------------- 1 | APP_ABI := armeabi armeabi-v7a 2 | APP_PIE:= true -------------------------------------------------------------------------------- /dex_parser/leb128.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/dex_parser/leb128.pyc -------------------------------------------------------------------------------- /EnulatorCache/ReadMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/EnulatorCache/ReadMe.md -------------------------------------------------------------------------------- /dex_parser/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/dex_parser/classes.dex -------------------------------------------------------------------------------- /dex_parser/dex_class.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/dex_parser/dex_class.pyc -------------------------------------------------------------------------------- /dex_parser/parse_dex.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/dex_parser/parse_dex.pyc -------------------------------------------------------------------------------- /EnulatorCache/jni/EnulatorCache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/EnulatorCache/jni/EnulatorCache.cpp -------------------------------------------------------------------------------- /FileObserver/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /ProtectSection/APP/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/ProtectSection/APP/ic_launcher-web.png -------------------------------------------------------------------------------- /FileObserver/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /ProtectFunc/App/ProtectFunc/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/ProtectFunc/App/ProtectFunc/ic_launcher-web.png -------------------------------------------------------------------------------- /ProtectSection/APP/libs/armeabi/libprotect_section.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/ProtectSection/APP/libs/armeabi/libprotect_section.so -------------------------------------------------------------------------------- /android_inlinehook/backtrace.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKTRACE_H 2 | #define _BACKTRACE_H 3 | 4 | int checkThreadsafety(pid_t *tids, uint32_t *addrs, int length); 5 | 6 | #endif -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/FileObserver/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/FileObserver/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ProtectFunc/App/ProtectFunc/libs/armeabi/libProtectFunc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/ProtectFunc/App/ProtectFunc/libs/armeabi/libProtectFunc.so -------------------------------------------------------------------------------- /EnulatorCache/src/com/example/enulatorcache/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChengChengCC/Android-demo/HEAD/EnulatorCache/src/com/example/enulatorcache/MainActivity.java -------------------------------------------------------------------------------- /FileObserver/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /EnulatorCache/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := EnulatorCache 6 | LOCAL_SRC_FILES := EnulatorCache.cpp 7 | 8 | include $(BUILD_SHARED_LIBRARY) 9 | -------------------------------------------------------------------------------- /android_inlinehook/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef _UTILS_H 2 | #define _UTILS_H 3 | 4 | void contAllThreads(pid_t pid, pid_t *tids); 5 | void stopAllThreads(pid_t pid, pid_t *tids); 6 | int getAllTids(pid_t pid, pid_t *tids); 7 | 8 | #endif -------------------------------------------------------------------------------- /ProtectSection/APP/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ProtectSection 5 | Hello world! 6 | 7 | 8 | -------------------------------------------------------------------------------- /ProtectFunc/App/ProtectFunc/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ProtectFunc 5 | Hello world! 6 | 7 | 8 | -------------------------------------------------------------------------------- /ProtectFunc/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := ProtectFunc 6 | LOCAL_SRC_FILES := ProtectFunc.cpp 7 | LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog 8 | include $(BUILD_SHARED_LIBRARY) 9 | -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /android_inlinehook/log.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOG_H 2 | #define _LOG_H 3 | 4 | #ifdef ENABLE_DEBUG 5 | #include 6 | #define LOG_TAG "ele7enxxh_inlineHook" 7 | #define LOGD(fmt, args...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG, fmt, ##args) 8 | #else 9 | #define LOGD(fmt,args...) 10 | #endif 11 | 12 | #endif -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | FileObserver 3 | input the path to watch: 4 | click to start watch 5 | click to stop watch 6 | 7 | -------------------------------------------------------------------------------- /ProtectSection/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := protect_section 6 | #VisualGDBAndroid: AutoUpdateSourcesInNextLine 7 | LOCAL_SRC_FILES := protect_section.cpp 8 | LOCAL_ARM_MODE := arm 9 | LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog 10 | 11 | APP_ABI := armeabi armeabi-v7a x86 12 | include $(BUILD_SHARED_LIBRARY) 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /FileObserver/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /FileObserver/app/src/main/res/layout/activity_monitor.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |