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

对大apk进行数据复用会有问题 #6

Open
shuajinanhai opened this issue Apr 9, 2024 · 3 comments
Open

对大apk进行数据复用会有问题 #6

shuajinanhai opened this issue Apr 9, 2024 · 3 comments

Comments

@shuajinanhai
Copy link

使用V1 + V2 / V3 签名的apk进行数据数据复用:

1、测试在800多MB的apk是正常的

2、测试在2.2G的apk(com.studiowildcard.wardrumstudios.ark),安装会报错
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1215474834.tmp/base.apk using APK Signature Scheme v3: integer overflow]
而只使用apksig 进行 V1 + V2 / V3 签名,没有数据复用,可以正常安装,能否提供点帮助,非常感谢

@L-JINBIN
Copy link
Owner

L-JINBIN commented Apr 9, 2024

估计是我写的签名算法问题,这几天我找个时间研究下

@shuajinanhai
Copy link
Author

估计是我写的签名算法问题,这几天我找个时间研究下

我数据复用的apk精简后只有60多MB,所以总体apk大小大约2.2G,不超过2.4G。单独进行V1 + V2 / V3 签名,可以正常安装,使用 apksig 进行 V1 + V2 / V3 签名,然后进行数据复用优化,最后使用 V2V3SchemeSigner 再次签名,就安装报错。而测试800多MB那个apk可以正常安装。另外测试用MT管理器对2.2G的那款数据复用(带自动签名)也可以正常安装

@shuajinanhai
Copy link
Author

hello?

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