Skip to main content

Seamless Passive Liveness Detection with Didit Android SDK

Discover how Didit's Android SDK simplifies the integration of advanced passive liveness detection into your mobile applications. Prevent deepfake and spoofing attacks with an AI-native solution, offering configurable risk.

Seamless Passive Liveness Detection with Didit Android SDK

Contents

In this guide

Jump to the part you need.

Effortless IntegrationDidit's Android SDK allows for quick and seamless integration of passive liveness detection, enabling developers to enhance security without extensive coding.

Advanced Fraud PreventionLeverage AI-native passive liveness to detect and prevent sophisticated spoofing and deepfake attacks in real-time, safeguarding your user onboarding process.

Granular Control and ReportingGain full visibility and control over liveness verification with detailed reports, configurable warning thresholds, and automatic decline conditions for maximum security.

Didit's AdvantageDidit offers a modular identity platform with Core KYC, no setup fees, and a developer-first approach, making robust identity verification accessible and scalable.

The Growing Need for Robust Liveness Detection in Mobile Apps

In today's digital landscape, mobile applications are at the forefront of user interaction, from banking and e-commerce to social media and healthcare. As convenience increases, so does the sophistication of fraud. Identity theft and account takeover attempts often rely on presenting fraudulent biometric data, such as deepfakes, printed photos, or masks, to bypass traditional verification methods. This escalating threat necessitates robust liveness detection, especially for user onboarding and high-value transactions.

Passive liveness detection stands out as a superior method because it verifies a user's presence without requiring active user actions (like head turns or blinking). This creates a smoother, more user-friendly experience while still providing strong protection against spoofing attacks. For developers, integrating such advanced technology can be complex, often requiring deep expertise in computer vision and machine learning. This is where a powerful, developer-friendly SDK becomes invaluable.

Understanding Didit's Passive Liveness Detection Capabilities

Didit's Passive Liveness, a core component of its fraud prevention suite, offers state-of-the-art protection against various spoofing attacks. Unlike active liveness, which might ask users to perform specific actions, passive liveness works silently in the background, analyzing subtle cues in the user's video feed to determine if a real person is present. This AI-native approach ensures high accuracy and a frictionless user experience.

Our system is designed to detect a wide range of presentation attacks, including:

  • Photos and videos presented on screens
  • 3D masks and silicone masks
  • Deepfakes and synthetic media
  • Replay attacks

By leveraging advanced algorithms, Didit's Passive Liveness can differentiate between a live human and a sophisticated impersonation attempt, providing a crucial layer of security for your application. The results are delivered in a comprehensive report, including a liveness score, status, and any detected warnings, allowing for intelligent decision-making.

Integrating Passive Liveness with the Didit Android SDK

Integrating Didit's Passive Liveness into your Android application is streamlined thanks to our developer-first Android SDK. Designed for Kotlin and Jetpack Compose, the SDK provides the tools needed to implement secure identity verification quickly. The process involves a few straightforward steps, ensuring your app can capture biometric data securely and send it to Didit's backend for analysis.

The Didit Android SDK handles camera access, image capture, and secure transmission of data, significantly reducing the development burden. Developers can easily configure the liveness check within their app, triggering it at critical points such as user registration or during a sensitive transaction. The SDK also provides clear callbacks and error handling, making it simple to manage the user flow based on verification outcomes.

For instance, after a user completes a liveness check, the SDK returns a detailed report, as described in Didit's Liveness Detection Report documentation. This report includes critical fields such as the liveness.status (Approved, Declined, In Review), a liveness.score indicating confidence, and a list of warnings. These warnings can range from LIVENESS_FACE_ATTACK to LOW_LIVENESS_SCORE, providing granular insights into potential risks.

Configuring and Interpreting Liveness Results and Warnings

Didit's modular architecture means you have fine-grained control over how liveness detection results are interpreted and acted upon. Our system provides a rich set of warnings and configurable thresholds, allowing businesses to tailor their risk tolerance. For example, you can set specific thresholds for LOW_LIVENESS_SCORE, triggering an automatic decline if the score falls too low, or flagging it for manual review if it's within a suspicious range.

Key configurable settings include:

  • Low Liveness Score: Define review and decline thresholds.
  • Duplicate Face: Configure actions (Decline, Review, Approve) if a face matches an existing entry. This is critical when combined with Didit's 1:1 Face Match and Face Search capabilities.
  • Multiple Faces Detected: For passive liveness, decide how to handle scenarios where more than one face appears.
  • Face Quality and Luminance: Set thresholds to ensure the captured image quality is sufficient for accurate analysis, preventing issues like poor lighting from compromising verification.

Automatic decline conditions are also in place for critical issues like NO_FACE_DETECTED, LIVENESS_FACE_ATTACK, and FACE_IN_BLOCKLIST, ensuring immediate rejection of fraudulent attempts. This level of configurability, combined with comprehensive reporting, empowers businesses to maintain high security standards while optimizing user experience.

How Didit Helps

Didit is the AI-native, developer-first identity platform that makes implementing advanced security measures like Passive Liveness Detection straightforward and effective. Our modular architecture allows businesses to easily integrate specific identity primitives, such as Passive & Active Liveness, into their existing workflows via clean APIs or our no-code Business Console. With Didit, you benefit from pay-per-use pricing, meaning you can start verifying identities without upfront costs or setup fees.

Our Android SDK simplifies the development process, providing a robust and secure way to capture biometric data and leverage Didit's powerful backend for real-time analysis. Beyond liveness, Didit offers a complete suite of identity verification products, including ID Verification (OCR, MRZ, barcodes), 1:1 Face Match & Face Search, AML Screening & Monitoring, Proof of Address, Age Estimation, and NFC Verification (ePassport/eID). This comprehensive approach ensures you have all the tools needed to build a secure and compliant identity verification process, globally and at scale.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.