From ef55d2305145c7c709c5d800aae8d6d04e84d4a3 Mon Sep 17 00:00:00 2001 From: PranavPurwar Date: Mon, 25 Sep 2023 16:25:25 +0530 Subject: [PATCH] Create module for aliuhook library This was done to prevent a policy violation in F-Droid that restricts usage of such repositories for security concerns. Tested-by: Pranav Purwar Signed-off-by: PranavPurwar --- .idea/gradle.xml | 1 + app/build.gradle.kts | 9 +- feature/aliuhook/.gitignore | 1 + feature/aliuhook/README.md | 18 + feature/aliuhook/build.gradle.kts | 56 +++ feature/aliuhook/src/main/AndroidManifest.xml | 17 + feature/aliuhook/src/main/cpp/CMakeLists.txt | 15 + feature/aliuhook/src/main/cpp/aliuhook.cpp | 174 ++++++++ feature/aliuhook/src/main/cpp/aliuhook.h | 22 + feature/aliuhook/src/main/cpp/elf_img.cpp | 251 +++++++++++ feature/aliuhook/src/main/cpp/elf_img.h | 101 +++++ feature/aliuhook/src/main/cpp/hidden_api.cpp | 37 ++ feature/aliuhook/src/main/cpp/hidden_api.h | 14 + feature/aliuhook/src/main/cpp/log.h | 30 ++ .../aliuhook/src/main/cpp/profile_saver.cpp | 60 +++ feature/aliuhook/src/main/cpp/profile_saver.h | 12 + .../de/robv/android/xposed/XC_MethodHook.java | 188 ++++++++ .../android/xposed/XC_MethodReplacement.java | 103 +++++ .../de/robv/android/xposed/XposedBridge.java | 413 ++++++++++++++++++ .../android/xposed/callbacks/IXUnhook.java | 29 ++ .../android/xposed/callbacks/XCallback.java | 86 ++++ settings.gradle.kts | 14 +- util/build.gradle.kts | 11 +- .../rewrite/plugin/api/HookManager.kt | 9 +- 24 files changed, 1662 insertions(+), 9 deletions(-) create mode 100644 feature/aliuhook/.gitignore create mode 100644 feature/aliuhook/README.md create mode 100644 feature/aliuhook/build.gradle.kts create mode 100644 feature/aliuhook/src/main/AndroidManifest.xml create mode 100644 feature/aliuhook/src/main/cpp/CMakeLists.txt create mode 100644 feature/aliuhook/src/main/cpp/aliuhook.cpp create mode 100644 feature/aliuhook/src/main/cpp/aliuhook.h create mode 100644 feature/aliuhook/src/main/cpp/elf_img.cpp create mode 100644 feature/aliuhook/src/main/cpp/elf_img.h create mode 100644 feature/aliuhook/src/main/cpp/hidden_api.cpp create mode 100644 feature/aliuhook/src/main/cpp/hidden_api.h create mode 100644 feature/aliuhook/src/main/cpp/log.h create mode 100644 feature/aliuhook/src/main/cpp/profile_saver.cpp create mode 100644 feature/aliuhook/src/main/cpp/profile_saver.h create mode 100644 feature/aliuhook/src/main/java/de/robv/android/xposed/XC_MethodHook.java create mode 100644 feature/aliuhook/src/main/java/de/robv/android/xposed/XC_MethodReplacement.java create mode 100644 feature/aliuhook/src/main/java/de/robv/android/xposed/XposedBridge.java create mode 100644 feature/aliuhook/src/main/java/de/robv/android/xposed/callbacks/IXUnhook.java create mode 100644 feature/aliuhook/src/main/java/de/robv/android/xposed/callbacks/XCallback.java diff --git a/.idea/gradle.xml b/.idea/gradle.xml index b4049edf3..129b951f2 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -15,6 +15,7 @@