Skip to content

Conversation

@klyubin
Copy link
Contributor

@klyubin klyubin commented Oct 11, 2017

This reduces APK size by 142 bytes, to 678 bytes, by shrinking the
APK's signature (APK Signature Scheme v2) from 603 to 461 bytes.

The APK's Signature Scheme v2 signature includes the signing
certificate in uncompressed form. Most information contained in the
certificate is not needed by Android or the APK signing tools. This
change thus switches to a hand-crafted minimalistic certificate which
is good enough for Android and apksigner.

This reduces APK size by 142 bytes, to 678 bytes, by shrinking the
APK's signature (APK Signature Scheme v2) from 603 to 461 bytes.

The APK's Signature Scheme v2 signature includes the signing
certificate in uncompressed form. Most information contained in the
certificate is not needed by Android or the APK signing tools. This
change thus switches to a hand-crafted minimalistic certificate which
is good enough for Android and apksigner.
@fractalwrench
Copy link
Owner

Nice one @klyubin!

@fractalwrench fractalwrench merged commit 6bc2f89 into fractalwrench:master Oct 12, 2017
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.

2 participants