Tools
(835 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.7:
Updated to Play services 17
Updated Device Verification Key (note: Versions 0.6 and below will fail to work from 16th Dec 2019 )
Variant
Arch
Version
DPI
(Android 2.3.4+)
Latest: 0.5 on February 7, 2017
(Android 4.0+)
Latest: 0.7 on December 16, 2019
All versions
December 16, 2019