Skip to content

Conversation

@rubenvereecken
Copy link

Addresses for example #105. In short, some APKs don't contain v1 scheme signatures, meaning the usual approach of forcing a v1 fallback and patching that doesn't work for those.

Patches for example:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed collecting certificates for base.apk: Failed to collect certificates from base.apk using APK Signature Scheme v3: Failed to parse/verify signer #0 block: SHA256withRSA signature did not verify]

This implements full v3 patching. Probably a bit of redundant code between the two versions. It does do a fair few things differently like digests or proof-of-rotation, but those are documented.

Happy to clean this up a little if needed!

@rubenvereecken
Copy link
Author

Debug build here

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

Successfully merging this pull request may close these issues.

1 participant