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.
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.
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.aarfrom the Releases page intolibs/. - Copy
face-liveness-kitandface-liveness-activeinto your project, include them insettings.gradle, and add the engine AAR toapp/build.gradlewithminSdk 24andabiFilters. Prebuilt AARs are also on the Releases page. - Start the engine once, off the main thread. Run passive liveness per frame, or launch
ActiveLivenessActivityfor the guided blink, smile and head-turn challenge.
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.
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.
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.
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.