Search code examples
javaandroidjarreverse-engineeringdecompiling

classes.dex file does't contain my java classes


enter image description here

I have developed an app in android studio and test it in my phone. I have formatted my computer and forgot to save my project to somewhere. Now i want to get my source codes back. I get the APK file from my phone (either by using adb and some other tools).

I am using dex2jar and decompile my classes.dex file but it does not show my own Java classes. Is it possible to get them back?


Solution

  • You can decompile it so easily a great tutorial below:

    https://futurestud.io/tutorials/how-to-decompile-an-android-app-apk

    4 easy steps as below:

    1- unzip you apk like you unzip any zip file

    2-find classes.dex files

    3-convert them to jar file using dexToJar tool

    4- open the jar file using JD-Gui application (availbale for windows/ubuntu/mac)