Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no main manifest attribute, in /usr/share/apktool/apktool.jar #28

Closed
rypz79 opened this issue Oct 29, 2020 · 1 comment
Closed

no main manifest attribute, in /usr/share/apktool/apktool.jar #28

rypz79 opened this issue Oct 29, 2020 · 1 comment
Labels
invalid This doesn't seem right

Comments

@rypz79
Copy link

rypz79 commented Oct 29, 2020

Describe the bug
Cannot decompile APK

To Reproduce
Steps to reproduce the behavior:

  1. Edited the absolute path to Apk Signer, Apktool, Jadx settings.json looks as follows:
    "python.pythonPath": "/usr/bin/python3",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "workbench.iconTheme": "vscode-icons",
    "C_Cpp.updateChannel": "Insiders",
    "python.languageServer": "Microsoft",
    "window.zoomLevel": 1,
    "apklab.apkSignerPath": "/lib/android-sdk/build-tools/debian/apksigner.jar",
    "apklab.jadxDirPath": "/home/roey/jadx/build/jadx/bin/jadx",
    "apklab.apktoolPath": "/usr/share/apktool/apktool.jar"
}
  1. Click on:
    CTRL+SHIFT+P -> APKLab: open an APK -> Select APK (/home/roey/ApkProjects/ynet_6.78.apk) ->
    Check decompile_java [Use Jadx] -> Press OK

  2. See error:

Decoding ynet_6.78-MOD.apk into /home/roey/ApkProjects/ynet_6.78-MOD...
java -jar /usr/share/apktool/apktool.jar d /home/roey/ApkProjects/ynet_6.78-MOD.apk -o /home/roey/ApkProjects/ynet_6.78-MOD
no main manifest attribute, in /usr/share/apktool/apktool.jar
Decoding process exited with code 1

Expected behavior
A VScode window with decompiled (to smali) APK

Console Logs

Please paste all your console output here... between the details HTML tags!

System Information:

  • OS: Kububntu 20.10 x64
  • VSCode Version: 1.50.1

Additional context
Add any other context about the problem here.

@Surendrajat
Copy link
Member

Seems like a corrupted apktool.jar file. Try to remove the path and let it download the latest apktool.
Also, the apksigner used in APKLab is uber-apk-signer.

@Surendrajat Surendrajat added the invalid This doesn't seem right label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants