Android Verified Boot

Also known as: AVB

On this page 7

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.

StageVerified byVerification method
BootloaderBoot ROMSignature against fused key hash
vbmeta structureBootloaderSignature against embedded or user key
boot and vendor_bootBootloader via libavbFull hash comparison
system and vendorKernel via dm-verityHash tree checked on each read
APEX and app codeAndroid package managerPackage signatures at install and boot
Verification stages in the Android boot chain

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.

StateConditionDevice behavior
GreenLocked bootloader, OEM key verifiedNormal boot without warning
YellowLocked, verified with a user-set custom keyBoot with warning and key fingerprint
OrangeBootloader unlocked, verification not enforcedBoot with unlocked device warning
RedVerification failed or image corruptedRefuse to boot or show error screen
Verified boot states

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.

MechanismWhat it protectsRelationship to AVB
Android Verified BootIntegrity of boot and system imagesFoundation of the chain
dm-verityIntegrity of large read-only partitions at runtimeComponent used by AVB
Key attestationProof of device state to remote servicesReports AVB results
Play Integrity APIApp-level device integrity verdictsConsumes attestation signals
Apple Secure BootBoot chain on iPhone and iPadEquivalent concept on iOS
AVB compared with related mobile security mechanisms

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.