Is there a way to get the source code from an APK file?

前端 未结 27 2365
难免孤独
难免孤独 2020-11-21 06:56

The hard drive on my laptop just crashed and I lost all the source code for an app that I have been working on for the past two months. All I have is the APK file that is st

27条回答
  •  深忆病人
    2020-11-21 07:55

    Android studio offers you to analyse any apk file.

    1 - From build menu choose analyse apk option and select apk file. 2 - This will result in you the classes.dex file and other files. 3 - Click on classes.dex which will give you the list of folders, packages, libraries and files. 4 - From and android studio settings install a plugin called "Dex to Jar" 5 - click on any activity file of your extracted project and choose dex to jar from the build menu.

    This will result in you the actual code of your java file.

    Cheers.

提交回复
热议问题