Google AndroidX Libraries Enhance Granular Security Patch Verification
New AndroidX Security State libraries allow apps to check security patch status at a granular, component level, offering a more precise view of device security.

Google has introduced new AndroidX Security State libraries, specifically v1.1.0 for Security State and v1.0.0 for Security State Provider. These libraries empower applications to verify the security patch status of individual device components, moving beyond the traditional single security patch level (SPL) build property. This granular approach provides a more accurate assessment of a device's overall security posture and its readiness for the latest updates.
The androidx.security.state.provider library offers a standardized mechanism for device manufacturers and developers to manage their over-the-air (OTA) update systems. It allows apps to be informed when an update is available for a specific device, streamlining the update process and ensuring users are prompted for timely installations.
Historically, a single SPL was used to denote a device's security patch level. However, with Android's evolution towards modular updates through systems like Google Play system updates, this single metric is no longer sufficient. The new libraries address this by introducing three distinct levels of security patch information: the Device Security Patch Level (DSPL), which reflects the currently installed patches; the Published Security Patch Level (PSPL), indicating the latest patches officially released in the Android Security Bulletin; and the Available Security Patch Level (ASPL), showing what updates are ready for download and installation on that particular device.
These patch levels cover critical areas of the Android ecosystem, including the core Android operating system, system modules updated via Google Play system updates, and the Linux kernel. For the Linux kernel, security levels are indicated by version numbers rather than monthly patch dates, providing a precise reference for kernel-specific security. This detailed information is crucial for security-sensitive applications.
Security-conscious applications, such as banking or enterprise apps, can leverage this granular data to make informed decisions. For instance, they can verify that the necessary security patches are installed and available before authorizing high-value transactions or enabling sensitive features like credential enrollment. This capability significantly enhances the security of mobile financial operations.
Furthermore, the libraries enable developers to check if specific high-risk vulnerabilities, identified by CVEs, have been patched on a device. This is particularly useful for verifying the installation of critical fixes for components like NFC or Bluetooth before enabling related features, such as tap-to-pay or proximity-based data sharing. The integration with the Open Source Vulnerabilities (OSV) database allows for detailed CVE-level auditing.
Android 17 also introduces support for manufacturers to declare individual security fixes that have been applied, even if they are backported to older software versions beyond the device's stated security patch level. This ensures a more comprehensive understanding of a device's security status. While Google Play system updates already provide ASPL information for devices with GMS, and Google Over-the-Air (GOTA) has adopted the framework, the company is actively collaborating with other device manufacturers to integrate their OTA update clients into this standardized system.
The new Android Security State libraries (version 1.1.0) offer a significant enhancement by providing component-level patch information for the Android system, system modules, and the Linux kernel. This granular data allows security-sensitive applications to verify patch compliance beyond the traditional monthly Security Patch Level, enabling more precise access control based on specific vulnerability fixes or pending updates.