1
It will be 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.
1
It will be 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.
2
Possible but not practical. You would need to use a decompiler to get Java code from APK.
A possible deterrent is that the game is not only made in Java. It is very common among games made using third-party engines (virtually all professional games) that the game uses native code (C or C++).
Even if the game (or the part that interests you) is done in Java, most likely the code has been obfuscated, using a tool like Proguard. Obfuscated code is code modified to completely lose meaning to the reader.
A more promising approach is to directly modify the values in memory. That’s how tools like Gameshark (remember?) work. But for that, it takes super user access (root), native code (Java won’t work) and knowledge of low-level programming and Linux.
I’ve never done that, so I’m not going to take a chance on an example, but it seems to have Stackoverflow in English. If you’re curious, take a look.
I understand, thank you for your attention :)
I’ll take a look at the stackoverflow of the gringos.
Right. If the answer answered your question, don’t forget to vote and mark as accepted.
Browser other questions tagged java android
You are not signed in. Login or sign up in order to post.
Hello. Welcome. You are talking about modifying an existing game or modifying a game of your own?
– Pablo Almeida
modify an existing game :)
– ISAAC300
Possible yes, feasible no, modify existing games will be necessary reverse engineering and then know how to program, besides that it would be necessary the documentation of the game developer to be guided in what was done. " Reverse engineering" can be considered illegal and really put in the place of the game developer, would like someone to manipulate what you did without your permission?
– Guilherme Nascimento
Can use the JNA for that. A while ago I wrote a dll injector with that library there. It was just a
writeProcessMemory
but I think it’s the same idea of what you’re looking for, read and write values in memory.– Renan Gomes