Error running dex2jar
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
Same error here
sondls like variable should be renames they are in lower case instead of upercase like in the declaration: `DEX2JAR_NAME = "dex2jar-2.0" DEX2JAR_PATH = os.path.join(LIB_PATH, DEX2JAR_NAME) DEX2JAR_EXTENSION = "sh" if OS != "Windows" else "bat" DEX2JAR_EXECUTABLE = "d2j-dex2jar.{extension}".format(extension=DEX2JAR_EXTENSION) DEX2JAR_INVOKE = "d2j_invoke.{extension}".format(extension=DEX2JAR_EXTENSION)
DECOMPILERS_PATH = os.path.join(LIB_PATH, "decompilers")
APK_TOOL_COMMAND = ("java -Djava.awt.headless=true -jar {apktool_path}/apktool.jar " "d {path_to_source} --no-src --force -m --output {build_directory}") DEX2JAR_COMMAND = "{dex2jar_path} {path_to_dex} -o {build_apk}.jar"
`
same error here
Same error faced.. Please update solution
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1729.0_x64__qbz5n2kfra8p0\lib\shlex.py", line 140, in read_token nextchar = self.instream.read(1) AttributeError: 'bytes' object has no attribute 'read' Error running dex2jar command
Facing the same error on windows machine. Can someone please update the solution?
Decompiling... Error running dex2jar command: b'C:\\Users\\ayush\\AppData\\Roaming\\Python\\Python36\\site-packages\\qark\\decompiler\\..\\lib\\dex2jar-2.0\\d2j-dex2jar.bat F:\\qark\\build\\qark\\classes.dex -o F:\\qark\\build\\qark\\optymyze-debug.jar' Traceback (most recent call last): File "C:\Users\ayush\AppData\Roaming\Python\Python36\site-packages\qark\decompiler\decompiler.py", line 206, in _run_dex2jar ret_code = subprocess.call(shlex.split(dex2jar_command)) File "c:\users\ayush\appdata\local\programs\python\python36\lib\shlex.py", line 305, in split return list(lex) File "c:\users\ayush\appdata\local\programs\python\python36\lib\shlex.py", line 295, in next token = self.get_token() File "c:\users\ayush\appdata\local\programs\python\python36\lib\shlex.py", line 105, in get_token raw = self.read_token() File "c:\users\ayush\appdata\local\programs\python\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
Decompiling... Error running dex2jar command: b'C:\\Users\\samee\\AppData\\Roaming\\Python\\Python39\\site-packages\\qark\\decompiler\\..\\lib\\dex2jar-2.0\\d2j-dex2jar.bat C:\\Added Files\\qark-master\\qark\\build\\qark\\classes.dex -o C:\\Added Files\\qark-master\\qark\\build\\qark\\MPOS.jar' Traceback (most recent call last): File "C:\Users\samee\AppData\Roaming\Python\Python39\site-packages\qark\decompiler\decompiler.py", line 206, in _run_dex2jar ret_code = subprocess.call(shlex.split(dex2jar_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' Error running dex2jar command