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

前端 未结 27 1827
难免孤独
难免孤独 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:48

    There's an app for that and generally takes just a few clicks and you are done. https://github.com/Nuvolect/DeepDive-Android

    1. Select Apps, under "Installed Apps" select your app. If it is not there you can load the APK.
    2. Select "Extract APK"
    3. Select "Unpack APK"
    4. Select "Decompile with Jadx". This can take a few seconds or a few minutes depending on the speed of your device

    After that you can browse the source code, download it to another computer with elFinder or search through it using Lucene.

    In addition to Jadx it has CFR and Fernflower decompilers.

提交回复
热议问题