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

The phone's own buttons work, and are on with the touch screen

vcvkke259f1fe80aa
diff --git a/prebuilt/SHA256SUMS b/prebuilt/SHA256SUMS
index c285a39..d956b09 100644
--- a/prebuilt/SHA256SUMS
+++ b/prebuilt/SHA256SUMS
@@ -1,6 +1,6 @@
-Built 2026-10-13 14:58 from this tree.
+Built 2026-10-13 15:30 from this tree.
-4d46dbdc9b27bfff0e27f90fc35225be8110f8ff9ea41562d2cd7ed812e5458f prebuilt/mach.development.bcm2837
+5b728a392a6a8e2fdcb834f152cc0457a5311c7d1f03f08532c65b9583e959b5 prebuilt/mach.development.bcm2837
1332a598d2dec00a1d8e930044e4f00a12ad44c6e5e50eecf4b7fe7fae803bf2 prebuilt/loader.efi
d2a35a4a1d6658ffb3696914f727661b52c9333de8a3af8a31642b8023ce03ac prebuilt/userland/child
1a413befd511384052e1962c1394adce20f718e1f2657ce63ab09828ebc4bd1b prebuilt/userland/cpu_test
diff --git a/prebuilt/mach.development.bcm2837 b/prebuilt/mach.development.bcm2837
index c06cda6..52448b6 100755
Binary files a/prebuilt/mach.development.bcm2837 and b/prebuilt/mach.development.bcm2837 differ
diff --git a/xnu/files/bsd/dev/redwood_buttons.c b/xnu/files/bsd/dev/redwood_buttons.c
index b8ead23..4ba54f4 100644
--- a/xnu/files/bsd/dev/redwood_buttons.c
+++ b/xnu/files/bsd/dev/redwood_buttons.c
@@ -514,7 +514,16 @@ redwood_buttons_init(void)
uint32_t enabled = 0, steps = 5;
thread_t thread;
- if (!PE_parse_boot_argn("buttons", &enabled, sizeof(enabled)) || !enabled) {
+ /*
+ * On with the touch screen (the phone, somebody at it) unless buttons=0 says otherwise: a hand
+ * has pressed all three keys and each press and release was read as it was made.
+ */
+ if (!PE_parse_boot_argn("buttons", &enabled, sizeof(enabled))) {
+ uint32_t touch_screen = 0;
+
+ enabled = PE_parse_boot_argn("touchscreen", &touch_screen, sizeof(touch_screen)) && touch_screen != 0;
+ }
+ if (!enabled) {
return;
}
PE_parse_boot_argn("buttons_steps", &steps, sizeof(steps));