We’ve previously discussed modding IL2CPP Unity games on PC. Today, I’ll show you how to mod them on your Android device without requiring ROOT permission or a Windows PC. Everything can be done directly on your Android.
Things we will need:
1) Android Device
2) HEX Editor (Use MT Manager VIP one) – Get this one from Here
(Important! This is the old version of modded MT Manager which supports Hex Editing and Saving, You might get a warning from Google play protect when you try to install it, so turn it off. If you are worried then just buy the VIP in the original MT Manager, it is worth every penny)
3) IL2CPP Dumper APK (Always download the latest release) – Get it from here
4) MT Manager – Get it from here
(Please note that: MT Manager VIP version has built in HEX Editor, if you have the VIP version then you can skip the other HEX Editor and use the MT Manager one)
5) Basic Knowledge about game modding
MT MANAGER Original and the MODDED one can be installed Side by Side, also there are no HEX Editors that work similar to the one in MT Manager for Android
Let’s begin!
1) Make sure you have all the requirements mentioned above
2) We will be modding a game called My Fantasy: Choose Romance – Download APK File from Apkcombo.com
3) Once you have everything ready, create a folder named Modding or whatever you want and Place the My Fantasy APK file in it.
4) Now, open the APK file and select “View”. Navigate to the ‘lib’ folder and delete the “arm64-v8a” folder as it won’t be necessary.
Next, locate the “libil2cpp.so” file within the “armeabi-v7a” folder, long-press it, and choose “Extract”. Ensure that the “Modding” folder we previously created is open on the other side to extract the file into it.
5) Go back and navigate to “Assets > Bin > Data > Managed > Metadata > global-metadata.dat”, Extract this file into the Modding folder as we did previously.
Now your modding folder should look like the pic below, the other My Fantasy File is just a back-up that MT Manager creates. You can ignore it for now.
6) Now open il2cpp Dumper App
– In “Enter executable Path” located the libil2cpp.so file inside the modding folder and select it
– In “Enter metadata Path” located the global-metadata.dat file inside the modding folder and select it
There are additional settings you can configure by clicking the GEAR icon, but it is optional for Android, so you can skip that for now.
7) Now Click DUMP
If all goes well then you should see a message as shown in the pic below
Our DUMP is located inside DumpDroid/Dump1
8) Let’s navigate to that folder
The APP has generated a dump.cs file that will contain all methods, classes, fields, etc, of the game.
We can move the file to the modding folder, though it is optional. I like to move it to keep everything organized in one place.
9) Click on dump.cs file and then choose Text Editor. Since the file is too large, the Application will create a pagination, meaning splitting in two.
10) Now we need to search this file for interesting methods. This is the hardest part for any Modder. Depending on the game, some might take 5 minutes to hack, while others might take a whole day or week. Check out our beginner’s modding guide to find some common methods used inside a game.
Since I already know what I want to MOD, I’ll search directly for the method called “SpendDiamonds”. This method checks when the user spends diamonds, and if we return ‘true’ to it, the game assumes diamonds were spent, granting unlimited diamonds even though none were actually used.
Click the three DOTS on the top right and Select Search, then Search for “spenddiamonds”
We found the method we are looking for.
11) Copy the OFFSET of the method, which is 0xDC5F98
12) Now open MT Manager Modded and go to the Modding folder, click on the libil2cpp.so file then choose HEX Editor
13) It will open the file in HEX Editor, now click on the 3 Dots on the top right then Choose Goto…
14) Enter the offset address without the 0x
It will then direct you to the memory location corresponding to that address/method.
15) Now, because it’s a Boolean (which has a value of true or false), we’ll need to return “TRUE” to it. In ARM, this is represented by the hexadecimal code “01 00 A0 E3 1E FF 2F E1”
Now hit the 3 Dots again on the top right and click Save
16) Return to the original MT Manager and ensure that the Modding folder is open on both sides.
17) Click on the Game APK file on any of the sides, then click “View,” go to “lib” folder, and then “armeabi-v7a”
18) On the other side, long-press the “libil2cpp.so” file, select “Add ->” then click “OK”
19) It will add the Modified libil2cpp.so file in the folder and sign the APK for you
19) Your Modded APK file is now ready. Install it and test the game. You’ll notice that your in-game diamonds won’t decrease when spent.
That’s it
This is how you can MOD Android unity games on your Android device. I also highly recommend you get the MT Manager VIP version since it offers many tools, and it is the perfect app for reverse engineering APK files. As you can see, the VIP version of the MT Manager was all that you needed to MOD the game.
As a beginner, you might encounter errors or have questions. If you do, feel free to leave a comment below, and I’ll get back to you as soon as possible.
Happy Modding!