Growtopia Android ImGUI
Growtopia android modmenu with ImGUI.
Features
- Built with ImGUI.
Coming Soon
- None
Requirements
The following dependencies are required to build the library from source.
- NDK Android.
- APK Easy Tools.
- Any text editor. We use Notepad++.
For AIDE users (I'm not sure if this works 100%).
- AIDE CMods.
- NDK AIDE for arm32.
- NDK AIDE for arm64/aarch64.
- APK Editor.
There are many tutorials for installing on youtube, Attention if your android doesn't support arm then it won't work. one of them AIDE CMods tutorial
Building the source
ndk-build
:
git clone https://github.com/ZTzTopia/GrowtopiaImGui.git
cd GrowtopiaImGui
ndk-build
You need ninja build system to use ninja cmake generator.
cmake
:
mkdir build
cd build
cmake -GNinja -DCMAKE_MAKE_PROGRAM=/path/to/ninja.exe -DCMAKE_ANDROID_NDK=/path/to/android-ndk \
-DCMAKE_TOOLCHAIN_FILE=toolchains/android.cmake ..
cmake --build .
Inject to growtopia
1. Decompile growtopia apk
I highly recommend using APK Easy Tools
but if you can't use it you can use the APK Editor
on Android. Because APK Editor
most likely there will be an error when recompiling the smali folder.
Or you can get growtopia with edited: GrowtopiaLatestEdited
2. Add your library to apk
Copy the library file (.so) from libs/armeabi-v7a
to the target game. Watch out the folder names, we don't want to mix them up, so make sure to copy our lib file to the correct architecture. Like our armeabi-v7a lib goes to the target games armeabi-v7a folder, arm64-v8a lib goes to the arm64-v8a folder...
PUTTING THE LIB FILE ON A WRONG ARCHITECTURE LIKE PUTTING ARM64 LIB TO ARMV7 WILL RESULT A CRASH!
1. Load your library
Now go to smali/com/rtsoft/growtopia
and open the Main.smali
file, Add this code before const-string v0, "growtopia"
.
const-string v0, "ModMenu"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
If you don't see smali
folder in APK Editor:
4. Compiling game apk
Now compile and sign the apk, and install it on your device. Congrats. You have successfully implemented a mod menu.