From c55988075ba0954fad5171488073d08f58a72a11 Mon Sep 17 00:00:00 2001 From: lion187 Date: Thu, 24 Jan 2019 13:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=20Software?= =?UTF-8?q?/Application/AAPT/aapt=5F=E5=91=BD=E4=BB=A4=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=5Fapk=5F=E5=8C=85=E5=90=8D=5F=E4=B8=BB=5Factivity=5F=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=AD=89.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pt_命令查看_apk_包名_主_activity_版本等.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Software/Application/AAPT/aapt_命令查看_apk_包名_主_activity_版本等.md diff --git a/Software/Application/AAPT/aapt_命令查看_apk_包名_主_activity_版本等.md b/Software/Application/AAPT/aapt_命令查看_apk_包名_主_activity_版本等.md new file mode 100644 index 0000000..61e0485 --- /dev/null +++ b/Software/Application/AAPT/aapt_命令查看_apk_包名_主_activity_版本等.md @@ -0,0 +1,24 @@ +# aapt 命令查看 apk 包名、主 activity、版本等 + +aapt 即 Android Asset Packaging Tool,在 SDK 的 build-tools 目录下。该工具可以查看,创建, 更新 ZIP 格式的文档附件(zip, jar, apk)。也可将资源文件编译成二进制文件。 + +Ubuntu 可通过 apt 命令安装 aapt 工具: + + sudo apt-get install aapt + +可通过 aapt badging 输出 apk 的包名,主 activity、版本等信息 + + aapt dump badging > + +之后在 logfile 中搜索 package,后面的 name 就是包名了,搜 activity,可以获取到 主 activity。 + +aapt 的各参数及说明如下: + +| Arg | Description | +|----------------|-------------------------------------------------------| +| 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. |