Me and my colleague are writing and android app and we are using git to track code changes.
After the last pull on my side, i changed many lines of code and inserted a lot of new ones.
While trying to push the changes, there were some conflicts and i got his version of the project and mine was gone.
“Fortunately”, i have the newest version of the application installed on my phone and the keystore used to sign it on my pc.
Is there any way to decompile an .apk file using the keystore that signed it?
Effectively, no. While it is possible to decompile an apk, the process will produce something ugly enough that the time taken to recover it will probably be prohibitive. You can use baksamali (link) to disassemble it, along with similar tools to decompile from .class files to Java files. Unfortunately, however, the compilation process loses enough context that you will have probably lost a lot of structure in your files, and the result you get won’t be workable without a lot of smoothing over. In this instance, while it is technically possible, the amount of time that it will probably take to reverse engineer the produced decompiled code will be high enough that you’d rather probably just redo the coding yourself..