Android Verified Boot (AVB) is the mechanism that cryptographically verifies every stage of the boot process on an Android device, from the bootloader to the system partitions, so that the phone only runs software signed by a trusted key. In mobile security, it is the foundation of the chain of trust: if a malicious or modified image is found, the device warns the user, refuses to boot or starts in a restricted state.
AVB also enforces rollback protection, which prevents an attacker from installing an older, signed but vulnerable build. Together with hardware-backed key storage and attestation, it allows apps and enterprise tools to learn whether the device is running an unmodified, up-to-date operating system.
How Android Verified Boot builds a chain of trust
Android Verified Boot works by having each boot stage verify the next one before handing over control. The chain starts in immutable boot ROM code that verifies the bootloader, and the bootloader then verifies the partitions that make up Android, such as boot, vendor_boot, system and vendor.
The current implementation, often called AVB 2.0 or libavb, places the verification metadata in a dedicated partition named vbmeta. This structure is signed with the OEM private key and contains hashes or hash-tree descriptors for each protected partition, the rollback index and optional chained keys for partitions that are signed separately.
Small partitions such as boot are checked with a full hash before they are loaded. Large partitions such as system are protected with dm-verity, a Linux kernel feature that verifies each block against a Merkle hash tree as it is read, so the device does not need to hash gigabytes of data at startup.
The table below shows which component verifies which stage.
| Stage | Verified by | Verification method |
|---|---|---|
| Bootloader | Boot ROM | Signature against fused key hash |
| vbmeta structure | Bootloader | Signature against embedded or user key |
| boot and vendor_boot | Bootloader via libavb | Full hash comparison |
| system and vendor | Kernel via dm-verity | Hash tree checked on each read |
| APEX and app code | Android package manager | Package signatures at install and boot |
Boot states and what the user sees
Android Verified Boot reports the result of verification as a boot state color, which determines whether the device starts and what warning appears. The state is also passed to the Trusted Execution Environment and appears in key attestation records, so remote parties can see it.
| State | Condition | Device behavior |
|---|---|---|
| Green | Locked bootloader, OEM key verified | Normal boot without warning |
| Yellow | Locked, verified with a user-set custom key | Boot with warning and key fingerprint |
| Orange | Bootloader unlocked, verification not enforced | Boot with unlocked device warning |
| Red | Verification failed or image corrupted | Refuse to boot or show error screen |
The yellow state exists because some devices let owners enroll their own signing key and relock the bootloader, which keeps the full protection of AVB for a custom operating system. The orange state is the common result of unlocking a bootloader for development or rooting; the device still boots, but the protection against persistent, low-level tampering is gone.
Unlocking the bootloader triggers a mandatory factory reset on compliant devices. This design prevents an attacker with physical access from unlocking a stolen phone and reading user data, because the data is wiped before any modified image can run.
Rollback protection and anti-downgrade
Rollback protection stops an attacker from flashing an older signed image that contains known vulnerabilities. Each vbmeta structure carries a rollback index, and the device stores the minimum accepted index in tamper-evident storage, typically Replay Protected Memory Block (RPMB) on eMMC or UFS, or fuses in some designs.
When an update is applied and the device boots successfully, the stored index is raised. Any later attempt to boot an image with a lower index fails verification, even though its signature is valid. This links AVB to the Android security patch level, since an outdated patch level cannot be restored silently.
- The index is updated only after a successful boot, so a failed update can fall back safely through A/B slots.
- OEMs may use separate rollback locations for different partitions or chained keys.
- An unlocked bootloader does not enforce the index, which is one more reason unlocked devices are treated as untrusted.
How AVB supports attestation and enterprise trust
Android Verified Boot matters beyond the device itself because its result is bound into hardware-backed attestation. During key attestation, the Trusted Execution Environment or StrongBox reports the verified boot state, the bootloader lock state and a hash of the verification key, all signed by a certificate chain rooted at Google.
Services such as the Play Integrity API build on these signals to tell apps whether a device has strong integrity. Banking apps, payment wallets and MDM platforms use them to block or restrict compromised devices, and Google Play Protect certification relies on devices shipping with AVB enforced.
| Mechanism | What it protects | Relationship to AVB |
|---|---|---|
| Android Verified Boot | Integrity of boot and system images | Foundation of the chain |
| dm-verity | Integrity of large read-only partitions at runtime | Component used by AVB |
| Key attestation | Proof of device state to remote services | Reports AVB results |
| Play Integrity API | App-level device integrity verdicts | Consumes attestation signals |
| Apple Secure Boot | Boot chain on iPhone and iPad | Equivalent concept on iOS |
Limitations and common misconceptions
Android Verified Boot guarantees integrity of what is loaded at boot, not the safety of everything that runs afterward. It does not stop malicious apps installed by the user, phishing, or exploits that run only in memory and disappear at reboot, so it must be combined with patching, app vetting and runtime protections.
- AVB is not encryption: user data is protected by file-based encryption, which is a separate mechanism.
- Root on a locked device is not supported by AVB: rooting usually requires unlocking, which changes the boot state to orange.
- A reboot can remove non-persistent malware, because AVB ensures the system returns to a verified image.
- Weak OEM key management undermines AVB: a leaked signing key lets attackers produce images that verify as green.
Another limit is hardware dependence. The strength of AVB depends on the boot ROM, secure storage for rollback indexes and the quality of the TEE, so budget devices with poor implementations may provide weaker guarantees than flagship models even when both report a green state.
A plain-language summary
Android Verified Boot is a security check that runs every time a phone starts. Before each piece of software is allowed to run, the phone checks a digital seal on it, much like a guard checking an official stamp before opening the next door.
If every seal is genuine, the phone starts normally. If something was changed, the phone shows a warning or refuses to start. It also refuses older software versions with known holes, so an attacker cannot quietly swap in a weaker version of Android.
An example from practice
A company issues 2,000 Android phones to field staff and manages them through an MDM platform. Its policy requires that every device reports a green verified boot state and a locked bootloader before it can open the corporate email and document apps in the work profile.
One employee unlocks the bootloader to install a custom image. On the next check-in, the attestation record shows an orange boot state, and the MDM automatically blocks access to work data and notifies the help desk. After the device is reflashed with the official image and relocked, it reports green again and access is restored. AVB thus turned a hidden modification into a visible, enforceable signal without any manual inspection.