栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 移动开发 > Android

Android中aapt命令实践

Android 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Android中aapt命令实践

引言

朋友要查看一个已存在包的versionCode信息,在群里面询问,由于是已经存在的apk包,并且只需要其中的versionCode信息,笔者就给发了一段aapt命令:aapt dump badging 下面针对aapt 命令做一下介绍,之前笔者也对一些常用adb命令也做过介绍:总结一些常用Android adb 命令,了解这些命令以后,可以更方便我们开发,提高开发效率。在这笔者在网上随便下载了一个app作为演示用。

aapt 命令大全

aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]

badging

Print the label and icon for the app declared in APK.打印APK中声明的应用程序的标签和图标。

permissions

Print the permissions from the APK.打印APK中声明的权限信息

**resources **

Print the resource table from the APK.打印APK中的资源表

configurations

Print the configurations in the APK.打印APK中的配置信息

xmltree

Print the compiled xmls in the given assets.打印指定apk的指定xml文件。

xmlstrings

Print the strings of the given compiled xml assets.打印xml文件中所有的字符串信息

aapt l[ist] [-v] [-a] file.{zip,jar,apk}

List contents of Zip-compatible archive.列出压缩文件目录

aapt list

aapt list -v

会以table的形式输出目录

aapt list -a

详细输出所有目录的内容(= aapt list)

其他aapt 命令

aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]

Delete specified files from Zip-compatible archive.

aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]

Add specified files to Zip-compatible archive.

aapt v[ersion]

Print program version.

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/156677.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号