Giter Club home page Giter Club logo

yasnac's Introduction

YASNAC

YASNAC (short for Yet Another SafetyNet Attestation Checker) is an Android app that demonstrates SafetyNet Attestation API.

YASNAC is written with Jetpack Compose.

Introduction

SafetyNet is developed by Google, it provides a set of services and APIs. SafetyNet Attestation API provides a cryptographically-signed attestation, assessing the device's integrity. The app developer can use SafetyNet Attestation API to check if the device is an emulator, bootloader unlocked, system integrity compromised (root for example), etc. Read the document from Google for more.

This app uses SafetyNet Attestation API and displays the result.

In the production environment, the response of the SafetyNet Attestation API should be transfer to a remote server for verification. As a simple demonstration project, it is impractical to provide a server, so the verification step runs locally.

Download

  • Google Play

  • GitHub release

    Some users report that attestations always fail for "The version of the Google Play services installed on this device is not authentic". This could be solved by installing the app from Google Play. See #24 #22.

Release apk uses our API key, which has a quota of 10,000 times per day. The quota is shared across all users. If the quota is exhausted, you will see an error.

Build

  1. Obtain as many API keys as desired by following the guide from Google
  2. Write the key(s) to local.properties in the form of apiKey=api_key_1\",\"api_key_2...
  3. Build with Android Studio or command line gradlew :app:aR

Something else

Android's Key Attestation API is used by SafetyNet to check if the device is unlocked.

Key Attestation (vvb2060/KeyAttestation) is another demonstrate app for the Key Attestation API.

yasnac's People

Contributors

rikkaw avatar vvb2060 avatar displax avatar l22s avatar arcentpriv avatar jamal2362 avatar koz-nik avatar abacate123 avatar giacomoferretti avatar gdonisi avatar orstudio avatar nmayorga092 avatar rafapadilla93 avatar reindex-ot avatar temp-byte avatar s1204it avatar vladwinner avatar weblate avatar weslley75 avatar falptekin avatar linuxct avatar metezd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.