codyi96 / xml2axml

🤒 xml2axml & axml2xml
MIT License
54 stars 19 forks source link

🐛[BUG] ...Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION] #5

Open ckbkdj opened 4 years ago

ckbkdj commented 4 years ago

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是否会是这个问题> <或者是空字符串的编/解码问题导致>

Additional context Add any other context about the problem here.

codyi96 commented 4 years ago

提供下xml文件

ckbkdj commented 4 years ago

AndroidManifest.txt 由于不能上传xml 我修改了后缀为txt

codyi96 commented 4 years ago

贴一下可读的xml文件(非axml),晚点排时间看

ckbkdj commented 4 years ago

AndroidManifest.txt 源文件

codyi96 commented 4 years ago

单从AndroidManifest看没什么问题,提供Apk看下吧

ckbkdj commented 4 years ago

XQE_秋风版_0.1.5.txt 后缀改一下

codyi96 commented 4 years ago

按照你提供的复现步骤操作无法复现,请确认复现步骤是否有误:

  1. 解压Apk文件
  2. 解码AXML为XML
  3. 编辑XML,添加application节点属性android:name="xposed.quickenergy.MApplication"
  4. 编码XML为AXML
  5. 压缩为Apk文件
  6. 重签名
  7. 正常安装