AttributeError: 'Decompiler' object has no attribute 'apk_name'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 663
- PR merge metrics
- No merged PRs in 30d
Description
qark --sdk-path /root/Android/Sdk/ --java /opt/qark/tests/goatdroid --report-type html --report-path /root/qark/report/ --exploit-apk
Decompiling...
Running scans...
Finish scans...
Writing report...
Finish writing report to /root/qark/report/report.html ...
Building exploit APK...
Traceback (most recent call last):
File "/usr/local/bin/qark", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/qark/qark.py", line 104, in cli
exploit_builder = APKBuilder(exploit_apk_path=build_path, issues=scanner.issues, apk_name=decompiler.apk_name,
AttributeError: 'Decompiler' object has no attribute 'apk_name'
Whenever I try to run the tool, the error above appears. Does anyone know how to solve?
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
Start at qark/qark.py line 104, where APKBuilder receives decompiler.apk_name, then inspect the Decompiler and APKBuilder entry points to see how the APK name is expected to be provided. Reproduce the command from the issue and verify that exploit APK building completes without the AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- cli, mobile-dev, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100