Tutorial MOD Menu for il2cpp and native Android Games

Mr Ikso

Solid & Active Platinian
Original poster
Dec 6, 2017
62
79
18
Ukraine
Hello. I created a mod menu for il2cpp and decided to share it with everyone.
I apologize for bad English
Well, let's begin.
Inexhaustible Instruments
- pc
- NDK
- Android Studio 3.x
- Apktool
- Brains and knowledge of C ++, Java, Smali
1. Start
Clone Floating ModMenu repository by link. Launch Android Studio and open our project. We find there a method
Code:
private void modMenu()
Just in this method it will be necessary to add options for the mod menu. There are already two options, you can use them as an example. In .../FloatingModMenu/app/src/main/jni/src/main.cpp itself, we create functions that will implement the hook. Used library KittyMemory. Next you need to call from the native library and connect them with switches.
Example
Java
Code:
private native void godmode_on ();
private void modMenu ()
addSwitch ("God Mode", new SW () {
            public void OnWrite (boolean isChecked) {
                if (isChecked) {
                    godmode_on ();
                   Toast.makeText (getBaseContext (), "God Mode is activated", Toast.LENGTH_SHORT) .show ();
                } else {
                    godmode_off ();
                    Toast.makeText (getBaseContext (), "God Mode is disabled", Toast.LENGTH_SHORT) .show ();
                }
            }
        });
Next, collect the application.
2. Application parsing and code injection.
After we have added all the necessary options, we need to inject this mod in the application.
Decompiling the application with aptktool and other
Decompiling the game with Aptktool and other.
Go to the folder of the application that was parsed and copy all the files from the assets folder (pictures that you can replace with your own), from the lib/armeabi-v7a/libKittyMemory.so folder to the folder with the parsed game.
Next, we need to add permission to display the application on top of others and the mod-menu service.
Open AndroidManifest.xml from the application folder and AndroidManifest.xml from the game folder and from the first AndroidManifest.xml with copy
Code:
<uses-permission android: name = "android.permission.SYSTEM_ALERT_WINDOW" />
and paste to permissions in AndroidManifest.xml games
Next, copy
Code:
 <service android:enabled="true" android:exported="false" android:name="com.mrikso.modmenu.FloatingModMenuService"/>
and paste in the AndroidManifest.xml game before </ application>
Now the most difficult, you need to inject our menu.
From the smali\com\mrikso\modmenu folder of the parsed application, copy all the files with the name FloatingModMenuService ...
in the smali folder of the game.
Next, we need to register the mod menu call and the libKittyMemory library load. We are looking for the main activity of our game. Usually it is written in <application
<application android:allowBackup="true" android:icon="@mipmap/app_icon" android:isGame="true" android:label="@string/app_name" android:roundIcon="@mipmap/app_icon_round" android:supportsRtl="true" android:theme="@style/UnityThemeSelector" android:usesCleartextTraffic="true">
<activity android:configChanges="density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:hardwareAccelerated="false" android:label="@string/app_name" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerActivity" android:screenOrientation="sensorLandscape">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="valhalla.survival.craft.z.StartApp"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true"/>
</activity>
com.unity3d.player.UnityPlayerActivity -> start activity by game.
Go to smali\com\mrikso\modmenu\MainActivity.smali
And we copy in their class to the main class of our game in the # virtual methods

