欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Android中aapt命令實踐

 更新時間:2018年01月15日 11:43:03   投稿:laozhang  
本篇文章給大家詳解了Android aapt命令介紹及常用命令實踐,有這方面需求的朋友跟著學習下吧。

引言

朋友要查看一個已存在包的versionCode信息,在群里面詢問,由于是已經(jīng)存在的apk包,并且只需要其中的versionCode信息,筆者就給發(fā)了一段aapt命令:aapt dump badging <files.apk> 下面針對aapt 命令做一下介紹,之前筆者也對一些常用adb命令也做過介紹:總結一些常用Android adb 命令,了解這些命令以后,可以更方便我們開發(fā),提高開發(fā)效率。在這筆者在網(wǎng)上隨便下載了一個app作為演示用。

aapt 命令大全

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

badging

Print the label and icon for the app declared in APK.打印APK中聲明的應用程序的標簽和圖標。

aapt dump badging

permissions

Print the permissions from the APK.打印APK中聲明的權限信息

aapt dump permissions

**resources **

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

aapt dump resources

configurations

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

aapt dump configurations

xmltree

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

aapt dump configurations

xmlstrings

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

aapt dump xmlstrings

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

List contents of Zip-compatible archive.列出壓縮文件目錄

aapt list <file.apk>

aapt list

aapt list -v <file.apk>

會以table的形式輸出目錄

aapt list -v

aapt list -a <file.apk>

詳細輸出所有目錄的內(nèi)容(= 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.

相關文章

最新評論