tldr/pages.zh/common/aapt.md

18 lines
497 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# aapt
> 安卓资源包工具Android Asset Packaging Tools
> 该工具可以查看创建更新资源压缩包zip, jar, apk
> 更多信息:<https://elinux.org/Android_aapt>.
- 列出资源压缩包里的内容:
`aapt list {{路径/到/应用.apk}}`
- 查看 APK 包内指定的内容(版本,权限许可等):
`aapt dump badging {{路径/到/应用.apk}}`
- 打包生成资源压缩包:
`aapt package -F {{路径/到/应用.apk}} {{路径/到/目录}}`