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

Installation failure - dependancy check #130

Closed knightrider-kit closed 2 years ago

knightrider-kit commented 2 years ago

Prerequisites

Before opening this issue, I tried the following steps:

Description

Installed the tool in a way described in the readme and ran python3 -m obfuscapk.cli --help But got an error referencing bundledecompiler. Did not think I was required to have bundledecompiler.

Steps to reproduce

  1. Install following readme

Expected behavior:

Help dialog appears.

Actual behavior:

Received error.

paste here the complete error message, including the command that generated the error
0:/usr/src/Obfuscapk/src#>python3 -m obfuscapk.cli --help
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/src/Obfuscapk/src/obfuscapk/cli.py", line 189, in <module>
    main()
  File "/usr/src/Obfuscapk/src/obfuscapk/cli.py", line 140, in main
    check_external_tool_dependencies()
  File "/usr/src/Obfuscapk/src/obfuscapk/main.py", line 42, in check_external_tool_dependencies
    BundleDecompiler()
  File "/usr/src/Obfuscapk/src/obfuscapk/toolbundledecompiler.py", line 31, in __init__
    if not os.path.isfile(full_bundledecompiler_path):
  File "/usr/local/lib/python3.7/genericpath.py", line 30, in isfile
    st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Versions

Additional information

Apk file(s):

knightrider-kit commented 2 years ago

Installing BundleDecompiler-0.0.2.jar has fixed the issue but I had no plan to use it.

timwu118841 commented 2 years ago

@knightrider-kit how do u fix the issue i drag the .jar file in to /usr/local/bin but it's still the same

knightrider-kit commented 2 years ago

if your file name is still BundleDceompiler-0.0.2.jar either rename or make link to BundleDecompiler.jar