Reputation: 85
I recently lost my android game code. When I tried to retrieve it from APK in my test device, I was able to recover all assets, xml and few java files - less complex ones (using dex2java converter). However original code of the more complex java files (like renderer) couldnt be recovered properly. Lots of modifications had been made to the code (like additional while, break, continue, labels). Please suggest how the actual JAVA code(unaltered) can be recovered from the APK. Thanks
Upvotes: 0
Views: 79
Reputation: 57306
The simple answer is that it cannot.
Source code is not included into the compiled version. The compiled classes only contain JVM instructions. From these instructions, you can often reconstruct the logic, but rarely if ever the original source.
Upvotes: 2