Application signature verification (anti-tamper)

One of the cornerstones of Android security is that all apps must be digitally signed. Application developers sign apps using a private key in the form of a certificate. There's no need to use a certificate authority, and in fact, it's more common to use self-signed certificates.

Certificates are usually defined with an expiration date, and the Google Play store requires a validity period ending after October 22, 2033. This highlights the fact that our app signing key stays consistent throughout the life of the app. One of the primary reasons is to protect and prevent app upgrades unless the signatures of the old and upgraded .apk files are identical.

So, if this verification already happens, why ...

Get Android Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.