SafetyNet consists of several application programming interfaces (APIs) offered by the Google Play Services to support security sensitive applications and enforce DRM. Currently, these APIs include device integrity verification, app verification, recaptcha and web address verification. It is an extension of AVB2.0 and dm-verity.
Attestation
The SafetyNet Attestation API, one of the APIs under the SafetyNet umbrella, provides verification that the integrity of the device is not compromised. In practice, non-official ROMs such as LineageOS fail the hardware attestation and thus restrict the user from using a non-compliant ROM while being able to use third-party apps (mainly banking) that require the API. Due to this, some consider this a monopolistic practice deterring the entrance of competing mobile operating systems in the market.
Attestation requires a network connection for Google Play Services to connect to Google servers and validate the hardware signatures. Amongst the checks, the API looks for bootloader unlock status, ROM signature and kernel strings. Upon successful checks, Google Play will mark the device as Certified.
The SafetyNet Attestation API (one of the four APIs under the SafetyNet umbrella) has been deprecated. As of 6 October 2023, Google expects to fully replace it with the Play Integrity API by the end of January 2025. Like the SafetyNet APIs, the Play Integrity API is offered by Google Services and thus is not available on free Android environments (AOSP). Therefore, apps that require the API to be available may refuse to execute on AOSP builds.
See also
References
- "SafetyNet Overview". Android Developers.
- "SafetyNet Attestation API". Android Developers.
- Hoffman, Chris (4 February 2016). "SafetyNet Explained: Why Android Pay and Other Apps Don't Work on Rooted Devices". How-To Geek. Retrieved 2021-09-11.
- "Google's dreaded SafetyNet hardware check has been spotted in the wild". Android Police. 2020-06-29. Retrieved 2021-09-11.
- Ibrahim, Muhammad; Imran, Abdullah; Bianchi, Antonio (2021-06-24). "SafetyNOT". Proceedings of the 19th Annual International Conference on Mobile Systems, Applications, and Services. Virtual Event Wisconsin: ACM. pp. 150–162. doi:10.1145/3458864.3466627. ISBN 978-1-4503-8443-8.
- Schwab, Andreas; Echeverria, Pablo Arias (24 March 2022). "Time to restore fairness and contestability in digital markets". www.euractiv.com.
- ^ "SafetyNet Deprecation Timeline". Android Developers. Retrieved 2023-10-06.
- "Migrating from the SafetyNet Attestation API | Google Play". Android Developers.
External links
- Protect against security threats with SafetyNet
- How does Universal SafetyNet Fix work?
- SafetyNet Attestation API deprecation timeline
- Play Integrity API Documentation
- Play Integrity API Migration Guide
Android | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Software development |
| ||||||||||||||
Releases | |||||||||||||||
Derivatives | |||||||||||||||
Devices |
| ||||||||||||||
Custom distributions |
| ||||||||||||||
Booting and recovery | |||||||||||||||
APIs | |||||||||||||||
Alternative UIs | |||||||||||||||
Rooting | |||||||||||||||
Lists | |||||||||||||||
Related topics | |||||||||||||||