How SmileID Scaled Identity Verification to 18,000+ Android Device Types with CameraX

The Landscape of Fragmentation and Legacy Constraints
Before the transition to CameraX, the engineering team at SmileID operated within the constraints of legacy APIs, specifically the deprecated Camera1 and the complex Camera2 interfaces. These older systems were not designed for the modern requirements of real-time machine learning (ML) analysis, which demands a constant, high-quality stream of image data for liveness detection and deepfake prevention.
For SmileID, the operational friction was palpable. Developers were frequently forced to write custom code to handle "quirks"—specific behaviors unique to individual smartphone models or original equipment manufacturers (OEMs). This led to a range of performance issues, including stretched camera previews, incorrect image rotation, and, most critically, out-of-memory (OOM) crashes on low-end devices that lacked the RAM to handle high-resolution image processing buffers. Consequently, many identity verification attempts failed during the capture phase, forcing users to fall back to static image uploads. While functional, these static uploads increased latency and lacked the robust security provided by real-time liveness checks, which are essential for preventing modern synthetic fraud.
The Technical Pivot: Implementing CameraX
The decision to re-engineer the SmileID SDK using CameraX represented a shift from reactive troubleshooting to proactive architectural design. CameraX is a Jetpack library designed to simplify camera app development by providing a consistent, lifecycle-aware interface that abstracts the underlying hardware differences.

By utilizing the Preview and ImageAnalysis use cases within the CameraX framework, SmileID established a dual-purpose pipeline. This pipeline allowed the SDK to simultaneously display a smooth, low-latency viewfinder to the end user while feeding high-resolution frames into an ML-based analysis engine. One of the most significant technical upgrades was the integration of the ResolutionSelector API. This feature enabled the engineering team to set precise target resolutions for image analysis. When a device could not meet the ideal resolution, the API automatically selected the best available alternative based on pre-defined fallback strategies.
This level of control ensured that SmileID could maximize image sharpness—vital for detecting subtle artifacts in deepfakes—without overwhelming the device’s memory. The implementation also included a STRATEGY_KEEP_ONLY_LATEST backpressure configuration, which ensured that if the device processor became overloaded, the system would drop older frames rather than queuing them, maintaining a responsive UI even on entry-level smartphones.
Chronology of the Transformation
The migration process was not instantaneous but followed a methodical path of optimization and testing.
- Initial Phase (Pre-2022): Reliance on legacy Camera1/Camera2 APIs. Growth was steady but constrained by high failure rates on non-standard Android models. The SDK was limited to a 2–3x year-over-year adoption rate.
- Implementation Phase (2022): The engineering team began the core migration to CameraX. This involved re-writing the image capture logic to be lifecycle-aware and optimizing buffer management to prevent OOM errors.
- Verification and Scaling Phase (2023): With the new architecture, the SDK achieved support for over 18,000 distinct Android device models. Verification pass rates began to climb significantly as technical barriers to entry were removed.
- Deployment and Results Phase (2024): The system hit a milestone of 160 million processed verifications. The adoption rate surged to 20x compared to the pre-migration baseline.
Data-Driven Impact and Reliability
The quantitative results of the migration illustrate the importance of robust camera infrastructure in the fintech sector. According to SmileID, the transition resulted in a 20% increase in overall verification pass rates. In practical terms, this improvement has massive implications for financial inclusion; thousands of users who were previously unable to complete the onboarding process due to technical glitches can now successfully verify their identities.

Furthermore, the quality of the data captured improved by 4x, as the system could reliably access higher-resolution sensor data. Remarkably, this improvement did not result in increased data costs for the user. Through efficient on-device cropping and compression, SmileID maintained identical network overhead, ensuring that the enhanced security features remained accessible to users on limited data plans—a critical factor in the African market.
The Role of Google’s Compatibility Engineering
A major factor in SmileID’s success was the support provided by Google’s Camera and Media Test Lab. Maintaining compatibility across 18,000 devices is a task that would be virtually impossible for a single company to manage manually. The Test Lab runs an automated, continuous suite of tests across a rotating matrix of over 190 physical devices representing the most common chipsets and OS versions in the wild.
By using CameraX, SmileID tapped into this centralized compatibility layer. The internal "DeviceQuirks" and "CameraQuirks" loaders within the library automatically detect the specific hardware being used and apply the necessary workarounds—such as exposure adjustments or rotation fixes—at runtime. This removed the burden from the SmileID team to write and maintain thousands of lines of conditional code, effectively offloading the "fragmentation tax" to the framework level.
Broader Implications for the Identity Industry
The success of the SmileID migration provides a blueprint for other developers operating in high-stakes environments where hardware reliability is a barrier to entry. As digital identity becomes the primary gatekeeper for banking, telecommunications, and government services, the quality of the "handshake" between the user and the system—the biometric capture—is the most critical point of failure.

The implications for the industry are two-fold. First, it highlights that software abstraction layers like CameraX are not merely conveniences; they are essential infrastructure for scaling secure digital services globally. Second, it demonstrates that technical performance directly correlates with business growth. By removing the technical friction of the camera experience, SmileID lowered the barrier to user acquisition, which directly facilitated their 20x growth in SDK adoption.
As the industry moves toward more sophisticated AI-driven fraud detection, the need for high-quality, reliable raw data will only increase. With the recent launch of the CameraX Skill for AI coding agents, Google is signaling a continued commitment to this developer-first approach. By providing tools that allow AI assistants to generate production-ready code for complex tasks like lifecycle binding and ML analysis, the barrier to entry for building world-class identity verification tools continues to drop.
The case of SmileID serves as a landmark study in how modern Android development practices can turn a fragmented, challenging hardware ecosystem into a stable, scalable foundation for global financial services. By prioritizing the camera pipeline as the cornerstone of the user experience, companies can ensure that security and usability are not competing interests, but mutually reinforcing pillars of digital growth.







