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

loader: the tally of writes into darwin is this run's, not every run's since it came up

vcvkk49746f0c3fba
diff --git a/userland/rc.jobs.persist1 b/userland/rc.jobs.persist1
index caf4701..e9e5c77 100644
--- a/userland/rc.jobs.persist1
+++ b/userland/rc.jobs.persist1
@@ -13,7 +13,7 @@
/redwood/bin/vol_ls ls /private/var/mobile/Containers/Data/Application
/redwood/bin/vol_ls ls /private/var/mobile/Containers/Shared/AppGroup
/redwood/bin/var_store stamp /private/var/redwood-stamp
-/redwood/bin/rwtouch wait 55 drag ICONX ICONY DROPX ICONY 800 600 900
+/redwood/bin/rwtouch wait 55 drag 0.151 0.358 0.847 0.710 900 700 900
/redwood/bin/rwtouch wait 3 button home
sleep 55
/bin/ps -A
diff --git a/xnuloader/loader.c b/xnuloader/loader.c
index a5a511e..2a30e85 100644
--- a/xnuloader/loader.c
+++ b/xnuloader/loader.c
@@ -1968,6 +1968,9 @@ block_start(void)
}
hc_refused_reads = 0;
hc_log_skips = 0;
+ /* per run, like the two above: this loader stays resident across runs, and a tally carried
+ * over from the run before is read as this one's */
+ block_writes = block_writes_refused = block_write_bytes = 0;
if (block_write_part >= 0) {
block_shared.write_part_plus_one = (uint32_t)block_write_part + 1;
block_shared.write_first = BLOCK_WRITE_FIRST;