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
在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值