question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: Something is wrong with executable "/usr/share/apktool" (GNU/Linux)

See original GitHub issue

Prerequisites

Before opening this issue, I tried the following steps:

  • Installed the tool in a way described in the readme and ran python3 -m obfuscapk.cli --help without any errors

  • Ran the tool using only Rebuild, NewSignature and NewAlignment obfuscators to verify that the app is not using anti-repackaging techniques

  • Ran the tool using --ignore-libs flag to exclude third party libraries from the obfuscation

  • Checked FAQ and troubleshooting

  • Checked for existing similar issues on GitHub

Description

unable to find why or what is causing this error.

┌─[root@parrot-sec]─[/home/USER/Obfuscapk/src]
└──╼ #python3 -m obfuscapk.cli -p -w /home/USER/temp working dir/ -d /home/USER/obfuscated.apk -o ConstStringEncryption -o Nop -o Goto -o RandomManifest -o Rebuild -o NewSignature -o NewAlignment /home/USER/Obf testing.apk

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/USER/Obfuscapk/src/obfuscapk/cli.py", line 177, in <module>
    main()
  File "/home/USER/Obfuscapk/src/obfuscapk/cli.py", line 131, in main
    check_external_tool_dependencies()
  File "/home/USER/Obfuscapk/src/obfuscapk/main.py", line 40, in check_external_tool_dependencies
    Apktool()
  File "/home/USER/Obfuscapk/src/obfuscapk/tool.py", line 28, in __init__
    raise RuntimeError(
RuntimeError: Something is wrong with executable "/usr/share/apktool"

Versions

  • Installation mode (e.g., from source or with Docker): from source
  • Obufscapk version (e.g., commit 0676488): Obfuscapk 1.2.0
  • OS (e.g., Ubuntu 16.04): Parrot OS Security v4.10
  • Python version (e.g., 3.7.4): Python 3.8.5
  • Apktool version (e.g., v2.4.0): Apktool v2.4.1-dirty

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ClaudiuGeorgiucommented, Sep 17, 2020

Well, you have to use quotes for all the paths containing spaces, not only for the last path.

0reactions
All-io-X-oi-llAcommented, Sep 17, 2020

Thank you for your help. (my mistake)

Read more comments on GitHub >

github_iconTop Results From Across the Web

apktool build apk fails - Stack Overflow
It seems there's some problem in building the resources while recompiling the apk. what you can do is, when you decompile your apk...
Read more >
Apktool.jar common errors and solutions - XDA Forums
Since many got apktool.jar errors and don't know how to search or solve themself, I decided to explain and provide solutions here with...
Read more >
Apktool - How to Install - GitHub Pages
Make sure both files are executable ( chmod +x ); Try running apktool via cli. macOS: Download Mac wrapper script (Right click, Save...
Read more >
apktool | Kali Linux Tools
I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk I: Regular manifest package... I: Decoding file-resources.
Read more >
A Qualitative Analysis of Themes in Instant Messaging ... - Zenodo
Or maybe we can do something else 256kb sounds quite big a limit already. ... it makes a local clone of https://www.cocoapodsspecs during...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found