I developed an app using the android studio and tested it on my phone. Then, I formatted my laptop and my code was gone. Now, I want my code back. So, I got
the apk of my app by using shareit app which shares the apk. I decompiled it using these steps -
- Converted .apk to .zip
- Extracted that zip file to get .dex file
- There I get various dex files like classes.dex, classes2.dex etc
- Converted them to jar using dex2jar
- Opened the jar file using JD-Gui application
But still, it doesn't show my actual java code. Is there a way I can get it back. I don't want to write the code again.