-
Notifications
You must be signed in to change notification settings - Fork 656
Description
below is error info:
A:\android>qark --apk mojitianqi_7070802.apk
Decompiling...
Error running dex2jar command: b'C:\\Users\\yougar\\AppData\\Roaming\\
Python\\Python36\\site-packages\\qark\\decompiler\\..\\lib\\dex2ja
r-2.0\\d2j-dex2jar.bat A:\\android\\build\\qark\\classes.dex -o A:\\
android\\build\\qark\\mojitianqi_7070802.jar'
Traceback (most recent call last):
File "C:\Users\yougar\AppData\Roaming\Python\Python36\site-packages\qark\decom
piler\decompiler.py", line 217, in _run_dex2jar
ret_code = subprocess.call(shlex.split(dex2jar_command))
File "c:\program files\python36\lib\shlex.py", line 305, in split
return list(lex)
File "c:\program files\python36\lib\shlex.py", line 295, in next
token = self.get_token()
File "c:\program files\python36\lib\shlex.py", line 105, in get_token
raw = self.read_token()
File "c:\program files\python36\lib\shlex.py", line 136, in read_token
nextchar = self.instream.read(1)
AttributeError: 'bytes' object has no attribute 'read'
Error running dex2jar command
I change
File "C:\Users\yougar\AppData\Roaming\Python\Python36\site-packages\qark\decom
piler\decompiler.py", line 217, in _run_dex2jar
ret_code = subprocess.call(shlex.split(dex2jar_command))
to
ret_code = subprocess.call(shlex.split(dex2jar_command.decode(encoding="utf-8")))
then fixes it.