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
caenv: a fraction written 0p5 (the boot-arguments drop what follows a number's point); rc.jobs.apps: applications opened and closed, for their frame rate
shimoku74ee84bd5d6bc6
diff --git a/userland/rc.jobs.apps b/userland/rc.jobs.appsnew file mode 100644index 0000000..a73582b--- /dev/null+++ b/userland/rc.jobs.apps@@ -0,0 +1,7 @@+# Commands run by the launchd job com.hakios.demo (see com.hakios.demo.plist).+# Frame rate of applications opening and closing (RC_JOBS=rc.jobs.apps, touch_lat=1, a run of about 110 s, short enough+# for the log to keep it all): unlock; five applications of the first page each opened, left 4 s, closed with the home+# button, twice over. The zoom in and out with the blurred backdrop is what this measures (tools/frames.py).+/redwood/bin/rwtouch wait 30 swipe 0.5 0.985 0.5 0.3 200 wait 8+/redwood/bin/rwtouch tap 0.15 0.36 wait 4 button home wait 3 tap 0.385 0.36 wait 4 button home wait 3 tap 0.615 0.36 wait 4 button home wait 3 tap 0.845 0.36 wait 4 button home wait 3 tap 0.615 0.71 wait 4 button home wait 3+/redwood/bin/rwtouch tap 0.15 0.36 wait 4 button home wait 3 tap 0.385 0.36 wait 4 button home wait 3 tap 0.615 0.36 wait 4 button home wait 3 tap 0.845 0.36 wait 4 button home wait 3 tap 0.615 0.71 wait 4 button home wait 3diff --git a/userland/src/inject.c b/userland/src/inject.cindex 1a125f2..9bc4266 100644--- a/userland/src/inject.c+++ b/userland/src/inject.c@@ -1120,6 +1120,13 @@ hakios_init(void)setting[length] = 0;if ((equals = strchr(setting, '=')) != NULL) {*equals = 0;+ /* a fraction is written 0p25: the boot-arguments lose what follows a "." of a number (0.008 came as 0) */+ for (char *point = equals + 1; *point != 0; point++) {+ if (*point == 'p' && point > equals + 1 && point[-1] >= '0' && point[-1] <= '9' && point[1] >= '0' && point[1] <= '9') {+ *point = '.';+ break;+ }+ }setenv(setting, equals + 1, 1);say("hakios: caenv: %s=%s for the window server\n", setting, equals + 1);}diff --git a/userland/src/inject_sb.c b/userland/src/inject_sb.cindex f908322..14c9937 100644--- a/userland/src/inject_sb.c+++ b/userland/src/inject_sb.c@@ -1272,6 +1272,13 @@ caenv(void)setting[length] = 0;if ((equals = strchr(setting, '=')) != NULL) {*equals = 0;+ /* a fraction is written 0p25: the boot-arguments lose what follows a "." of a number (0.008 came as 0) */+ for (char *point = equals + 1; *point != 0; point++) {+ if (*point == 'p' && point > equals + 1 && point[-1] >= '0' && point[-1] <= '9' && point[1] >= '0' && point[1] <= '9') {+ *point = '.';+ break;+ }+ }setenv(setting, equals + 1, 1);say("hakios: caenv: %s=%s for SpringBoard\n", setting, equals + 1);}