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
new-workspace.sh: the firmware beside the copy goes with it, and the App cryptex is named once
vcvkkccf9671fd06e
diff --git a/tools/new-workspace.sh b/tools/new-workspace.shindex eb9a0a7..b5453f5 100755--- a/tools/new-workspace.sh+++ b/tools/new-workspace.sh@@ -10,8 +10,8 @@## The kernel tree is copied as it is now, uncommitted work included, and that state is recorded# (refs/redwood/baseline in the copy's kernel tree): tools/kernel-delta.sh, run in the workspace,-# prints what was changed in the kernel since. Files below ios165/rootfs and ios165/cryptex are-# hard links to this copy's: replace them, never edit them in place.+# prints what was changed in the kernel since. Files below ios165/rootfs, ios165/cryptex and+# ios165/cryptex-app are hard links to this copy's: replace them, never edit them in place.# The phone is not part of a workspace: there is one, and ./xl belongs to the main copy.set -eROOT=$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd)@@ -54,6 +54,13 @@ donefor f in obj system.apfs root.apfs hello; doif [ -e "$ROOT/userland/$f" ]; then cp -a --reflink=auto "$ROOT/userland/$f" userland/; fidone+# The firmware somebody has pulled out of the phone's Android, which is not in git and which+# userland/build.sh takes from beside the working copy, not from inside it: a workspace without it+# builds images that look right and have no firmware in them -- without fw-gpu the boot volume comes+# out 4 MB instead of 21 and gpu=1 has nothing to load. Hard links, as the files of iOS are.+for d in fw fw-gpu fw-wifi fw-audio fw-haptic fw-camera; do+ if [ -e "$ROOT/$d" ] && [ ! -e "$d" ]; then cp -al "$ROOT/$d" .; fi+done[ -f "$ROOT/xnuloader/loader.efi" ] && cp -a "$ROOT/xnuloader/loader.efi" xnuloader/[ -f "$ROOT/qemu/kernel.syms" ] && cp -a "$ROOT/qemu/kernel.syms" qemu/echo "$INSTANCE" > qemu/instance