├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── colors.xml │ │ │ ├── ic_launcher_background.xml │ │ │ └── styles.xml │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ └── inject.xml │ │ └── drawable │ │ │ └── ic_launcher_foreground.xml │ │ ├── jniLibs │ │ ├── x86 │ │ │ └── libinject.so │ │ ├── x86_64 │ │ │ └── libinject.so │ │ ├── arm64-v8a │ │ │ └── libinject.so │ │ └── armeabi-v7a │ │ │ └── libinject.so │ │ ├── ic_launcher-playstore.png │ │ ├── jni │ │ ├── Client │ │ │ ├── libs │ │ │ │ ├── x86 │ │ │ │ │ └── libinject.so │ │ │ │ ├── x86_64 │ │ │ │ │ └── libinject.so │ │ │ │ ├── arm64-v8a │ │ │ │ │ └── libinject.so │ │ │ │ └── armeabi-v7a │ │ │ │ │ └── libinject.so │ │ │ ├── Sources │ │ │ │ └── Socket │ │ │ │ │ ├── Socket.h │ │ │ │ │ ├── request.h │ │ │ │ │ └── Socket.cpp │ │ │ ├── includes │ │ │ │ ├── get_device_api_level_inlines.h │ │ │ │ ├── Setup.h │ │ │ │ └── Menu.h │ │ │ └── Client.cpp │ │ ├── Server │ │ │ ├── Sources │ │ │ │ ├── Substrate │ │ │ │ │ ├── SymbolFinder.h │ │ │ │ │ ├── SubstrateHook.h │ │ │ │ │ ├── SubstrateDebug.hpp │ │ │ │ │ ├── Buffer.hpp │ │ │ │ │ ├── SubstrateLog.hpp │ │ │ │ │ ├── SubstrateARM.hpp │ │ │ │ │ ├── SubstratePosixMemory.cpp │ │ │ │ │ ├── hde64.h │ │ │ │ │ ├── SubstrateDebug.cpp │ │ │ │ │ ├── table64.h │ │ │ │ │ ├── CydiaSubstrate.h │ │ │ │ │ ├── SubstrateX86.hpp │ │ │ │ │ ├── hde64.c │ │ │ │ │ └── SymbolFinder.cpp │ │ │ │ ├── KittyMemory │ │ │ │ │ ├── KittyUtils.h │ │ │ │ │ ├── MemoryBackup.h │ │ │ │ │ ├── MemoryPatch.h │ │ │ │ │ ├── MemoryBackup.cpp │ │ │ │ │ ├── KittyUtils.cpp │ │ │ │ │ ├── KittyMemory.cpp │ │ │ │ │ ├── MemoryPatch.cpp │ │ │ │ │ └── KittyMemory.h │ │ │ │ ├── And64InlineHook │ │ │ │ │ ├── README.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── And64InlineHook.hpp │ │ │ │ └── Socket │ │ │ │ │ ├── response.h │ │ │ │ │ ├── Socket.h │ │ │ │ │ └── Socket.cpp │ │ │ └── Server.cpp │ │ ├── Application.mk │ │ ├── Includes │ │ │ ├── config.h │ │ │ ├── log.h │ │ │ ├── Logger.h │ │ │ ├── Utils.h │ │ │ ├── Macros.h │ │ │ └── obfuscate.h │ │ └── Android.mk │ │ ├── java │ │ └── com │ │ │ └── android │ │ │ └── support │ │ │ ├── AppMain.java │ │ │ ├── Main.java │ │ │ ├── Launcher.java │ │ │ ├── MainActivity.java │ │ │ ├── ApkExtract.java │ │ │ ├── GameInfo.java │ │ │ ├── CrashHandler.java │ │ │ └── Preferences.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ └── gradle-wrapper.properties ├── gradle.properties ├── README.md ├── .gitignore ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | LGL Mod Menu 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/jniLibs/x86/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jniLibs/x86/libinject.so -------------------------------------------------------------------------------- /app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /app/src/main/jniLibs/x86_64/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jniLibs/x86_64/libinject.so -------------------------------------------------------------------------------- /app/src/main/jni/Client/libs/x86/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jni/Client/libs/x86/libinject.so -------------------------------------------------------------------------------- /app/src/main/jniLibs/arm64-v8a/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jniLibs/arm64-v8a/libinject.so -------------------------------------------------------------------------------- /app/src/main/jniLibs/armeabi-v7a/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jniLibs/armeabi-v7a/libinject.so -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/jni/Client/libs/x86_64/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jni/Client/libs/x86_64/libinject.so -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/jni/Client/libs/arm64-v8a/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jni/Client/libs/arm64-v8a/libinject.so -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/jni/Client/libs/armeabi-v7a/libinject.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/jni/Client/libs/armeabi-v7a/libinject.so -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/XiaBei-cy/BetterInject/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #202020 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #0277BD 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Oct 24 18:32:28 CEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/jni/Server/Sources/Substrate/SymbolFinder.h: -------------------------------------------------------------------------------- 1 | #ifndef SYMBOL_FINDER 2 | #define SYMBOL_FINDER 3 | 4 | #include 5 | 6 | extern int find_name(pid_t pid, const char *name,const char *libn, unsigned long *addr); 7 | extern int find_libbase(pid_t pid, const char *libn, unsigned long *addr); 8 | #endif -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # To AIDE Users: If you are using 32-bit/ARMv7 phone, please remove arm64-v8a 2 | APP_ABI := APP_ABI := armeabi-v7a 3 | # APP_PLATFORM := android-18 #APP_PLATFORM does not need to be set. It will automatically defaulting 4 | APP_STL := c++_static 5 | APP_OPTIM := release 6 | APP_THIN_ARCHIVE := true 7 | APP_PIE := true 8 | -------------------------------------------------------------------------------- /app/src/main/jni/Server/Sources/KittyMemory/KittyUtils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | namespace KittyUtils { 7 | 8 | bool validateHexString(std::string &xstr); 9 | void toHex(void *const data, const size_t dataLength, std::string &dest); 10 | void fromHex(const std::string &in, void *const data); 11 | 12 | } -------------------------------------------------------------------------------- /app/src/main/jni/Server/Sources/Substrate/SubstrateHook.h: -------------------------------------------------------------------------------- 1 | #ifndef __SUBSTRATEHOOK_H__ 2 | #define __SUBSTRATEHOOK_H__ 3 | 4 | 5 | #include 6 | 7 | #define _extern extern "C" __attribute__((__visibility__("hidden"))) 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | void MSHookFunction(void *symbol, void *replace, void **result); 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /app/src/main/jni/Server/Sources/And64InlineHook/README.md: -------------------------------------------------------------------------------- 1 | # Server.Sources.And64InlineHook 2 | Lightweight ARMv8-A(ARM64, AArch64, Little-Endian) Inline Hook Library for Android C/C++ 3 | 4 | # References 5 | [Arm Compiler armasm User Guide](http://infocenter.arm.com/help/topic/com.arm.doc.100069_0610_00_en/pge1427898258836.html) 6 | [Procedure Call Standard for the Arm® 64-bit Architecture (AArch64)](https://github.com/ARM-software/abi-aa/blob/master/aapcs64/aapcs64.rst) 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/jni/Includes/config.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Perfare on 2020/7/4. 3 | // 4 | 5 | #ifndef AUTO_IL2CPPDUMPER_CONFIG_H 6 | #define AUTO_IL2CPPDUMPER_CONFIG_H 7 | 8 | // Try increase sleep time if having issues with the game. Decrease sleep time if anti-cheat detection it earlier 9 | #define Sleep 2 10 | 11 | // Uncomment for fake lib mode 12 | // It is to load our fake libmain.so or libunity.so and load game's real librealmain.so or librealunity.so 13 | #define UseFakeLib 14 | 15 | #endif //AUTO_IL2CPPDUMPER_CONFIG_H 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/android/support/AppMain.java: -------------------------------------------------------------------------------- 1 | package com.android.support; 2 | import android.app.Application; 3 | import java.io.IOException; 4 | import com.topjohnwu.superuser.Shell; 5 | public class AppMain extends Application { 6 | 7 | @Override 8 | public void onCreate() { 9 | super.onCreate(); 10 | try { 11 | Runtime.getRuntime().exec("su"); 12 | Shell.su("setenforce 0").exec(); 13 | } catch (IOException e) { 14 | e.printStackTrace(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/jni/Includes/log.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Perfare on 2020/7/4. 3 | // 4 | 5 | #ifndef RIRU_IL2CPPDUMPER_LOG_H 6 | #define RIRU_IL2CPPDUMPER_LOG_H 7 | 8 | #include 9 | 10 | #define LOG_TAG "Il2CppDumper" 11 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) 12 | #define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__) 13 | #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) 14 | #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) 15 | 16 | #endif //RIRU_IL2CPPDUMPER_LOG_H 17 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/jni/Includes/Logger.h: -------------------------------------------------------------------------------- 1 | // 2 | // Logger.h 3 | // 4 | // Created by MJ (Ruit) on 1/1/19. 5 | // 6 | 7 | #ifndef Logger_h 8 | #define Logger_h 9 | 10 | #include 11 | #include 12 | 13 | enum LogType { 14 | oDEBUG = 3, 15 | oERROR = 6, 16 | oINFO = 4, 17 | oWARN = 5 18 | }; 19 | 20 | #define TAG ("Mod_Menu") 21 | 22 | #define LOGD(...) ((void)__android_log_print(oDEBUG, TAG, __VA_ARGS__)) 23 | #define LOGE(...) ((void)__android_log_print(oERROR, TAG, __VA_ARGS__)) 24 | #define LOGI(...) ((void)__android_log_print(oINFO, TAG, __VA_ARGS__)) 25 | #define LOGW(...) ((void)__android_log_print(oWARN, TAG, __VA_ARGS__)) 26 | 27 | #endif /* Logger_h */ 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/inject.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 |