-
Notifications
You must be signed in to change notification settings - Fork 139
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
Invalid Signature Scheme v2 after restoring #104
Comments
I don't have good experience with signatures, I think you need to re-sign with your key after building/restoring signatures. @Kirlif Can you help us here ? |
No, otherwise I can't login with Google account. The purpose of restoring original signature is to be able to login with Google account with modded APK. |
[INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates using APK Signature Scheme v2: APK content size did not verify] Checked the dumped blocks: it's okay. I get the same and the first time issue using my own tool :) @Yehh22 , since the minSDK is 21, you can simply, for a temporary workaround, keep only the v1 scheme: |
Well, I'm using Apktool for modifications since I'm getting too used to it. Recompiling APK and changing files makes v2 scheme disappear, that's why I wanted to restore it. It's very useful feature to restore signature anytime CorePatch is a Xposed module to disable signature verification, allowing unsigned APK installation, overwrite apk with different signature, downgrade version, and more. Tutorial: https://www.andnixsh.com/2020/02/disable-signature-check-using-core.html |
Describe the bug
Signature Scheme v2 is invalid when restoring signature back to modded APK I dumped from original APK. Works perfectly fine with other games. I'm using CorePatch 4.5 for LSPosed 1.9.2 Zygisk
To Reproduce
Steps to reproduce the behavior:
java -jar H:\Temp\APKEditor-1.3.8.jar d -t sig -i "H:\Temp\CarX Drift Racing 2_1.31.1_apkcombo.com.apk" -sig H:\Temp\sig
java -jar H:\Temp\APKEditor-1.3.8.jar b -t sig -i "H:\APK Tool GUI\Compiled APK\CarX Drift Racing 2_1.31.1_apkcombo.com.apk" -sig H:\Temp\sig
Log/Stacktrace
Installing... adb: failed to install H:\APK Tool GUI\Compiled APK\CarX Drift Racing 2_1.31.1_apkcombo.com.apk_out.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1213934018.tmp/base.apk using APK Signature Scheme v2: APK content size did not verify] Performing Streamed Install
Used apk file
https://apkcombo.com/downloader/#package=com.carxtech.carxdr2&arches=armeabi-v7a
The text was updated successfully, but these errors were encountered: