android工具之 aapt
阿新 • • 發佈:2019-01-29
一直用android開發,確不瞭解android SDK自帶的工具,確實是欠缺,於是就自己補了android相關工具的使用知識.
aapt 是什麼?aapt即Android Asset Packaging Tool
雖然是針對android的apk的工具,但是任何zip也能使用這個工具檢視,修改,刪除壓縮包的指定內容
aapt預設只能識別apk和zip,jar的壓縮包
aapt l test.apk //列出test包裡的檔案
aapt dump value xxxx.apk:aapt d[ump] //檢視APK包內指定的內容。
aapt p[ackage] //打包生成資源壓縮包。
aapt r[emove] //從壓縮包中刪除指定檔案。
aapt a[dd] //向壓縮包中新增指定檔案。
aapt v[ersion] //列印aapt的版本
badging //列印apk包內的包名 版本號 Icon Label 等等一些AndroidManifest.xml 資訊.
permissions //列印apk中的許可權資訊
resources //列印資源資訊.
configurations //列印Apk的配置資訊
xmltree //
xmlstrings //