Skip to content

fix: the whole backup over EDL starts PICO OS's debug start under the engineering ABL, so USB debugging is kept - #191

Merged
Xenolphthalein merged 1 commit into
mainfrom
fix/restore-edl-usb-debugging
Dec 3, 2026
Merged

Xenolphthalein merged 1 commit into
mainfrom
fix/restore-edl-usb-debugging

Conversation

@Xenolphthalein

Copy link
Copy Markdown
Contributor

For #172

The whole backup over EDL wrote the stock ABL with everything else, so PICO OS's first start ran with SELinux enforcing, which refuses adb's shell persist.vendor.usb.config (avc: denied { set } ... vendor_usb_prop ... permissive=0). Through overpressure's recovery that start runs under the engineering ABL, where PICO OS starts permissive.

  • cycle --restore-all --debug-start writes the engineering ABL in place of the stock one (--image abl=...), checked against its hash first; nothing is written otherwise. Write the stock bootloader writes the backup's boot and ABL back, as before.
  • The restore downloads the unlock files before the backup check: the backup over EDL needs the loader, and its debug start the engineering ABL.
  • Docs: the debug start and the whole backup over EDL in docs/internals/installer.md.

On the headset (Windows): the fixed cycle --restore-all --debug-start, PICO OS's first start permissive and USB debugging stored, cycle --restore-only, then PICO OS's own start (stock ABL, enforcing) answers adb. Host tests: the restore's first stage, the images, and the refusal without the engineering ABL.

… engineering ABL, so USB debugging is kept

Under the stock ABL, which the whole backup writes, PICO OS starts with SELinux enforcing and refuses adb's shell
the vendor's USB property; under the engineering ABL, which the restore through overpressure's recovery leaves for
that start, it starts permissive. The restore also downloads the unlock files: the backup over EDL needs the loader,
and its debug start the engineering ABL.

For #172
@Xenolphthalein
Xenolphthalein merged commit 768a916 into main Dec 3, 2026
9 checks passed
@Xenolphthalein
Xenolphthalein deleted the fix/restore-edl-usb-debugging branch December 3, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant