android aapt apex

首先介绍appt工具,这个在android编译app的过程中起到非常重要的作用。因为平时用android studio工具,很少接触,其实在源码编译的过程中少不了这个工具。
aapt Android Asset Packaging Tool android的一个资源打包工具
用于查看apk包名、主activity、版本等很多信息

  1. aapt l[ist] [-v] [-a] file.{zip,jar,apk}
    List contents of Zip-compatible archive.
    列出压缩文件目录
    aapt l <file_path.apk>
    参数:
    -v:会以table的形式输出目录,table的表目有:Length、Method、Size、Ratio、Date、Time、CRC-32、Name。其中Method表示压缩形式,有:Deflate及Stored两种,即该Zip目录采用的算法是压缩模式还是存储模式;可以看出resources.arsc、*.png采用压缩模式,而其它采用压缩模式。Ratio表示压缩率。CRC-32校检。
    -a:会详细输出所有目录的内容
    aapt list -a *.apk

  2. 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.
    列如:aapt dump badging *.apk

apex

android 新的apk
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43836778/article/details/90667803
今日推荐