Security
The security model of the XP8800 has three parts. These are Qualcomm Secure Boot and TrustZone, a fingerprint sensor that TrustZone controls, and an NFC secure element. TrustZone locks some GPIO banks. This is a hard limit for each custom device tree.
TrustZone-reserved GPIO banks
| Pins | Owner | Consequence |
|---|---|---|
TLMM 0–3 (BLSP1_QUP1) |
TrustZone / TEE | Fingerprint SPI bus. Linux cannot use it. |
TLMM 8–11 (BLSP1_QUP3) |
TrustZone / TEE | Linux cannot use it. |
A device tree must have gpio-reserved-ranges = <0 4>, <8 4>. If you do not include <0 4>, the pinctrl driver reads a TrustZone-locked register during msm_pinctrl_init. This causes an SoC reset immediately after boot.
flowchart LR
subgraph TZ["TrustZone (secure world)"]
TEE["QSEE / TEE"]
FP["Goodix fingerprint"]
ESE["NFC secure element"]
end
subgraph HLOS["Linux / Android (non-secure)"]
AP["Application processor"]
end
AP -.->|TLMM 0-3, 8-11 locked| TZ
FP -->|SPI BLSP1 QUP1, TEE-owned| TZ
ESE -->|eSE power TLMM 48| TZ
AP -->|NFC NCI| NFC["NXP NCI controller"]
NFC --> ESE
Fingerprint sensor
| Item | Value | Confidence |
|---|---|---|
| Part | Goodix capacitive sensor, “Milan” family | Stock |
| Bus | SPI on BLSP1 QUP1 (TLMM 0–3), TrustZone-owned | Stock |
| Reset | TLMM 20 | Stock |
| IRQ | TLMM 72 | Stock |
| Supply | PM660L L3 | Stock |
| Stock stack | CONFIG_GOODIX_FINGERPRINT, gx_fpd, gxfingerprint.default.so, goodixfp trusted app |
Stock |
| Mainline | No path. The TEE holds the sensor. | — |
TrustZone owns the bus, and the goodixfp trusted application operates it. Mainline has no path to the sensor. Carrier documentation describes fingerprint enrolment on the XP8. This agrees with the enabled device tree node.
Secure element
The NFC controller has an eSE power line (TLMM 48). The stock image has an eseservice trusted app. This secure element is TrustZone-backed. The NFC subsystem gives access to it.
Verified boot and bootloader lock
| Item | Value |
|---|---|
| Lock state storage | Not in devinfo. On a stock Android 10 build, devinfo is 4 KiB of zeros. |
| Verified-boot state | green when locked, dm-verity enforcing |
| OEM unlock gate | The last byte of the frp partition (offset 524287) |
| Unlock command | Only the AT&T 8.1 userdebug ABL has the command. The stock Android 10 ABL does not have it. |
An unlock of the bootloader changes the verified-boot threat model.
WARNING: DO NOT LOCK THE BOOTLOADER AGAIN WITHOUT A REVIEWED, TESTED PROCEDURE FOR THIS DEVICE. THE PHONE CAN BECOME UNBOOTABLE. See Bootloader unlock.
Hard-brick profile
A write to one of keymaster*, xbl*, tz*, rpm*, hyp*, pmic*, keystore, devcfg*, cmnlib*, or devinfo is the reported hard-brick profile. A legitimate unlock changes only abl_a and frp.