You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling APKTool with following command
b'java -Djava.awt.headless=true -jar c:\\program files\\python36\\lib\\site-packages\\qark-3.0.0-py3.6.egg\\qark\\decompiler\\..\\lib\\apktool/apktool.jar d D:\\mas\\NPTU.apk --no-src --force -m --output D:\\mas\\build\\qark\\apktool'
Error: Unable to access jarfile c:\program
It seems that APKTool take c:\\\\program files\\\\python36\\\\lib\\\\site-packages\\\\qark-3.0.0-py3.6.egg\\\\qark\\\\decompiler\\\\..\\\\lib\\\\apktool/apktool.jar
as 2 arguments, since there is a space in the "program files"
This will also cause the failure of move manifest into proper location, because there is no manifest to move
so I change the decompiler.py at line 29 APK_TOOL_COMMAND = ("java -Djava.awt.headless=true -jar {apktool_path}/apktool.jar " "d {path_to_source} --no-src --force -m --output {build_directory}")
to APK_TOOL_COMMAND = ("java -Djava.awt.headless=true -jar '{apktool_path}/apktool.jar' " "d '{path_to_source}' --no-src --force -m --output '{build_directory}'")
I just simply add quotes in every path-argument and fix it
Maybe we should add quotes in every command not just APKTool in case there is more space in users' path
The text was updated successfully, but these errors were encountered:
Calling APKTool with following command
b'java -Djava.awt.headless=true -jar c:\\program files\\python36\\lib\\site-packages\\qark-3.0.0-py3.6.egg\\qark\\decompiler\\..\\lib\\apktool/apktool.jar d D:\\mas\\NPTU.apk --no-src --force -m --output D:\\mas\\build\\qark\\apktool'
Error: Unable to access jarfile c:\program
It seems that APKTool take
c:\\\\program files\\\\python36\\\\lib\\\\site-packages\\\\qark-3.0.0-py3.6.egg\\\\qark\\\\decompiler\\\\..\\\\lib\\\\apktool/apktool.jar
as 2 arguments, since there is a
space
in the "program files"This will also cause the failure of
move manifest into proper location
, because there is no manifest to moveso I change the decompiler.py at line 29
APK_TOOL_COMMAND = ("java -Djava.awt.headless=true -jar {apktool_path}/apktool.jar " "d {path_to_source} --no-src --force -m --output {build_directory}")
to
APK_TOOL_COMMAND = ("java -Djava.awt.headless=true -jar '{apktool_path}/apktool.jar' " "d '{path_to_source}' --no-src --force -m --output '{build_directory}'")
I just simply add quotes in every path-argument and fix it
Maybe we should add quotes in every command not just APKTool in case there is more
space
in users' pathThe text was updated successfully, but these errors were encountered: