Face Recognition SDK for Android
A fully on-device biometric engine for Android KYC and mobile onboarding flows — face enrollment, live 1:N identification, and passive liveness checks, with no network round-trip.
What You Need to Run It on Android
These are the exact minimum and recommended requirements published in the FaceRecognition-LivenessDetection-Android repository — check the repo directly for the latest version, since SDK requirements can change between releases.
minSdk 24 (Android 7.0) / Android 10 or newerInstall and Activate
Install the SDK, then activate it with a license key before calling any recognition function — every platform follows this same activate-then-initialize pattern.
- Clone the repository and download
facerecognitionsdk.aarfrom the Releases page intolibs/. - Copy the
face-recognition-kitmodule (and optionallyface-recognition-capture) into your project, include it insettings.gradle, and add the engine AAR plusabiFilterstoapp/build.gradle. - Start the engine once per process with your license key. The first start loads the on-device models, so run it off the main thread.
Prefer a standalone demo app?
FacePlugin also publishes FaceRecognition-LivenessDetection-Android, a standalone Android demo app that combines on-device face detection, template extraction, 2D liveness, 1:1 matching, and 1:N identification. It includes Enroll, Identify, Capture, and Attribute screens and a copy-paste Kotlin helper kit (FaceRecognitionClient), so you can run it as-is or lift the wiring into your own app. It needs Android 7.0 (API 24) or newer on a physical phone, and its native runtime download is linked in the repo README. The bundled demo license is scoped to com.faceplugin.facerecognitionsdk; use your own application ID with a license issued for it.
Android Integration Notes
What teams most often need to know before the first release build, taken from the Android repository README.
Plan for an 80 MB engine
The engine library is about 80 MB. Use ABI splits or an app bundle for release builds so each device downloads only the architecture it needs.
Bind the license to your applicationId
The demo key works only for com.faceplugin.facerecognitionsdk. Change the applicationId and you need a new offline key; FaceEngine.machineCode(context) returns the value we ask for.
Start once, off the main thread
Call FaceEngine.start in Application.onCreate and wait for the callback before opening a camera screen. The first start loads the on-device models, which is the slow step.
Templates are 1,040 bytes
A face template from FaceDetector.template is 1,040 bytes, so a 100,000-person gallery is roughly 100 MB of template data before any index. Store it as a BLOB in your own database.
Tune thresholds in one place
FaceLimits holds every threshold. The README example sets match to 0.80, liveness to 0.50 and yaw, roll and pitch to 20°; the helpers matches, isLive and poseOk apply them everywhere.
Test on real hardware
The emulator has no usable camera for liveness. Use a physical phone running Android 7.0 or newer, ideally Android 10 with 6 GB of RAM or more.
Need the same matching on a server instead? See the Linux and Docker face recognition server. Building cross-platform? The engine behind this page also powers the Flutter and React Native packages.
How Licensing Works
Licenses are offline and bound to your app’s applicationId. The demo ships with a key for com.faceplugin.facerecognitionsdk; your own applicationId needs its own key from FacePlugin. If we ask for a machine code, FaceEngine.machineCode(context) returns it.
Frequently Asked Questions
Does the Android SDK send biometric data to the cloud?
No. Every stage of face recognition runs on your own server or directly on the device, depending on the platform – biometric templates never leave an environment you control.
How is the SDK licensed?
Licenses are offline and bound to your Android applicationId. The demo app ships with a key for com.faceplugin.facerecognitionsdk; for your own applicationId, contact FacePlugin and we issue a key for it. There are no per-call or per-match fees once licensed.
Where can I see the full source and open an issue?
The FaceRecognition-LivenessDetection-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 Face Recognition to Your Android App?
Talk to our team to get a license key and a 15-day evaluation period started.