如何使用aapt获取pkg信息(AndroidManifest)

Ada*_*ami 1 android aapt

我正在尝试使用以下内容从应用程序获取AndroidManifest: aapt dump badging <path-to-apk>

但我一直在努力 W/asset ( 2644): Asset path /data/app/com.UCMobile.intl-1.apk is neither a directory nor file (type=1). ERROR: dump failed because assets could not be loaded

我在这里错过了什么?= /

谢谢!

Tri*_*mon 5

以下是获取清单文件的分步指南:

  1. 下载apktool.jar,apktool.bathttp://ibotpeaches.github.io/Apktool/install/
  2. 将两个文件放在一个文件夹中,即apktool.batapktool.jar
  3. 打开一个dos框(cmd.exe)并切换到该文件夹​​; 验证是否已安装Java环境
  4. 开始: apktool decode [apk file]

    中间结果:资源文件,AndroidManifest.xml

查看此帖子了解更多和替代说明.

干杯!