Error running dex2jar
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 663
- PR merge metrics
- No merged PRs in 30d
Description
When I try to run the following command this the output I get:
qark --apk ABC\ -\ 3.1.2\ -\ APKTurbo.com.apk --report-type html
Decompiling...
Error running dex2jar command: /Users/shashankmirji/Desktop/Android Static Analysis/qark/venv/lib/python2.7/site-packages/qark/decompiler/../lib/dex2jar-2.0/d2j-dex2jar.sh /Users/shashankmirji/Desktop/Android Static Analysis/qark/build/qark/classes.dex -o /Users/shashankmirji/Desktop/Android Static Analysis/qark/build/qark/Opsgenie - 3.1.2 - APKTurbo.com.jar
Traceback (most recent call last):
File "/Users/shashankmirji/Desktop/Android Static Analysis/qark/venv/lib/python2.7/site-packages/qark/decompiler/decompiler.py", line 206, in _run_dex2jar
ret_code = subprocess.call(shlex.split(dex2jar_command))
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Error running dex2jar command
Please can you help here
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the command shown in the issue and inspect qark/decompiler/decompiler.py around line 206, where dex2jar is invoked through subprocess.call and shlex.split. Trace how the APK and output paths are assembled, then verify that dex2jar runs successfully for paths containing spaces and that the decompilation report completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- cli, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100