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

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

    Use this tool http://www.javadecompilers.com/

    But recently, a new wave of decompilers has forayed onto the market: Procyon, CFR, JD, Fernflower, Krakatau, Candle.

    Here's a list of decompilers presented on this site:

    CFR - Free, no source-code available, http://www.benf.org/other/cfr/ Author: Lee Benfield

    Very well-updated decompiler! CFR is able to decompile modern Java features - Java 9 modules, Java 8 lambdas, Java 7 String switches etc. It'll even make a decent go of turning class files from other JVM langauges back into java!

    JD - free for non-commercial use only, http://jd.benow.ca/ Author: Emmanuel Dupuy

    Updated in 2015. Has its own visual interface and plugins to Eclipse and IntelliJ . Written in C++, so very fast. Supports Java 5.

    Procyon - open-source, https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler Author: Mike Strobel

    Fernflower - open-source, https://github.com/fesh0r/fernflower Author: Egor Ushakov

    Updated in 2015. Very promising analytical Java decompiler, now becomes an integral part of IntelliJ 14. (https://github.com/JetBrains/intellij-community/tree/master/plugins/java-decompiler) Supports Java up to version 6 (Annotations, generics, enums)

    JAD - given here only for historical reason. Free, no source-code available, jad download mirror Author: Pavel Kouznetsov

提交回复
热议问题