Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ckbkdj opened this issue Jun 3, 2020 · 7 comments
Open

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

ckbkdj opened this issue Jun 3, 2020 · 7 comments

Comments

@ckbkdj
Copy link

ckbkdj commented Jun 3, 2020

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.

@codyi96
Copy link
Owner

codyi96 commented Jun 3, 2020

提供下xml文件

@ckbkdj
Copy link
Author

ckbkdj commented Jun 3, 2020

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

@codyi96
Copy link
Owner

codyi96 commented Jun 3, 2020

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

@ckbkdj
Copy link
Author

ckbkdj commented Jun 3, 2020

AndroidManifest.txt
源文件

@codyi96
Copy link
Owner

codyi96 commented Jun 6, 2020

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

@ckbkdj
Copy link
Author

ckbkdj commented Jun 6, 2020

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

@codyi96
Copy link
Owner

codyi96 commented Jun 7, 2020

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants