Tutorial Hooking and patching template with toast message

TheLGL

Awesome Active Platinian
Original poster
Skilled
Feb 19, 2020
156
4,207
193
UK
I just created a simple template for hooking and patching without mod menu. Support both Android Studio and AIDE

This project does not cover the basics how to mod games in general, you must have the skills already!

Features
- KittyMemory
- MSHook Function
- And64InlineHook
- String obfuscator
- Macros
- Toast message

Simple step by step
The steps are usually same way as the mod menu project, but simpler steps

Download project: GitHub - LGLTeam/Android-Hooking-Patching-Template: Hooking and Patching template for Android

Open this project

Make some changes

Build > Build bundle(s) / APK(s) > Build APK(s) to compile the app. The file app-debug.apk will be created

Decompile the game and app-debug.apk

Copy lib to the game

Copy "com" smali to the game's smali folder, any smali folders doesn't matter

Find game's main activity from AndroidManifest.xml and locate the main activity smali file. Make sure it has OnCreate method

Add this line below OnCreate

Code:
invoke-static {p0}, Lcom/android/support/Main;->Start(Landroid/content/Context;)V
Compile and sign the game

The full defailed tutorial can be seen here and it's always updated since managing Wiki pages is better: