Practice of AAPT command in Android
A friend wants to check the version code information of an existing package. He asks in the group. Because it is an existing APK package and only needs the version code information, the author sends an AAPT command: AAPT dump bagging < files. APK > here is a brief introduction to the AAPT command, Before, the author also introduced some common ADB commands: summarize some common Android ADB commands. After understanding these commands, it can be more convenient for us to develop and improve development efficiency. Here, the author casually downloaded an app on the Internet for demonstration.
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
List contents of zip compatible archive
aapt list <file.apk>
aapt list -v <file.apk>
The directory will be output in the form of table
aapt list -a <file.apk>
Output the contents of all directories in detail (= AAPT list)
aapt r[emove] [-v] file.{zip,apk} file1 [file2 ...]
Delete specified files from Zip-compatible archive.
aapt a[dd] [-v] file.{zip,apk} file1 [file2 ...]
Add specified files to Zip-compatible archive.
aapt v[ersion]
Print program version.