从APK中读取信息

通过Android提供的aapt,我们可以直接从APK中读取相关信息,输出到标准输出或者文件中;

比如:

aapt dump badging *.apk;

下面是aapt的简单用法:

 aapt l[ist] [-v] [-a] file.{zip,jar,apk}
   List contents of Zip-compatible archive.

 aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
   badging          Print the label and icon for the app declared in APK.
   permissions      Print the permissions from the APK.
   resources        Print the resource table from the APK.
   configurations   Print the configurations in the APK.
   xmltree          Print the compiled xmls in the given assets.
   xmlstrings       Print the strings of the given compiled xml assets.

  

原文地址:https://www.cnblogs.com/haiming/p/2630275.html