def getXmlInfo(self):
xml_cmd = ''
self.lastError = ''
if 'Windows' in platform.system():
xml_cmd = "%s d xmltree \"%s\" AndroidManifest.xml " % (self.aapt_path, self.apk_path)
# xml_cmd = "%s%saapt.exe d xmltree \"%s\" AndroidManifest.xml "%(self.aapt_path,os.sep, self.apk_path)
if 'Linux' in platform.system():
xml_cmd = "%s%saapt d xmltree %s AndroidManifest.xml " % (self.aapt_path, os.sep, self.apk_path)
try:
strxml = os.popen(xml_cmd)
self.xmltree = strxml.read()
except Exception as e:
# print "aapt Mainfestxml error"
self.lastError = 'aapt get AndroidManifest.xml error'
return False
return True
# ?xml???????
评论列表
文章目录