Using apktool to decompile apk file

后端 未结 6 624
一生所求
一生所求 2021-02-02 00:02

I tried extracting apk file using apktool. I followed steps mentioned below. Is there a way to get the source code from an APK file?

but i am not able to get it complete

相关标签:
6条回答
  • 2021-02-02 00:06

    I have followed https://ibotpeaches.github.io/Apktool/install/ link for windows and renamed jar file as "apktool.jar" with extra jar extension (ie.apktool.jar.jar) so I was getting "Error: Unable to access jarfile C:\APKtool\apktool.jar".

    After renaming properly (removing extra .jar extension) , I am able to use "apktool.jar" properly.

    I know it is silly mistake, but some time it happens :)

    0 讨论(0)
  • 2021-02-02 00:09

    I also had this problem, then i noticed this in apktool.After done that,apktool gone well.

    1. Rename downloaded jar to apktool.jar
    0 讨论(0)
  • 2021-02-02 00:19

    I faced the same problem. I my case i discovered that the jar file is present in a separate package and i had to download apktool1.5.2.tar.bz2 in addition to apktool-install-windows-r05-ibot.tar.bz2 . Then i extracted the jar file and placed it in the same directory as apktool. Hope it helps.

    0 讨论(0)
  • 2021-02-02 00:29

    I would create a folder called "apktool" somewhere where it won't be deleted ( a safe spot ).

    Download the wrapper file & the apktool file itself via the Google code page (linked below). This is 2 files. One is a wrapper, OS specific, along with aapt ( which is needed for rebuild), and the other is simply apktool.jar which is the main application.

    Once that is done, go into Environment Variables (PATH) for Windows, and add that current directory to it. So you can access apktool / aapt anywhere via command prompt.

    http://code.google.com/p/android-apktool/

    0 讨论(0)
  • 2021-02-02 00:29

    Those who are still facing same issue, follow below steps:

    1. Download "https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/windows/apktool.bat"
    2. download latest apktool from https://bitbucket.org/iBotPeaches/apktool/downloads/
    3. Rename apktool_version.jar to apktool.jar
    4. Put .bat and .jar in same folder.
    5. Run apktool.bar d "path of apkfile/example.apk"

    0 讨论(0)
  • 2021-02-02 00:30

    ApkTool + Dex2Jar + any java decompiler? Comon! This is old style :0)

    Try NEW open-source APK and DEX decompiler called Jadx: https://sourceforge.net/projects/jadx/files/

    It has also online version here: http://www.javadecompilers.com/apk/

    0 讨论(0)
提交回复
热议问题