Android uses self-signed so it can only make integrity judgments.
The role of Android signature:
1.Signature Protection level Permission
For privileged permission only a specific signature apk is authorized (different from the manufacturer's APK or a third-party apk)
2.Share Process UID android:shareduserid= "xxxx"
The purpose of share UID between processes is to share resources, etc. (process, knowledge of file uid)
Android two apk share the same UID must be the same as the private key used for its signature. (The same developer's private key, a few different apk will be able to share data)
3. The identifier for upgrading Android apps is package Name:
Package name is different, does not affect each other, allows simultaneous presence (installation)
Package name, only one exists, allowing for upgrade processing
Certificates that must be signed are consistent (anti-counterfeit, intrusion-proof privacy)
If not, the user either abandons the new app or uninstalls the old before installing the new.
Normal upgrade will not erase the application's working directory data to ensure the continuity of historical data.
Use Keytool (for generating digital certificates) and Jarsigner (for signing with digital certificates) in Android to sign the APK package.
Android Security-Signature