Tutorial ImGUI Tester app - Quickly test your ImGUI mod menu on Android

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,546
303,888
1,213
Modding World
1692873156951.png


I made a sample app using Unity engine and injected ImGUI for design testing purposes.

Download:


How to use:
As long as your lib doesn't require calling additional Java methods, you can just open the APK file as a ZIP file and replace the libtest.so in the lib folder straight forward. After making changes, zipalign and sign the APK file. As simple as that

Note:
- It is mandatory to use x86 libs if you use emulators on PC. Running ARM libs only doesn't work.
- I have disabled Vulkan support because eglSwapBuffers would be unused, thus ImGUI would crash due to lack of CreateContext call. I have not seen any ImGUI that uses Vulkan. Let me know if you found any ImGUI sources that uses both OpenGL and Vulkan

In this example, I'm using Zygisk-ImGui-Menu, but in order to run ImGUI from APK, I added constructor below hack_thread method in hook.cpp

C++:
__attribute__((constructor))
void lib_main() {
    pthread_t ptid;
    pthread_create(&ptid, NULL, hack_thread, NULL);
}
For documentation about ImGUI, see: Home
 

Rusik game

Platinian
Jan 18, 2019
20
2
3
38
Latvia
I need to rename my lib to libtest? When I do it ant install without zipalign in installs but menu don't shows, but then I zipalign, it crashes
 

cyberplays

Rookie
Sep 30, 2023
3
0
1
19
Hi im a Silent fan

How can i target 32bit on Zygisk IMGUI template?

cause when i install the module no imgui showing in the 32bit game. thanks

Please bare im just new in modding <3
 

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,546
303,888
1,213
Modding World
Hi im a Silent fan

How can i target 32bit on Zygisk IMGUI template?

cause when i install the module no imgui showing in the 32bit game. thanks

Please bare im just new in modding <3
Maybe change in .gradle file? I haven't got into Zygisk module much
 

cyberplays

Rookie
Sep 30, 2023
3
0
1
19
Maybe change in .gradle file? I haven't got into Zygisk module much
thanks im gonna try find a way causei have issue in 64bit game the screen of the game is get bigger
in short (the touch of screen is normal but the size of screen is big)