如何编辑.APK文件中的清单

时间:2015-08-17 11:50:25

标签: android android-manifest

有人知道只编辑apk文件中的清单等脚本的方法吗? 我需要在脚本中粘贴一些行..

2 个答案:

答案 0 :(得分:4)

存在用于反编译然后重建APK的工具,例如apktool:http://ibotpeaches.github.io/Apktool/

答案 1 :(得分:0)

我挖了几个小时。这是我最后使用的工具: https://github.com/WindySha/ManifestEditor

我不得不为不同的环境使用稍微不同的 AndroidManifest.xml 设置。使用 apktool 反编译和再次编译确实会减慢 CI/CD 过程,因此 ManifestEditor 可以挽救生命。它基于 AXMLEditor