Skip to content

Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.

C

provenance: declare the backup tool (it writes nothing; its restore notes contain fastboot lines)

shimoku9d476689cb12
diff --git a/tools/provenance.allow b/tools/provenance.allow
index 7e03fe8..12c683f 100644
--- a/tools/provenance.allow
+++ b/tools/provenance.allow
@@ -28,4 +28,6 @@ vendor devices/redwood/prebuilt/SILICIUM_UEFI.fd the built UEFI imag
flash xnuloader/loader.c the loader writes its own log (a few KB) into the phone's `logdump` partition at the end of a run and, only with ufs_write=1, into the partition `darwin` from BLOCK_WRITE_FIRST on; it REFUSES every other write (BLOCK_OP_WRITE: "not darwin ... never")
flash drivers/storage/hakios.ufs.c the kernel's side: no write at all without ufs_write=1, then only /dev/rufs_darwin, whole blocks from UFS_WRITE_FIRST on, and one writer at a time
flash tools/darwin-write.py writes an image into `darwin` from Android (adb, root) after checking the GPT, the partition's identity and the block range, only to /dev/block/by-name/darwin, reading every write back; every attempt is logged
-flash tools/userdata-carve.py prints the dd commands that cut the `darwin` partition off the end of Android's userdata (a new GPT); a person runs them once, by hand, under Android, and only for the optional persistence; the default run needs no such partition
+flash tools/backup-partitions.py WRITES NOTHING to the phone (only ls, blockdev, dd if= and sha256sum, as root, over adb); it is declared because the restore notes it writes for a person (restore.txt) contain the fastboot lines that would put each partition back, which the scan cannot tell from a command to run
+flash tools/backup-partitions-test.py the same tool's test, against a stand-in adb: the text it checks for is those notes
+flash tools/userdata-carve.py prints the dd commands that cut the `darwin` partition off the end of Android's userdata (a new GPT); a person runs them once, by hand, under Android, and only for the optional persistence; the default run needs no such partition