Certain games are not built by Unity nor any other game engine but with pure java, such games can directly be modified from smali, No Computer is needed. However, you can still use a computer to MOD such games. Modding JAVA based games is very similar to modding Android Applications.
You can search for terms like cash, coins, money, or any other currency in the game. Such values will have a method that ends with a ()I which stands for Int
I will leave some int values below that you can use:
const v0, 0x0 = 0 const v0, 0x1 = 1 const v0, 0x1869f = 99999 const v0, 0xa = 10 const v0, 0x98967f = 9999999
To create your own decimal to hex, go to this website
https://www.rapidtables.com/convert/number/decimal-to-hex.html
Remember, in Smali, the decimal numbers observed in-game are converted to hexadecimal. Hence, you’ll need to search for the hex value within the Smali files. For instance, if within the shop, coins cost 100 gems (0x64 in hex), by searching for 0x64, you can locate related Smali files. By altering the return from 0x64 to 0x0, the coins will then cost 0 gems.
For this tutorial, we will be modding a game called Nicotom 23 which is purely built on Java Programming. We will be modifying the Coins and The Points in the game.
Let’s begin
For this tutorial, I will be using MT Manager VIP version, since it makes modding such games easier.
1) Download Nicotom 23 APK File from Apkcombo.com
2) Decompile the APK file
Now we need to search for the currency values in the game such as, coins, gold, cash, money, and stuff like that. Such methods usually end with ()I
So we will search for a term like coins()I or just getcoins
After searching, I found many results. Among them, I discovered a method within “TinyDB.smali” named “getCoins()I”.
Hmm, this looks interesting. Maybe it holds the value of the amount of coins we have in the game.
Let us try to modify this method and return a large number, so our coins become 9999999
In the same file you will also find a method called getPoints()I
Return it the same way you did with getCoins()I
3) Now save the file and compile the APK again
4) Let’s test the game to check how many points and coins we currently have
As you can see that now we have 99999999 coins and points in the game.
This is how you modify Java-based Android games. You can change various aspects within the game, including costs, making it ad-free, and more. As mentioned earlier in the post, you can search for the cost of a specific item in the code and modify it, among other things like that.
If you have any questions, then please leave a comment and i will get back to you as soon as possible.