FacePlugin
Get in Touch
Android

Face Liveness Detection SDK for Android

A native Android SDK that runs passive and active face liveness detection entirely on-device – no network round-trip, no frames ever leaving the phone.

Fully on-deviceNative Kotlin/Java SDKNo per-call fees
Man completing a face liveness check on the Android SDK demo
Live person
Liveness ✓
Requirements

What You Need to Run It on Android

These are the exact minimum and recommended requirements published in the FaceLivenessDetection-Android repository — check the repo directly for the latest version, since SDK requirements can change between releases.

Minimum Android versionAPI 24 (Android 7.0) / API 29 (Android 10) or newer recommended
Architecturearm64-v8a or armeabi-v7a (arm64-v8a recommended)
CameraFront or rear camera
Test deviceA physical phone – the emulator is not recommended
IDEAndroid Studio
Quick Start

Install and Activate

Install the SDK, then activate it with a license key before calling any liveness function – every platform follows this same activate-then-initialize pattern.

  • Clone the repo and download facerecognitionsdk.aar from the Releases page into libs/.
  • Copy face-liveness-kit and face-liveness-active into your project, include them in settings.gradle, and add the engine AAR to app/build.gradle with minSdk 24 and abiFilters. Prebuilt AARs are also on the Releases page.
  • Start the engine once, off the main thread. Run passive liveness per frame, or launch ActiveLivenessActivity for the guided blink, smile and head-turn challenge.
kotlin
// app/build.gradle
implementation project(':face-liveness-active')
implementation files(rootProject.file('libs/facerecognitionsdk.aar'))

// Start the engine once, off the main thread
FaceEngine.start(context, "YOUR_LICENSE_KEY") { code ->
    // code == FaceRecognitionSDK.SDK_SUCCESS once the engine is ready
}

// Passive liveness: per frame
FaceEngine.detect(bitmap, DetectOptions.PASSIVE)

// Active liveness: launch ActiveLivenessActivity for a result
// Return codes: 0 success, 1 license invalid, 2 license expired,
// 3 not activated, 4 init failed
Platform notes

Android Integration Notes

Details from the FaceLivenessDetection-Android README.

Add the AAR yourself

libs/facerecognitionsdk.aar is empty on GitHub because the binary is too large. Download it and put it in libs/ directly, not in a nested folder; Gradle fails fast when the file is missing.

Release size

The engine is a large binary, so use ABI splits or an app bundle for release builds. Supported ABIs are arm64-v8a and armeabi-v7a; arm64-v8a is recommended.

API levels

API 24 (Android 7.0) is the minimum and API 29 (Android 10) or newer is recommended. A physical device with a front or rear camera is required.

Active liveness behavior

Losing the face for about a second restarts the attempt. The user must look straight at the camera before challenges begin (yaw, pitch and roll within the start-alignment tolerance); both thresholds are editable under Settings → Active liveness.

Passive and active modes

Mobile SDKs offer both passive and active liveness. Passive scores a live camera feed silently; active asks the user to complete short challenges. Pick active for higher-risk flows such as account recovery.

Server-side checks use the Linux liveness server, which is passive only. The same engine ships for iOS and Flutter.

Licensing

How Licensing Works

Licenses are offline and bound to your app’s application ID. Request a license for your own applicationId rather than the demo’s – the bundled demo key only activates for the demo package.

FAQ

Frequently Asked Questions

Does the Android SDK send biometric data to the cloud?

No. Every liveness check runs on your own server or directly on the device, depending on the platform – images never leave an environment you control.

How is the SDK licensed?

Licenses are offline and bound to your Android applicationId. Contact FacePlugin with the applicationId you ship and we issue a key for it. There are no per-call or per-check fees once licensed.

Where can I see the full source and open an issue?

The Android integration is maintained publicly on GitHub at github.com/Faceplugin-ltd, where you can browse the code, file issues, and track releases.

Related

Pairs Well With

Ready to Add Liveness Detection to Your Android App?

Talk to our team to get a license key and a 15-day evaluation period started.