qark icon indicating copy to clipboard operation
qark copied to clipboard

Failed to run APKTool

Open SameerShelarr opened this issue 5 years ago • 4 comments

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

SameerShelarr avatar Nov 20 '20 13:11 SameerShelarr

same here.

hamakh11 avatar Nov 26 '20 10:11 hamakh11

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

SameerShelarr avatar Apr 27 '21 08:04 SameerShelarr

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")))

jayasankarPunnakunnil99 avatar Sep 02 '22 10:09 jayasankarPunnakunnil99

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 ...

AishwaryaRavindra avatar Jul 21 '23 08:07 AishwaryaRavindra