小编use*_*060的帖子

如何使用终端使用Android的aapt工具更新resources.arsc中的AndroidManifest.XML

我需要更新AndroidManifest.XML中使用的包ID,该包被编译为我的Android应用程序(.apk)的resources.arsc文件,而不反编译resources.arsc.

android aapt工具包括更新(-u)的选项,以及重命名manifest.xml和项目其余部分的包ID( - rename-manifest-package && --rename-intrumentation-target-package) .

能够在没有首先反编译的情况下更新或输出resources.arsc非常重要.我有一个替代AndroidManifest.XML,新的id也准备好了.我在下面提供了终端"使用"文档以供参考.我不确定我是否误解了文档,或者它是否只是缺乏理解在终端中使用所需的语法(尝试过DOS和UNIX).

提前致谢!

Usage:
aapt l[ist] [-v] [-a] file.{zip,jar,apk}
List contents of Zip-compatible archive.

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 …
Run Code Online (Sandbox Code Playgroud)

terminal android aapt

11
推荐指数
1
解决办法
5584
查看次数

标签 统计

aapt ×1

android ×1

terminal ×1