Mobile platforms and security models · Lesson 3 of 4
Android security architecture: verified boot, file-based encryption, CE and DE storage
10 min read
Android looks less uniform than iOS, and in one sense it is. Google publishes the Android Open Source Project (AOSP), and each manufacturer builds its own version on top of it, with its own bootloader, security chips, update schedule and extra features. A Samsung, a Pixel and a phone from a smaller brand can behave very differently during an examination. Underneath that variety, however, the modern Android security model is built on a few shared mechanisms that Google requires through its compatibility rules. This lesson covers them: how Android verifies what it boots, how it encrypts user data, why storage is split into two areas with different keys, and what the hardware does to protect the screen lock. It ends with the settings that most often decide whether an acquisition works.
Who controls an Android phone
Four parties shape what you will find on an Android device:
- Google defines the platform, the compatibility requirements every certified device must meet, and the Google Mobile Services, including Google Play services, which run with high privileges and can be updated without a full system update.
- The manufacturer, such as Samsung, writes the bootloader, the user interface (One UI on Samsung) and its own apps and security features, and decides how long the device receives updates.
- The chipset vendor, such as Qualcomm, MediaTek or Samsung's own Exynos division, supplies the system on a chip and its low-level firmware. Some acquisition methods depend on chipset-specific modes, as lesson 2.6 explains.
- The carrier may customize the firmware and can sometimes lock the bootloader more tightly.
For every Android device, record the manufacturer, model number, Android version, security patch level and build number. Two phones with the same Android version can have different security patch levels, and the patch level often decides which methods work.
Verified Boot
Android Verified Boot (AVB) checks every stage of the boot process against cryptographic keys, from the bootloader to the system partitions. Partitions are protected with dm-verity, which verifies blocks as they are read, so tampering with system files is detected. A rollback index stops an attacker from reinstalling an older, vulnerable version once a newer one has been installed.
The bootloader reports one of several boot states, often shown as a colored warning at startup:
| State | Meaning |
|---|---|
| Green | Bootloader locked, booting software signed by the manufacturer |
| Yellow | Bootloader locked, booting software signed with a user-supplied key |
| Orange | Bootloader unlocked; the software is not verified |
| Red | Verification failed; the device should not boot normally |
Unlocking the bootloader wipes user data
On almost all devices, unlocking the bootloader triggers a factory reset of the user data partition. This is a deliberate security feature: it stops someone from unlocking a stolen phone and booting a tool that reads the owner's data. For examiners, it means that "unlock and root" is not an option on an evidence phone. Some manufacturers no longer offer unlocking at all; press reports say Samsung removed the option with One UI 8. Rooting methods that work without unlocking depend on vulnerabilities, and they are covered in lesson 2.6.
An orange state on a seized phone is a finding in itself: someone unlocked the bootloader, which may point to a technically skilled user, a custom operating system or prior tampering. Samsung devices also have a hardware fuse, part of Samsung Knox, that is permanently tripped when unofficial software is booted; functions that rely on Knox, such as Samsung's payment service and new work profiles, then stop working on that device.
How Android encrypts user data
Android has used two encryption schemes over the years.
- Full-disk encryption (FDE), used from Android 5 to 9 on many devices, encrypted the whole user data partition with one key. If the user had set a startup credential, almost nothing worked until it was entered, including alarms and incoming calls; without one, FDE used a built-in default password and the data was decrypted automatically at boot. FDE is deprecated and was removed from the platform in Android 13.
- File-based encryption (FBE) encrypts files individually, with different keys for different storage areas. It became mandatory for devices launching with Android 10 and is the scheme you will meet on current phones. File names are encrypted as well as contents.
Devices launching with Android 11 or later also use metadata encryption, which encrypts the file system metadata that FBE does not cover, such as directory structure and file sizes, with a key protected by the hardware. Together, these mean that a raw image of the flash memory of a modern Android phone reveals almost nothing, just as on an iPhone.
CE and DE storage
FBE divides each user's data into two storage areas.
Device Encrypted (DE) storage is available as soon as the phone has booted, before anyone enters the screen lock. Its keys are protected by the hardware but not by the user's credential. Apps that need to work before the first unlock, such as the alarm clock, the phone dialer and accessibility services, can keep a small amount of data here. These apps are called Direct Boot aware.
Credential Encrypted (CE) storage becomes available only after the user enters their PIN, pattern or password once after boot. It holds almost everything an examiner wants: app databases, messages, media kept inside apps, account data and most settings.
The main paths reflect the split:
| Storage | Typical paths | Available |
|---|---|---|
| DE | /data/user_de/0/<package>, /data/misc_de/0, /data/system_de/0 | After boot |
| CE | /data/user/0/<package> (also reached as /data/data/<package>), /data/misc_ce/0, /data/system_ce/0 | After first unlock |
| Shared storage | /data/media/0, shown to the user as /sdcard or "Internal storage" | After first unlock |
The number 0 is the user ID of the device's primary user. Phones with work profiles, secondary users, a private space (Android 15 and later; lesson 3.1) or Samsung's Secure Folder have additional user IDs, each with its own CE keys and, often, its own credential. Always check for them; they are easy to miss and often hold the data that matters.
BFU and AFU on Android
The same two states you learned for iOS apply. In BFU, only DE storage and unencrypted system partitions are readable, so even a method with full code execution recovers very little. In AFU, the CE keys for the unlocked user are loaded and stay available while the screen is locked, until a restart. Locking the screen does not remove them on a standard Android build.
Android can also restart itself. Google's Inactivity Reboot restarts a phone that has stayed locked for 72 hours and returns it to BFU; it is part of Advanced Protection, an optional mode for users at high risk (Android 16 and later). Since early 2026 (press reports tie it to the February security patch), Samsung has shipped its own Inactivity Restart setting, also 72 hours, starting with recent flagship Galaxy models on One UI 8 and 8.5 (Settings › Security and privacy › More security settings). The user can switch it off, and press reports do not establish whether it is on by default. Some other manufacturers and custom operating systems have their own timers, some much shorter. You usually cannot see these settings on a locked phone, so treat 72 hours since the last unlock as the working limit unless you can show that the feature is off.
Hardware that protects the screen lock
Android does not check the screen lock in ordinary software. It relies on isolated hardware:
- The Trusted Execution Environment (TEE), usually built on Arm TrustZone, runs a small secure operating system alongside Android. Google's Trusty, Qualcomm's environment and Samsung's TEEGRIS are examples.
- KeyMint (called Keymaster before Android 12) is the trusted application that creates keys and performs cryptographic operations with them. Keys leave it only as encrypted blobs, which Android stores but cannot read or use; this is why key files found in an extraction cannot be used on another device.
- Gatekeeper or Weaver verifies the screen lock and enforces delays after wrong attempts. Weaver runs in a separate secure chip where one exists.
- StrongBox is a dedicated secure element with its own processor and storage. Google's Titan M2 in Pixel phones and Samsung's Knox Vault are examples.
The user's credential is combined with secrets held by this hardware to unlock the CE keys. As on an iPhone, guessing must therefore go through the device's own hardware, at the speed and with the limits it allows. Android 17 reduces the number of allowed guesses and lengthens the delays on supported devices. Weaknesses in a specific TEE or bootloader have allowed bypasses on some chipsets and patch levels, which is why acquisition tools list supported models in such detail.
App isolation
Every Android app runs as its own Linux user ID with its own private data directory under /data/user/0. SELinux (Security-Enhanced Linux), enforced on all certified devices, adds mandatory access rules on top. An app cannot read another app's private data, and neither can a computer connected over USB without elevated privileges. Since Android 10 and 11, scoped storage also limits which files in shared storage each app can see. In practice:
- Shared storage (photos in DCIM, downloads, documents) can often be copied through the Media Transfer Protocol (MTP) or the Android Debug Bridge (adb) once the phone is unlocked.
- App private data, where messaging databases live, needs either the app's cooperation (for example an app's own backup feature), a full file system extraction or root privileges.
Settings that decide what you can do
- USB debugging. adb works only if USB debugging is enabled in Developer options, and each computer must be authorized from the unlocked phone, which stores the computer's RSA key. Enabling it on an evidence phone is a change you must record.
- USB protection and Auto Blocker. Advanced Protection includes USB Protection on Pixel phones and selected Android 17 devices: while the phone is locked, a new USB connection is limited to charging, but a data connection that was already active when the screen locked stays active. Do not unplug an established connection without a reason. Samsung's Auto Blocker, introduced with One UI 6, can block commands sent over a USB cable. Either can make a cable-based method fail.
- Security patch level and updates. Security updates close the vulnerabilities that acquisition tools rely on. Google publishes a bulletin every month, but since 2025 most fixes have arrived in the quarterly bulletins, and manufacturers follow their own schedules. Compare the phone's security patch level with the date a given vulnerability was fixed, and prevent updates from installing on a seized phone.
- Factory reset protection (FRP). After a reset made outside Settings, for example with the hardware buttons in recovery mode, the phone cannot be set up without the previous screen lock or a Google account that was on it. FRP does not preserve user data, because the reset destroys the encryption keys. An FRP prompt shows that the phone was reset and had an account before; the earlier data must come from cloud and companion sources (lesson 2.7).
Applying this to the Corvane case
Victor Hale's Galaxy A phone enters the case about ten weeks after Day 1, when he produces and unlocks it under a court-ordered protocol; until then its state is unknown. The examiner records the model number, the Android and One UI versions (Android 16 with One UI 8), the security patch level and the boot state, and checks whether the phone is in BFU or AFU. A check for other users finds user 150, a Secure Folder. The protocol does not cover it, so it stays locked and is reported as not examined. Victor's WhatsApp database sits in CE storage, in the app's private directory. The three images that WhatsApp downloaded sit in shared storage, in its WhatsApp Images folder, where the gallery displays them. The difference matters: an adb or MTP copy of the unlocked phone may recover the images, but not the messages that explain where they came from.
Exam focus: Be able to distinguish CE and DE storage, give typical paths for each, and say which is available in BFU and AFU. Know that unlocking the bootloader wipes user data and what the Verified Boot states mean, that FBE is mandatory for devices launching with Android 10 or later, and which hardware components protect the screen lock.