Device preparation¶
TL;DR. overpressure device (tooling/development/device.py, the PICO 4's words on overpressure's
device commands) makes an original PICO 4
recoverable and unlocked, and returns it to stock: identity, a verified EDL backup, the engineering ABL, the
unlock, and later the stock ABL, or, after an EDL accident, the whole backup. The installer (overpressure install,
installer.md) runs these steps itself; dev stage-abl and cycle run stage and restore-abl unattended
(Development mode). backup, stage, unlock, restore-abl and restore-all only print
their external commands unless --execute is given. Every command that touches the headset (probe,
check-unlocked, backup, stage, unlock, restore-abl, restore-all) first asks the disclaimer
(--accept-disclaimer for unattended runs).
| Step | Command | Headset in |
|---|---|---|
| 1. Identity | device probe |
PICO OS, USB debugging authorized |
| 2. Backup | device backup, device verify-backup |
EDL |
| 3. Engineering ABL | device stage |
EDL |
| 4. Unlock | device unlock |
fastboot, engineering ABL |
| 5. Factory reset (only for PICO OS), the recovery | PICO OS recovery; dev flash (recovery.md, hardware-testing.md) |
fastboot, then development mode |
| 6. Stock ABL, when leaving development | device restore-abl |
EDL |
| 7. The whole backup, when no bootloader starts | device restore-all |
EDL |
All of it has run on the tested headset (original PICO 4, PICO OS 5.13.7). The implementation is independent,
informed by PicoUnlock's documented process and
its serial encoding protocol;
credit for the discovery belongs to typlo and its upstream contributors. None of its scripts, drivers, engineering images
or Magisk packages are used. The token masks the 32-bit SoC ID with 0xF7F3F37F and maps the hexadecimal digits
through 0XD9J6FB3ATQIHNM. Android rooting, Magisk, OS downgrades, relocking and automated userdata restoration
are out of scope.
Tools and device scope¶
adb, fastboot and the EDL client edl-ng come from overpressure tools.
The device commands use edl-ng by default (--edl-backend edl-ng: --memory Ufs, read-part, write-part,
dump-rawprogram), the one the settings name (PICO4_EDL, else the fetched one), or --edl PATH; cycle, dev
and the installer use it too. bkerler/edl is the alternative, installed
separately (--edl-backend bkerler: its rl, r, w, --genxml, --memory=ufs and --loader interface, edl
on PATH or --edl PATH). A client that is not there is refused by name before anything is read or made. QFIL
syntax is not supported.
overpressure device fetch-unlock-files fetches the signed Firehose loader and the engineering ABL
from PICO's public Neo 3 downloads and checks them by hash (distribution.md). No driver is
installed automatically.
- If Windows turns bkerler's entrypoint symlink into a text file, use
--edl-script cache/edl-client/edl.py --edl-python cache/edl-venv/Scripts/python.exeinstead of--edl. - On Windows, edl-ng uses the Qualcomm QDLoader COM interface: Device Manager must show the EDL device as healthy,
not as an unknown
QUSB_BULKdevice with error 28. A signed driver forUSB\VID_05C6&PID_9008is in the Microsoft Update Catalog; install only its serial driver (qcser.inf), after checking the catalog signature and hardware ID. UsbDk is not needed for EDL. - On Windows, fastboot needs Google's USB driver (
android_winusb.inf, from developer.android.com) forUSB\VID_18D1&PID_D00D, the bootloader's fastboot; without it Device Manager shows anAndroiddevice with error 28 and fastboot lists nothing.overpressure doctornames both drivers when they are missing, and the installer checks them before it takes the headset out of PICO OS. - If an interrupted EDL session stops responding, restart into PICO OS, check its ADB identity and enter EDL again.
Verified hardware¶
The tools run only on what the whole path has run on, or on PICO OS builds that run the same code before the kernel, and refuse the rest before they change anything:
| Verified | Checked by | |
|---|---|---|
| Headset | original PICO 4, A8110, phoenix, with LPDDR4X | the fingerprint, PICO OS's model (pxr.vendorhw.product.model PICO 4) and memory (ro.vendor.ddr_type DDR4), in device probe and every later command |
| PICO OS | 5.13.7 global-seko (ro.oem.state true), where the whole path has run; 5.13.3 and 5.13.8 global-seko and 5.13.3, 5.13.7 and 5.13.8 global-sek, which run the same code before the kernel (other builds) |
the same, with the fingerprint's region |
| Panel | Sharp LS026B3SA | dev install, from the kernel command line in overpressure's recovery (the installer checks it on PICO OS too): the stock tree also knows an Innolux NT57900, which our driver and tree do not |
Neo 3 and Ultra have other fingerprints and are refused. The PICO 4 Pro and Enterprise take the same packages
(PICOA8110) and report the same fingerprint, but have LPDDR5, which the fetched Firehose loader and the
kernel's memory bus table are not made for. PICO OS tells them apart: its pxr.vendorhw.check.sh sets
pxr.vendorhw.product.model from the serial number (PICO 4, PICO 4 Pro, PICO 4 Enterprise), and its
init.customize.config.sh sets ro.vendor.ddr_type from the bootloader's memory report (DDR4, DDR5).
Anything but PICO 4 and DDR4, or no answer, is refused; an identity saved before the probe read these keys
keeps working. All this ran on one headset: a second unit can differ in what the checks don't see, such as the
RGB camera's module (PICO OS knows two makers' with nearly the same settings).
Keep only the intended Qualcomm device connected during EDL operations. ADB and fastboot select by serial,
but the EDL adapter cannot verify that the device matches the identity: --confirm-device (the saved ADB
serial) is the user's acknowledgment of that physical check. cycle also compares the serial edl-ng reports
with PICO4_EDL_SERIAL. The device commands never switch the headset between PICO OS, fastboot and EDL, so
no operation silently moves from inspection to writing; dev stage-abl and the cycle do switch. The command
log on stderr contains device identifiers. Identity files, logs and backups stay private (backup/ and
assets/ are ignored by Git).
Other PICO OS builds¶
tooling/stock/firmware.json lists PICO's public full packages for the PICO 4, all still on PICO's servers; 5.13.8
is the newest. seko and sek are secure-boot user builds of the same source, built minutes apart: seko with
ro.oem.state=true in system/build.prop, sek with it empty, each with its own AVB key for vbmeta and
recovery. Only PICO's updater (SystemUpdate2) reads the property, and every package refuses a headset with
the other value, so it picks the headset's update track. The region is the fingerprint's product
(Phoenix_ovs global, Phoenix China).
What the headset's own build decides. The installed system runs the headset's own build's files: DSP
images, Wi-Fi and Bluetooth firmware from its modem, dsp and bluetooth partitions; GPU firmware, PICO's
tracker and libraries, sensor and audio configuration from its backup's super
(installed-system.md); persist. Only on 5.13.7 global-seko have they run; on the other
accepted builds they are that build's, untested. The stock recovery under overpressure's recovery comes from the
headset's own backup (its recovery partition). The headset's own build also stays in what runs before the kernel and is never
written: the boot chain (XBL and its configuration, AOP,
TrustZone and its libraries, the hypervisor, devcfg, the serial engines' firmware, the UEFI volume) and the board
overlay in dtbo. The ABL is not among them: the install replaces it with the engineering ABL.
PICO OS's files on the other builds. From PICO's packages, compared with 5.13.7 global-seko's as the install
copies them (stock-files):
- 5.13.3: byte-identical, except two controller libraries and five firmware images.
libpico_controller_tracking.pxr.soandlibpvrtrackingservice.soare other builds. They hold the same LED models, LED normals and aim-to-grip defaults at other addresses, which their code loads the same way.- The GPU's zap shader, the video codec's firmware and the three DSPs' differ only in their hash segment.
- 5.13.8: the three controller libraries are byte-identical to 5.13.7's.
The extractors (tooling/controllers/ledmodel.py, tooling/controllers/aimgrip.py) know each library build's addresses by its
SHA-256, and refuse an unknown build before anything is written.
overpressure bootchain compares those members of each package with 5.13.7 global-seko's: an image
runs the same code when every segment but its hash segment (hashes, signature, certificates) is byte-identical;
dtbo is compared overlay by overlay, by compatible and qcom,board-id (kona MTP and kona-iot MTP share a
board-id; the order changes between builds). PICO signs every build anew, so no image is byte-identical. The
recovery the install writes is checked against the headset's vbmeta: its key and rollback index are read too.
| Build | ro.oem.state |
Date | Before the kernel | vbmeta and recovery key |
Here |
|---|---|---|---|---|---|
5.13.7 global-seko (b9665) |
true | 2025-10-30 | the reference | the reference | verified: the whole path has run |
5.13.3 global-seko (b9480) |
true | 2025-07-03 | the same code, re-signed; dtbo the same |
the same, recovery rollback index 1 | accepted: the same code |
5.13.8 global-seko (b10102) |
true | 2026-09-02 | the same code, re-signed; dtbo the same |
the same, recovery rollback index 1 | accepted: the same code |
5.13.3, 5.13.7, 5.13.8 global-sek (b9479, b9666, b10113) |
empty | the same code, re-signed; dtbo the same |
another key: the install keeps the headset's own vbmeta and writes its recovery with the headset's own stock recovery's |
accepted: the same code | |
5.13.7 cn-seko, cn-sek (b9650, b9651) |
true, empty | 2025-10-30 | XBL and AOP differ | refused: other code before the kernel |
The tools refuse every other build too, naming the reason, before anything is written. An accepted build is accepted on this comparison: the engineering ABL, the unlock and the whole path have run on 5.13.7 only; the unlock's upstream reports it working through 5.13.8.
What the packages also say (their updater-script and firmware):
- No way back through PICO's updater. Every package refuses a headset on a newer build
(
E3003: Can't install this package ... over newer build) or the otherro.oem.state(E3009): a headset on 5.13.8 cannot get 5.13.7 from PICO, nor move betweensekoandsek. The install does not need it to. - No anti-rollback. No boot-chain image carries an anti-rollback version in its signing header or
certificates, and the engineering ABL chains to the same Pico root CA as every 5.13.7 and 5.13.8 ABL and XBL.
In all eight packages
vbmetahas rollback index 0 andvbmeta_system1617580800; recovery's is 1 in everyglobalone. - Who can install today: a headset on a
globalbuild,sekoorsek, 5.13.3, 5.13.7 or 5.13.8.
Entering and leaving EDL¶
- From PICO OS with USB debugging authorized:
adb reboot edl. No buttons are needed. - From the installed system or overpressure's recovery:
overpressure dev edl(a restart with the argumentedl, kernel.md). No buttons are needed. - By hand: hold both volume buttons while connecting USB to the powered-off headset.
- In EDL the headset is Qualcomm HS-USB QDLoader 9008 (
05c6:9008). edl-ng --loader assets/phoenix/firehose.elf --memory Ufs reset --mode Resetleaves EDL and starts the headset (the other modes power it off or return to EDL). If it stays off, a hard reset (power button held for more than 10 s) starts it.
1. Identity¶
With PICO OS running and USB debugging authorized:
probe reads ro.build.fingerprint, ro.oem.state, pxr.vendorhw.product.model, ro.vendor.ddr_type and
/sys/devices/soc0/serial_number through ADB and writes them with the ADB serial to backup/phoenix/device.json
(--output for another path; an existing file is never overwritten; --serial with several ADB devices). The
SoC ID (chip ID) is a decimal or 0x hexadecimal integer, not the USB or ADB serial. token only prints the
derived fastboot command. The fingerprint and OEM state select the recovery firmware:
overpressure match --fingerprint "..." --oem-state false (recovery.md).
2. Backup¶
Capture the recovery files before modifying anything. In EDL, check that the intended device appears as 9008. This previews the external command and does not contact EDL:
overpressure device backup --identity backup/phoenix/device.json --backup backup/phoenix/stock --loader assets/phoenix/firehose.elf
Add --execute --confirm-device ADB_SERIAL to dump. The backup directory must not exist yet, unless
--resume goes on with this headset's unfinished backup there (a stopped backup). The dump takes
all partitions and the GPT and rawprogram metadata, without userdata by default; --include-userdata adds the
full partition (allow space for the whole storage; no used-sector mode). Back up personal data separately.
It always leaves out Android's cache and the crash-dump areas rawdump and logdump
(qualcomm.NOT_KEPT): no install or restore writes them back, and they hold nothing of the unit's own
(2.7 GiB of the PICO 4's 12.5, 0.1 GiB of it data). They stay in the rawprogram maps, with their sizes, and the
manifest names them (skipped). Every other partition stays, the boot chain's *bak copies and the unit's
own data (persist, fsg, modemst1/2, the mdm*efs partitions, devinfo, secdata, keystore)
included: no tool writes them, they are the way back after an EDL accident.
On this computer the images' zero runs take no space (overpressure/holes.py):
they are handed back to the file system right after the manifest is written (sparse files on NTFS, ext4 and
APFS; elsewhere the files keep their full size), and the files read the same, byte for byte. The PICO 4's
backup of 9.8 GiB takes about 6.9 GiB. overpressure backup compact does the same for a backup
taken before.
With edl-ng, list the LUNs first (edl-ng --loader assets/phoenix/firehose.elf --memory Ufs printgpt) and pass all
LUNs that device reports:
overpressure device backup --identity backup/phoenix/device.json --backup backup/phoenix/stock --loader assets/phoenix/firehose.elf --edl-luns 4 1 2 3 5 0 --include-userdata
Each LUN goes to its own lun<N>/ with rawprogram<N>.xml, which keeps duplicate partition names apart. Every
non-skipped file of each rawprogram map must have exactly the advertised sector count. The adapter cannot prove
that a manual LUN list is complete. The example dumps the small firmware LUNs before LUN 0, which commonly holds
userdata. stage and restore-abl take the same client. The way back and the write
checks read this backup (maps, sizes, hashes); building an image does not need it
(building.md).
A stopped backup¶
A backup that stops leaves its folder as it is, marked with whose it is (unfinished.json, the identity record);
the manifest takes its place once the backup is complete. With edl-ng, --resume goes on with this headset's
unfinished backup: edl-ng writes each LUN's rawprogram map before it reads a partition and deletes the file of a
read that fails, so every partition whose file has the map's size counts as read and is skipped; the rest is read
again. A complete backup, or another headset's, is never written to. The installer resumes by itself: a try after a
stopped backup goes on with it, where an older or another headset's folder stays and a new one is started.
A stopped backup is almost always the USB port or the cable. Windows' Qualcomm serial driver gives edl-ng a second
for each transfer, and a transfer that times out in the middle of the session ends it (QUD write to \\.\COM5 timed
out); a reply can also arrive garbled, as zeros that edl-ng's XML reader refuses ('.', hexadecimal value 0x00, is
an invalid character). Either way the loader keeps running, and it is still sending the rest of the cut-off
transfer: until that is read it takes no command, and a new session meets those bytes as its answers and fails the
same way, or finds no mode at all (Device mode is Unknown). The installer says so, and asks for another USB port
directly on the computer (no hub, dock or front panel) or another cable first. The next try frees the loader
itself: its first, read-only session sees that the headset does not answer, reads what the loader still sends
(qualcomm.unstick: the COM port on Windows, libusb elsewhere; nothing is sent), restarts it normally (a restart
into a fresh EDL session is acknowledged but left undone after a session), enters EDL mode again from what starts
(PICO OS through adb, our systems with dev edl's restart) and goes on from where it stopped. Only a loader that
still sends after 5 minutes, or a headset that takes no restart (no loader runs), needs a restart by hand (hold the
power button for about 10 s). On the headset, on Windows: a read of boot cut off after 4 s left 4.4 MB to read;
the first session then freed it, came back through overpressure's recovery and named the serial in 34 s. Linux's
libusb path is not tried on hardware yet. A failed command's whole output goes into the backup's edl.log.
A manifest is written only when the dump has abl, boot and devinfo images, the GPT (gpt_main*), the
rawprogram maps and, when requested, userdata; a failed dump has none and cannot be used later. edl.log keeps
the client's output.
manifest.json records the identity, the EDL backend, the LUNs and the size and SHA-256 of every file.
Verification finds missing, empty and modified files; it does not prove that a restore works or that EDL
dumped every partition correctly. Inspect the GPT and rawprogram files and edl.log, confirm that boot,
abl, devinfo and the calibration partitions (persist, fsg) are present, and keep an independent copy.
stage, unlock, restore-abl and hwtest flash-run verify the backup against its manifest, and its identity
against the identity file, before they act. The dumped boot also works with
overpressure build --stock-boot PATH; find its name in the dump (no A/B layout).
3. Engineering ABL¶
Use the exact partition names of the captured GPT (an unsuffixed abl on the PICO 4; abl_a/abl_b only if the
table says so). A devinfo image is staged the same way with --partition devinfo.
overpressure device stage --identity backup/phoenix/device.json --backup backup/phoenix/stock --loader assets/phoenix/firehose.elf --partition abl --image assets/phoenix/engineering-abl.elf --sha256 EXPECTED_SHA256 --readback out/engineering-abl-readback.bin
--execute --confirm-device ADB_SERIAL writes. The partition needs exactly one hash-verified original in the
backup; the image must fit it and match the SHA-256 (integrity and size, not provenance or compatibility). A
fresh EDL readback is compared with every byte of the image (not the padding beyond it); the readback path must
be new and outside the backup. Nothing reboots. If the write or readback fails, stay in EDL and recover with
the original image. The engineering ABL is a signed PICO Neo3 engineering ABL. PICO OS boots with it only on a
headset unlocked before: on a locked one it refuses PICO OS's signing key (vbmeta, boot state red) and falls
back to fastboot, which is where the unlock starts. dev stage-abl and the cycle stage only abl.
4. Unlock¶
In fastboot with the engineering ABL active (adb reboot bootloader on a headset unlocked before; a locked
one is there already):
This previews, in order: reboot bootloader, oem <token> unlock, oem setenforce 0, flashing unlock,
flashing unlock_critical, reboot bootloader. The first restart gives the unlock a fresh bootloader session: in
the fastboot that a failed boot leaves, the unlock flags cannot be saved (00000050), and the OEM authorization
holds for one session only. After each restart the tool sends nothing until the headset has left fastboot and is
listed again (up to 120 s): macOS's fastboot otherwise writes to the leaving headset and fails ("could not clear
input pipe"). Execution needs --execute --confirm-device ADB_SERIAL --accept-data-loss. Unlocking
wipes user data, and the sequence sets SELinux to permissive. If fastboot shows another serial than ADB, pass
--serial FASTBOOT_SERIAL after checking the device. Every command must succeed; a flashing command refused as
already unlocked counts as done.
After the reboot the tool requires both the normal and the critical unlock state. The order matters: with the
engineering ABL on 5.13.7, flashing unlock before oem setenforce 0 fails with
Set device unlocked! failed: 00000050 and changes only in-memory flags, which revert at the next reboot. A
locked, missing or contradictory state is a failure; there is no automatic retry. To inspect without a change:
check-unlocked reads fastboot oem device-info (without --critical it falls back to getvar unlocked) and
fails closed.
5. Factory reset and recovery work¶
PICO OS needs a factory reset after the unlock before it starts again. The installer skips it and goes from the
unlock to overpressure's recovery (dev flash). To use PICO OS: in its recovery (the volume rocker is on the top
edge of the rigid right strap, just behind the body), Volume +/- moves and a short Power press selects: select the
reset, confirm it, then Reboot system now
(PICO's instructions). Set PICO OS up
and authorize USB debugging again.
Keep the engineering ABL active while working with the recovery:
- Its fastboot reports the unlock state in the form
check-unlockedand the runner accept; the stock ABL'sDeviceUnlocked=trueis refused, and restoring the stock ABL can remove usable fastboot commands even when the unlock bits persist. - It rejects
fastboot boot, so the recovery is written to a partition: the dev loop keeps it inrecoveryas the overpressure's recovery, with the installed system inboot, untildev restore; the runner restores stock boot after its run (recovery.md, hardware-testing.md). - Writing
bootneeds its per-session authorizationfastboot oem <token> unlock(device tokenprints it); the runner,dev flashanddev restoresend it.
6. Stock ABL¶
When the headset leaves development mode, restore each staged ABL partition from its verified original in EDL;
after overpressure dev restore, overpressure cycle --restore-only does it unattended (the
installer's restore workflow too):
overpressure device restore-abl --identity backup/phoenix/device.json --backup backup/phoenix/stock --loader assets/phoenix/firehose.elf --partition abl --readback out/stock-abl-readback.bin
--execute --confirm-device ADB_SERIAL writes and verifies by EDL readback. It does not require an unlocked
state, so it also recovers a failed attempt. It restores ABL only: devinfo is not reverted, because that may undo
the workflow. Do not restore encrypted userdata automatically across resets or firmware changes.
With the stock ABL, PICO OS boots with SELinux enforcing, and the bootloader stays unlocked. The runner verifies
the return to Android with the engineering ABL still installed; it neither restores the ABL nor relocks. Check a
normal PICO OS boot after restoring the ABL (cycle waits for it). The manual boot sequence in
recovery.md is a separate, persistent operation that needs a working recovery path.
7. The whole backup¶
A headset that no bootloader starts any more (an EDL accident: a broken boot chain or partition table) gets every
partition of its verified backup back from EDL, which the chip's ROM always answers. overpressure cycle
--restore-all does it unattended from EDL entered by hand (installer.md), the
installer's Restore to stock when it finds the headset in EDL:
overpressure device restore-all --identity backup/phoenix/device.json --backup backup/phoenix/stock --loader assets/phoenix/firehose.elf
The preview lists each write-sector and writes nothing. --execute --confirm-device ADB_SERIAL --edl-serial
EDL_SERIAL checks the backup, the serial in edl-ng's handshake and each LUN's size, then writes LUN by LUN, every
write read back into --work (out/restore-all, never inside the backup); userdata and metadata get zeros at
their start. A difference stops with the headset in EDL mode; it stays there afterwards too.
The bootable LUN¶
The headset boots from UFS LU A: bBootLunEn is 1, LU A is LUN 1 (xbl, xbl_config), LU B LUN 2 (xblbak).
Writing partitions inside the LUNs does not change it, so the whole backup needs no setbootablestoragedrive. The
loader reports each LUN's own size (getstorageinfo's total_blocks, 4096-byte sectors): LUN 0 30693376, LUNs 1
and 2 2048 each, LUN 3 8192, LUN 4 524288, LUN 5 8192, as the backup's GPTs record them.
Development mode¶
dev stage-abl and cycle wrap stage and restore-abl with the edl-ng backend, without buttons: the first
enters development mode, in which the headset stays between tasks; the second returns it to stock
(hardware-testing.md).
| Command | Steps |
|---|---|
overpressure dev stage-abl |
adb reboot edl (unless exactly one EDL device is attached), device stage --partition abl with hash check and readback, EDL reset, then wait for PICO OS (a headset unlocked before) or for fastboot with the bootloader locked (a new headset, ready for the unlock); fastboot on an unlocked headset, or neither within 5 minutes, stops. A headset whose engineering ABL already waits in fastboot, locked, from an earlier run is staged already: no EDL, the unlock goes on. The engineering ABL tells itself apart in fastboot by its oem device-info (Device unlocked: no); PICO's stock ABL answers DeviceUnlocked= or refuses oem commands without the unlock token. A headset in fastboot with any other ABL is not staged: adb reboot edl needs PICO OS and the stock ABL's EDL command the unlock token, so the step stops and names EDL by hand (the installer asks for it and goes on) |
overpressure cycle |
the same staging (--skip-stage skips it; a locked headset stops it), hwtest flash-run, then EDL, a readback of boot that must match the backup and come from PICO4_EDL_SERIAL, device restore-abl with readback, EDL reset, PICO OS. --keep-abl stops before the ABL restore; --restore-only runs only the readback, the restore and the reset; --restore-all the whole backup from EDL, then the reset into PICO OS's first setup |
Both read .env at the overpressure checkout's root (a new one starts with this repository's
env.example); the keys are in
hardware-testing.md.
Host tests¶
python -m unittest runs tests/development/test_device.py with simulated tools: the identity's
checks (verified builds and models, panels), the unlock, its token and its persistence, and the unlock files.
overpressure's tests/test_devicecli.py covers the device commands themselves: tool
failures, ambiguous or unauthorized devices, backup tampering, previews, write and readback, and the whole backup
through a fake edl-ng.