# android/security-samples

Multiple samples showing the best practices in security APIs on Android.

Repository: https://github.com/android/security-samples
Canonical: https://ross.abutalabs.com/products/security-samples
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: sample
Last push: 2026-08-07T17:06:01+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 2598, "days_push": 26, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1029, forks 448 (observed 2026-08-28T04:03:17.717862+00:00)

## What it is
An official Google repository of Android sample apps demonstrating security best practices, including the Play Integrity API, biometric login, and DirectBoot device-protected storage. Written in Kotlin, it serves as reference code for integrating Android security APIs.

## Use cases
- learn how to integrate the Play Integrity API end to end
- add biometric authentication to an Android app
- store data in device-protected storage with DirectBoot
- find canonical examples of Android security API usage
- set up APK signing for developer verification
- follow best practices for Android app security

## When to choose
- you are building an Android app and need reference implementations of security APIs
- you want official, canonical sample code for biometrics or Play Integrity
- you are learning Android security best practices from maintained examples

## When to avoid
- you need a production-ready library rather than sample code
- you rely on the deprecated samples (BiometricLogin, DirectBoot) which are being deleted in March 2026
- you are not developing for Android

## Facets
- artifact type: learning-resource
- maturity: active
- function: security, auth, cryptography
- domain: security, android-tools, developer-tools, tutorials
- platform: jvm
- tags: android-security, sample-code, biometrics, play-integrity, keystore, google-official, android

## Member repositories
- android/security-samples (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.717862+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:38.195771+00:00, confidence not recorded.
  - readme: https://github.com/android/security-samples (fetched 2026-08-28T04:03:17.717862+00:00, sha a17ebfdcc630)
- Data as of 2026-08-30T08:39:29.467469+00:00.