Code:
.method public Start()V
    .locals 3

    .line 23
    const-string v0, "KittyMemory"

    invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

    .line 24
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x17

    if-lt v0, v1, :cond_0

    invoke-static {p0}, Landroid/provider/Settings;->canDrawOverlays(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 25
    new-instance v0, Landroid/content/Intent;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "package:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    const-string v2, "android.settings.action.MANAGE_OVERLAY_PERMISSION"

    invoke-direct {v0, v2, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 26
    .local v0, "intent":Landroid/content/Intent;
    const/16 v1, 0x7d2

    invoke-virtual {p0, v0, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 27
    .end local v0    # "intent":Landroid/content/Intent;
    goto :goto_0

    .line 28
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/mrikso/modmenu/FloatingModMenuService;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Landroid/app/Activity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 30
    :goto_0
    return-void
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 2
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .line 34
    const/16 v0, 0x7d2

    if-ne p1, v0, :cond_1

    .line 35
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 36
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/mrikso/modmenu/FloatingModMenuService;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Landroid/app/Activity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_0

    .line 38
    :cond_0
    const/4 v0, 0x0

    const-string v1, "Draw over other app permission not available. Closing the application"

    invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 39
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    goto :goto_0

    .line 42
    :cond_1
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 44
    :goto_0
    return-void
.end method
Also in OnCreate, the main activity of our game is inserted
Code:
 invoke-virtual {p0}, Lcom/mrikso/modmenu/MainActivity;->Start()V
com/mrikso/modmenu/MainActivity replace with the main Activity path from our game.
3. We collect the game and check the result.
Screenshot_20190608-011036_Floating%20ModMenu.jpg
Screenshot_20190608-011039_Floating%20ModMenu.jpg
Screenshot_20190608-011047_Floating%20ModMenu.jpg
Screenshot_20190608-011129_Floating%20ModMenu.jpg
All successful modifications of games :)
 
Last edited:

Mika Cybertron

PMT Elite Modder
Staff member
Modding-Team
Mar 24, 2017
724
29,588
1,213
20
Indonesia
@superuser hey man, can you give us 1 games that already using that menu? im sure much people can not make it works, and it can be if there is something wrong when you explain it, so if you give 1 example mod with the menu it would be help them!
 
  • Like
Reactions: nkodder and nik2143

Mr Ikso

Solid & Active Platinian
Original poster
Dec 6, 2017
62
79
18
Ukraine
@superuser hey man, can you give us 1 games that already using that menu? im sure much people can not make it works, and it can be if there is something wrong when you explain it, so if you give 1 example mod with the menu it would be help them!
I understand what you mean. That's what I wrote that we need brains :). I have one game for example, but I need something more simple. Inject menu in the game business for about 10 minutes, not more.
 
  • Like
Reactions: BMD4E

BMD4E

Approved Modder
Approved Modder
Apr 4, 2017
355
37,286
1,193
29
United Kingdom
Can this work with non-il2cpp game? I wanted to make menu for NEW LINK that I can on/off auto win
 

Mr Ikso

Solid & Active Platinian
Original poster
Dec 6, 2017
62
79
18
Ukraine
@BMD4E, perhaps along the path /.../FloatingModMenu/app/src/main/jni/src/main.cpp change the name of the library with libil2cpp.so, and write down your offset and the bytes you need to change the game code. Collect the project, decompile and inject into the game.
 
  • Like
Reactions: BMD4E

Whynotme

Platinian
Apr 25, 2019
9
311
78
ANDROID
@superuser i want to ask:
"Just in this method it will be necessary to add options for the mod menu. There are already two options, you can use them as an example. In cpp / main.cpp itself, we create functions that will implement the hook. Used library KittyMemory. Next you need to call from the native library and connect them with switches. "

"cpp / main.cpp itself" - where is it located? Is this thing not:
163252
 

Mr Ikso

Solid & Active Platinian
Original poster
Dec 6, 2017
62
79
18
Ukraine
@superuser i want to ask:
"Just in this method it will be necessary to add options for the mod menu. There are already two options, you can use them as an example. In cpp / main.cpp itself, we create functions that will implement the hook. Used library KittyMemory. Next you need to call from the native library and connect them with switches. "

"cpp / main.cpp itself" - where is it located? Is this thing not:
View attachment 163252
this, it, I was sealed
 
Thread starter Similar threads Forum Replies Date
TheArmKing iPMT [JB] [JB iOS 13 ✔] Hopeless Land: For Survival Ver. 1.8 MOD Menu | Chams Menu | One Hit Kill | No Recoil | Unlimited Ammo + More [14 Features!] MODs FOR JAILBROKEN iOS DEVICES 87
GNaFF Outdated MASS FOR THE DEAD Ver. 1.22.1 MOD Menu APK | One Hit | God Mode Outdated PMT Android MODs 93
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] Home Cross Ver. 6.4 MOD Menu | Unlimited Tokens | Unlimited Coins | VIP for A Year | No Ads MODs FOR JAILBROKEN iOS DEVICES 14
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] Knight War: Idle Defense Ver. 1.2.5 MOD Menu | MAx Attack Range | Max Armor for Hero MODs FOR JAILBROKEN iOS DEVICES 11
TheLGL Tutorial How to make mod menu for il2cpp and native games TUTORIALS 158
BMD4E FREE MOD Mons Awaken v2.0 MOD MENU APK | 1 hit kill GAMES DELETED ON PLAYSTORE 204
Mika Cybertron Modding Tools [EXCLUSIVE] MEGA Tools Injection to Make Mod Menu for Native Games Only Available for Approved Modder & Higher on platinmods.com Tools 68
TheArmKing iPMT [JB] [JB iOS 13 ✔] DC Legends: Battle for Justice Ver. 1.26.9 MOD Menu | One Hit Kill | God Mode | No Skill CD MODs FOR JAILBROKEN iOS DEVICES 63
GNaFF PMT FREE MOD Pirate Tales: Battle for Treasure Ver. 2.01 MOD Menu APK | Always your turn EXCLUSIVE ANDROID MODS BY PMT 52
TheArmKing iPMT [JB] [JB iOS 13 ✔] Mighty Quest For Epic Loot Ver. 4.1.1 MOD Menu | God Mode | No Skill CD | One Hit Kill | Skip Stage | Frozen Clock | Always 2 Crown MODs FOR JAILBROKEN iOS DEVICES 243
Mika Cybertron PMT VIP MOD 영웅 for Kakao Ver. 5.4.9 VIP MOD Menu APK | One Hit Kill | God Mode | Unlimited Skills | Auto Kill | EXCLUSIVE ANDROID MODS BY PMT 1
V Tutorial Template Menu [Free] for Mod Menu Il2cpp and other Native Games TUTORIALS 65
AndnixSH Not Working Poke Fight TH / World of Cutie Ver. 1.0.5 MOD MENU APK | DMG Multiplier | God mode Outdated PMT Android MODs 37
AndnixSH Not Working Pettie Quest (Unreleased) Ver. 4.0.0 MOD MENU APK | DMG multiplier | God mode Outdated PMT Android MODs 28
Yeowang PMT FREE MOD DC Legends Battle for Justice Ver. 1.26.9 MOD Menu APK | Attack & Defense Multiplier x1 - x1000 | No Skill Cooldown | PvP - PvE | NO ADS EXCLUSIVE ANDROID MODS BY PMT 458
G-Bo ッ iOS 12 Mod Menu Theos NIC Template - Full Guide To Create Own MM for iOS! EXCLUSIVE iOS MODS BY iPMT 103
BMD4E FREE MOD 백발백중 for kakao 3.4.0 Mod Apk with Mod menu - Auto fire | Always Critical | No recoil | God mode | High damage GAMES DELETED ON PLAYSTORE 54
P Tutorial PLATINMODS [HOW TO MAKE MOD MENU] MENU MAKER FOR UNITY GAMES V1.0 PUBLIC-VERSION TUTORIALS 145
GNaFF PMT FREE MOD ガンダムブレイカーモバイル Ver. 2.00.01 MOD Menu APK | Auto Win | Unlimited Skill EXCLUSIVE ANDROID MODS BY PMT 0
nik2143 PMT FREE MOD Tap Titans 2 Ver. 3.12.2 MOD Menu APK | Coins Increase | Coins not decrease | Mana not decrease | No Skill Cooldown | Vip Features Enabled EXCLUSIVE ANDROID MODS BY PMT 16
DESLOKAT PMT FREE MOD Hero Cantare with WEBTOON™ Ver. 1.2.169 MOD APK | MENU | Auto Win EXCLUSIVE ANDROID MODS BY PMT 54
DESLOKAT PMT FREE MOD 英雄神鬪曲-泰特拉的傳說 (Hero Cantare JP) Ver. 1.2.182 MOD APK | MENU | Auto Win EXCLUSIVE ANDROID MODS BY PMT 7
DESLOKAT PMT FREE MOD ブレイブソード×ブレイズソウル (Brave Sword x Blaze Soul JP) Ver. 2.4.3 MOD APK | Menu | DMG | DEF EXCLUSIVE ANDROID MODS BY PMT 1
AndnixSH iPMT [JB] [JB iOS 13 ✔] Girls' Frontline Ver. 2.0414 MOD Menu | Damage multiplier | Defense multiplier | Instant die MODs FOR JAILBROKEN iOS DEVICES 4
GNaFF PMT FREE MOD Job Hunt Heroes : Idle RPG Ver. 7.2.1 MOD Menu APK | Unlimited Money EXCLUSIVE ANDROID MODS BY PMT 19
Yaskashije FREE MOD Fate/Grand Order English 2.2.2 Mod Menu Apk [Massive Damage / Always Player Turn / Always Crit /NP charges to Max] ANDROID MODS BY APPROVED MODDERS 57
TheArmKing iPMT [JB] [JB iOS 13 ✔] Modern Strike Online: PvP FPS Ver. 1.40.0 MOD Menu | ESP with Various Configurations | God Mode | One Hit Kill + MORE [21 Features!] MODs FOR JAILBROKEN iOS DEVICES 32
GNaFF AWAITING UPDATE Fate:The One Ver. 0.1.17 MOD Menu APK | Auto Win PMT MODs Waiting For Update 10
DESLOKAT PMT FREE MOD [18+] Hot Gym (Nutaku) Ver. 1.1.0 MOD APK | Menu | Gems EXCLUSIVE ANDROID MODS BY PMT 431
GNaFF PMT FREE MOD 崩壊学園【本格横スクロールアクションゲーム】Ver. 7.1.52 MOD Menu APK | One Hit | God Mode | Max Ammo EXCLUSIVE ANDROID MODS BY PMT 6
xUnknown- iPMT [JB] Hungry Shark Evolution Ver. 7.8 Mod Menu | God mode | Unlimited boost | Fly To Space + More [8 Features!] MODs FOR JAILBROKEN iOS DEVICES 8
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] EPHEMERAL-MINIATURE GARDEN- Ver. 1.0.2 MOD Menu | Unlimited Points | Unlimited Keys | Unlimited Ruby | Unlimited Tickets MODs FOR JAILBROKEN iOS DEVICES 2
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] Summoner's Greed: Empire TD Ver. 1.18.1 MOD Menu | Unlimited Diamonds | Unlimited Money | Unlimited Orbs MODs FOR JAILBROKEN iOS DEVICES 2
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] My Hospital: Build. Farm. Heal Ver. 1.2.16 MOD Menu | free IAP | Unlimited Coins | Unlimited Gems MODs FOR JAILBROKEN iOS DEVICES 1
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] Stone Park: Prehistoric Tycoon Ver. 1.1 MOD Menu | Unlimited Gold | VIP | No Ads | FREE IAP MODs FOR JAILBROKEN iOS DEVICES 0
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] Idle Pet - Create cell by cell Ver. 4.0 MOD Menu | Unlimited Money | Unlimited Diamonds MODs FOR JAILBROKEN iOS DEVICES 0
DESLOKAT PMT FREE MOD Battle of Legendary 3D Heroes Ver. 12.0.0 MOD APK | Menu | Attack Speed | Heal EXCLUSIVE ANDROID MODS BY PMT 12
GNaFF FREE MOD Thần Chết Thức Tỉnh Ver. 13.0.0 MOD Menu APK | One Hit | God Mode Awaiting Availability Check 28
DESLOKAT PMT FREE MOD Battle of Gods-Apocalypse Ver. 9.6.6 MOD APK | Menu | Attack Speed | Heal EXCLUSIVE ANDROID MODS BY PMT 17
DESLOKAT PMT FREE MOD スーパー戦隊レジェンドウォーズ Ver. 4.2.3 MOD APK | Menu | Auto Attack | DMG EXCLUSIVE ANDROID MODS BY PMT 2
GNaFF AWAITING UPDATE 60초 용사 : 방치형RPG Ver. 1.80.1 MOD Menu APK | Unlimited Rebirth PMT MODs Waiting For Update 17
GNaFF PMT FREE MOD SoulWorker Anime Legends Ver. 1.00.0023 MOD Menu APK | One Hit | God Mode EXCLUSIVE ANDROID MODS BY PMT 77
Yeowang PMT FREE MOD DomiNations Global Ver. 8.860.861 MOD Menu APK | Unlimited Gold & Food & Oil | Free Crowns | All Goals, Achievements Done & MORE EXCLUSIVE ANDROID MODS BY PMT 107
Qnzboi102 AWAITING UPDATE [JB iOS 13 ✔] Plinko Master - Be a winner Ver. 1.10 MOD Menu | Unlimited Balls | Always Money Booster | iPMT MODs Waiting For Update 10
Qnzboi102 iPMT [JB] [JB iOS 13 ✔] Battle Islands: Commanders Ver. v1.6.1 MOD Menu | Free iap | Unlimited Card Upgrades | Unlimited Supplies | Unlimited Tickets MODs FOR JAILBROKEN iOS DEVICES 5
Qnzboi102 AWAITING UPDATE [JB iOS 13 ✔] ドミネーションズ -文明創造- (DomiNations) Ver. 8.850.850 MOD Menu | Freeze Crowns | Level 15 VIP | Free Market Items | + 9 More iPMT MODs Waiting For Update 16
DESLOKAT PMT FREE MOD Crimes & Puzzles Ver. 0.9.3 MOD APK | MENU | God Mode | 1 Hit Kill EXCLUSIVE ANDROID MODS BY PMT 7
Mika Cybertron PMT FREE MOD Duel Heroes CCG: Card Battle Arena Ver. 2.4.1 MOD Menu APK | Set Level | Set League | Add 10K All Resources | EXCLUSIVE ANDROID MODS BY PMT 23
Mika Cybertron Outdated Lazy Master Ver. 1.0.11 MOD Menu APK | SUMMON SINGLE PREMIUM AND NORMAL HEROES EVERY 4 MINUTES | Outdated PMT Android MODs 95
Axey PMT FREE MOD Warfield: Tactical Arena Shooter Ver. 1.9.5 MOD MENU APK | Unlimited Ammo / Rapid Fire EXCLUSIVE ANDROID MODS BY PMT 21
Similar threads


















































About us

  • Welcome to platinmods.com! We are proud to present you the place which let's dreams come true! Focusing on quality and trust we have spend much time to build a gaming community fitting to your wishes and needs. Actually we offer you the finest MODs and Games of the Android section and we slowly expand to the iOS section as well. But games, Android MODs & iOS MODs are not the only things we can offer you. We have tutorials, tools, a very friendly, active and solid community which will help you with any problem you have =) Your happiness is our goal. We hope you enjoy!

Forum statistics

Threads
30,309
Messages
520,428
Members
1,087,477
Latest member
DEVIL0088