How to parse the AndroidManifest.xml file inside an .apk package

前端 未结 16 993
暖寄归人
暖寄归人 2020-11-22 10:32

This file appears to be in a binary XML format. What is this format and how can it be parsed programmatically (as opposed to using the aapt dump tool in the SDK)?

16条回答
  •  孤街浪徒
    2020-11-22 10:44

    Use android-apktool

    There is an application that reads apk files and decodes XMLs to nearly original form.

    Usage:

    apktool d Gmail.apk && cat Gmail/AndroidManifest.xml
    

    Check android-apktool for more information

提交回复
热议问题