ego008 avatar

python解析apk包信息

🕜 by ego008

1
2
3
4
5
6
7
8
9
10
import axmlprinter
from xml.dom import minidom

def main():
  ap = axmlprinter.AXMLPrinter(open('example/binary/AndroidManifest.xml', 'rb').read())
  buff = minidom.parseString(ap.getBuff()).toxml()
  print(buff)

if __name__ == "__main__":
  main()

详见 http://www.ijd8.com/topic/33/%E7%94%A8Python%E5%88%86%E6%9E%90apk%E6%96%87%E4%BB%B6%E9%87%8C%E7%9A%84AndroidManifest.xml-%E6%96%87%E4%BB%B6%E8%8E%B7%E5%8F%96%E5%8C%85%E4%BF%A1%E6%81%AF

💘 相关文章

评论

共1条关于"python解析apk包信息"的评论

写一条评论

Based on Golang + fastHTTP + sdb | go1.17.1 Processed in 0ms