Is it possible to modify an action or add some new object in any game using java?
For example: add a new monster to the game, add properties, increase player speed, life etc.
Is it possible to modify an action or add some new object in any game using java?
For example: add a new monster to the game, add properties, increase player speed, life etc.
It is possible but it is not practical. You would need to use a decompiler to get the Java code from the APK.
One possible drawback is that the game is not only done in Java. It is very common among games made using third party engines (pretty much all professional games) that the game uses native code (C or C ++).
Even if the game (or the part you're interested in) is done in Java, most likely the code was overshadowed by using a tool like ProGuard. An obfuscated code is a modified code to completely lose meaning for anyone reading it.
A more promising approach is to directly modify the values in memory. That's how tools like GameShark (remember?) Work. But for that, you need root (root) access, native code (Java will not work), and low-level programming knowledge and Linux.
I've never done this, so I will not risk an example, but it seems to have StackOverflow in English . If you're curious, take a look.