Apk decompile error: d2j-dex2jar command not found

前端 未结 7 1270
暖寄归人
暖寄归人 2021-02-05 17:15

I try to get source code from an .apk

I followed the steps from right here Is there a way to get the source code from an APK file? but on Step 2.4 when I wrote on my cm

相关标签:
7条回答
  • 2021-02-05 17:34

    Add permission with: chmod +x d2j-dex2jar.sh Then run it with: ./d2j-dex2jar.sh app.apk

    0 讨论(0)
  • 2021-02-05 17:37

    If you have downloaded the d2j-dex2jar-2.x then it would not contain the d2j-dex2jar.sh file

    so, try to download the dex2jar-0.0.9.15 from the link dex2jar-0.0.9.15

    Finally extract this zip file and you will find the d2j-dex2jar.sh file.

    Hopefully this will help you!

    0 讨论(0)
  • 2021-02-05 17:39

    for dex2jar 2.0 version please follow below steps to generate jar

    1. download dex2jar (https://sourceforge.net/projects/dex2jar/files/)
    2. extract folder
    3. goto folder in command prompt
    4. chmod u+x d2j_invoke.sh
    5. chmod u+x d2j-dex2jar.sh
    6. put desired apk to decompile in dex2jar folder
    7. sh d2j-dex2jar.sh -f -o output_jar.jar my_app.apk
    8. This will generate output_jar.jar in same folder
    0 讨论(0)
  • 2021-02-05 17:52

    you must use dex2jar-0.0.9.15 to decompile apk older version dos'nt work correctly because missing some files via extension bat

    0 讨论(0)
  • 2021-02-05 17:53

    place all the apk file, coverted zip, apktool, apktool install, dex2jar, jd-gui folders under a single folder... open command prompt(admin).. then goto the directory of your newly created folder.. then type... d2j-dex2jar classes.dex , press enter... thats it ur problem is solved...cheezzz

    no need to add any xtra permissions...it workwed for me..it'll work for you too...

    0 讨论(0)
  • 2021-02-05 17:54

    Use dex2jar classes.dex instead of d2j-dex2jar classes.dex And please check which version of dex2jar is with you. if it is dex2jar-2.x jar file then , please try to download dex2jar-0.0.9.15 jar file.

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