ClaudiuGeorgiu/Obfuscapk

path error

HoseinGhadiri opened this issue · 2 comments

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

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.

Closing as duplicate of #130.