xml2axml
xml2axml copied to clipboard
🐛[BUG] ...Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior: 1.反编译xml 2.修改xml字段(我修改的是Application的android:name字段) 3.回编译xml 4.打包的项目中出现无法安装 5.报错 I: 开始回编译 [app-debug.apk] I: Using Apktool 2.4.0_0918 I: Smaling smali folder into classes.dex... [Fatal Error] :1:1: 前言中不允许有内容。 I: Building resources... W: D:\Github\jiagu\dexshellerInMemory\app-debug\AndroidManifest.xml:1: error: Error parsing XML: not well-formed (invalid token) W: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Mic\AppData\Local\Temp\brut_util_Jar_3985120963331572464.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 29, --version-code, 20200527, --version-name, 1.3.0, --no-version-vectors, -F, C:\Users\Mic\AppData\Local\Temp\APKTOOL8804259715256849442.tmp, -0, arsc, -0, arsc, -I, C:\Users\Mic\AppData\Local\apktool\framework\1.apk, -S, D:\Github\jiagu\dexshellerInMemory\app-debug\res, -M, D:\Github\jiagu\dexshellerInMemory\app-debug\AndroidManifest.xml]
6.猜测问题 <查看stringChunk 里面部分String 结尾会多出两位 00 00是否会是这个问题> <或者是空字符串的编/解码问题导致>
- Version [2.0.1]
Additional context Add any other context about the problem here.
提供下xml文件
AndroidManifest.txt 由于不能上传xml 我修改了后缀为txt
贴一下可读的xml文件(非axml),晚点排时间看
单从AndroidManifest看没什么问题,提供Apk看下吧
XQE_秋风版_0.1.5.txt 后缀改一下
按照你提供的复现步骤操作无法复现,请确认复现步骤是否有误:
- 解压Apk文件
- 解码AXML为XML
- 编辑XML,添加application节点属性android:name="xposed.quickenergy.MApplication"
- 编码XML为AXML
- 压缩为Apk文件
- 重签名
- 正常安装