VULNARCHIVE

Android Setup Wizard pre-provisioned state escape (Pixel, Samsung, Motorola, others), unpatched, vendor Won't Fix

Major Johnson · · Full Disclosure

Original source

Hi all,

I'm publishing research on escaping the Android Setup Wizard (OOBE) before
a device is provisioned. Google closed my report as Won't Fix, and current
retail devices are still affected.

Summary
On a new or factory-reset device, three independent entry vectors leave the
device in a pre-provisioned state (user_setup_complete=0,
device_provisioned=0) with interactive access. From there, APKs can be
installed and run, permissions granted, and the launcher reached. The apps
survive a reboot, and the device returns to a normal-looking Welcome screen
with no warning to the next user. No root, bootloader unlock, ADB or
developer options are needed.

Entry vectors
1. Invalid EMM provisioning QR code: the enrollment failure page leads
through Help & feedback and the share sheet to Chrome.
2. "Set up using another device": a lock screen can be set before
provisioning, giving Quick Settings and then the launcher.
3. PUK-locked SIM: the lock screen appears during setup, with the same
result.

Demonstrated impact
- Apps implanted before setup on sealed or resold devices, hidden in
Private Space or a work profile
- Persistent carrier-lock circumvention without unlocking the bootloader
- Partial FRP bypass on an FRP-locked device
- Repair Mode access before setup

Affected (tested)
Google Pixel, Samsung (One UI 7 and 8), Motorola, TCL, OnePlus, Sony,
Nothing and Oppo, Android 14 through 17. Vector 1 sits in shared
provisioning code and reproduced on every device I tested that offers QR
enrollment. It last reproduced in November 2026 on a retail Pixel 11 Pro
Fold and Galaxy Z Fold 8.

Timeline
2025-07-29 Vector 1 reported to Google Android VRP (434909818)
2025-08-13 Vector 2 reported (438558569), later closed as Duplicate
2025-08-19 Vector 3 reported (439921166), closed Won't Fix (NSBC)
2025-09-15 Combined report filed (444763720), closed as Duplicate
2026-11-25 434909818 rated Moderate, closed Won't Fix (Infeasible). I told
Google I would publish.
2026-11-26 Public disclosure

No CVE has been assigned.

Mitigation
Factory-reset any new, used or refurbished device yourself before first
use, even if it arrives sealed. An app installed before setup survives a
reboot but not a factory reset. Resellers and IT teams shouldn't treat a
device sitting at the Welcome screen as proof that it's clean.

The full write-up, with reproduction steps, QR payloads, tested builds and
the vendor correspondence, is here:
https://github.com/Majorjayyy1/android-preprovision-escape

Major Johnson IV
_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: https://seclists.org/fulldisclosure/