Tools
(922 ratings)

SafetyNet Helper is an open source library for the Google Safety Net API. It’s makes it easier for developers to integrate and use this great service provided by Google to add extra layer of validation of the device your app is running on. This is the sample app to show how it works.

If you want to jump straight to the code go here -> github.com/scottyab/safetynethelper/

This sample app will check if your device passes the Google SafetyNet CTS test

SafetyNet Helper library features:
* Simplified call the SafetyNet API
* Decoding of the JSON Web Token (JWT) response into simple POJO
* Integration with the Device verification API to verify the JWT message.
* SSL pinning on the Device verification API connection

From version SafetyNet Helper Sample 0.8:

* Display "advice" data that is returned from Safety Net
* Google/Android TV support
* Updated to Safety Net v17

Variant
Arch
Version
DPI
(Android 2.3.4+)
Latest: 0.5 on February 7, 2017
(Android 4.0+)
Latest: 0.8 on March 26, 2021
(Android 5.0+)
Latest: 0.8 on May 8, 2021
All versions
December 16, 2019
August 17, 2018
February 7, 2017