Decompiling classes.dex file doesn't show my actual java code

3.5k Views Asked by At

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.

Screenshot of decompiled .dex file -> jar file output

1

There are 1 best solutions below

7
Sajjad Toomari On

1-extract your classes.jar files and open .class file with JD-Gui or DJ JAVA Decompiler.

2-try using DJ JAVA Decompiler

https://i.stack.imgur.com/7u0k5.png https://i.stack.imgur.com/0rog1.png