ClaudiuGeorgiu / Obfuscapk

An automatic obfuscation tool for Android apps that works in a black-box fashion, supports advanced obfuscation features and has a modular architecture easily extensible with new techniques
MIT License
1.09k stars 285 forks source link

path error #163

Closed HoseinGhadiri closed 1 year ago

HoseinGhadiri commented 1 year ago

i got this error :

Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/hosein/Android/Obfuscapk/Obfuscapk/src/obfuscapk/cli.py", line 189, in main() File "/home/hosein/Android/Obfuscapk/Obfuscapk/src/obfuscapk/cli.py", line 140, in main check_external_tool_dependencies() File "/home/hosein/Android/Obfuscapk/Obfuscapk/src/obfuscapk/main.py", line 42, in check_external_tool_dependencies BundleDecompiler() File "/home/hosein/Android/Obfuscapk/Obfuscapk/src/obfuscapk/toolbundledecompiler.py", line 31, in init if not os.path.isfile(full_bundledecompiler_path): File "/usr/lib/python3.10/genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

danilobatistaqueiroz commented 1 year ago

You need to configure BundleDecompiler path.

I configured it on my system that way:
export BUNDLE_DECOMPILER_PATH=/usr/local/bin/BundleDecompiler.jar

In the documentation there is an instruction:

To support app bundles obfuscation you also need BundleDecompiler, so download the latest available version from here, save it as BundleDecompiler.jar in a directory included in PATH (e.g., in Ubuntu, /usr/local/bin or /usr/bin) and make sure it has the executable flag set.

ClaudiuGeorgiu commented 1 year ago

Closing as duplicate of https://github.com/ClaudiuGeorgiu/Obfuscapk/issues/130.