Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run APKTool #376

Open
SameerShelarr opened this issue Nov 20, 2020 · 4 comments
Open

Failed to run APKTool #376

SameerShelarr opened this issue Nov 20, 2020 · 4 comments

Comments

@SameerShelarr
Copy link

Hello, Facing a issue please have a look.

C:\Users\samee>qark --apk C:\Users\samee\Desktop\Test\test.apk
Decompiling...
dex2jar C:\Users\samee\build\qark\classes.dex -> C:\Users\samee\build\qark\test.jar
Detail Error Information in File .\classes-error.zip
Please report this file to http://code.google.com/p/dex2jar/issues/entry if possible.
Failed to run APKTool with command: b'java -Djava.awt.headless=true -jar C:\\Users\\samee\\AppData\\Roaming\\Python\\Python39\\site-packages\\qark\\decompiler\\..\\lib\\apktool/apktool.jar d C:\\Users\\samee\\Desktop\\Test\\test.apk --no-src --force -m --output C:\\Users\\samee\\build\\qark\\apktool'
Traceback (most recent call last):
File "C:\Users\samee\AppData\Roaming\Python\Python39\site-packages\qark\decompiler\decompiler.py", line 155, in run_apktool
subprocess.call(shlex.split(custom_apktool_command))
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 315, in split
return list(lex)
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 300, in next
token = self.get_token()
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 109, in get_token
raw = self.read_token()
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'bytes' object has no attribute 'read'
Failed to run APKTool

@hamakh11
Copy link

same here.

@SameerShelarr
Copy link
Author

I will suggest using this on Mac OS. Cause it dos not work properly on windows.

@jayasankarPunnakunnil99
Copy link

I fixed these issues
change File "C:\Users\samee\AppData\Roaming\Python\Python39\site-packages\qark\decompiler\decompiler.py", line 155, in run_apktool
subprocess.call(shlex.split(custom_apktool_command))
To
File "C:\Users\samee\AppData\Roaming\Python\Python39\site-packages\qark\decompiler\decompiler.py", line 155, in run_apktool
subprocess.call(shlex.split(custom_apktool_command.decode(encoding="utf-8")))

@AishwaryaRavindra
Copy link

AishwaryaRavindra commented Jul 21, 2023

i am getting the HTML report but it is displaying ERROR in that report.... not displaying the errors also the scan is done very fast
Decompiling...
Running scans...
Finish scans...
Writing report...
Finish writing report to C:\Users\Hp\AppData\Roaming\Python\Python311\site-packages\qark\report\report.html ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants