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
# Commands run by the launchd job com.hakios.demo (see com.hakios.demo.plist).
# The speakers' volume (boot-arg sound=4 with adsp=1): once SpringBoard is up, a tone of two seconds at
# Darwin's volume as it is, then after every few presses of the volume buttons another one -- four steps down,
# eight up (to the top), sixteen down (to 0: the amplifiers stay off), four up. Every setting of the
# plug-in's volume control is in the log ("hakios: audio: the volume is ..."), and the kernel's "sound:" and
# "speaker:" lines say what the amplifiers did with it (register 0x05).
/redwood/bin/sound_test springboard route wait 2 tone 2 wait 4
/redwood/bin/rwtouch button voldown wait 0.5 button voldown wait 0.5 button voldown wait 0.5 button voldown wait 1
/redwood/bin/sound_test route tone 2 wait 4
/redwood/bin/rwtouch button volup wait 0.5 button volup wait 0.5 button volup wait 0.5 button volup wait 0.5 button volup wait 0.5 button volup wait 0.5 button volup wait 0.5 button volup wait 1
/redwood/bin/sound_test route tone 2 wait 4
/redwood/bin/rwtouch button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3
/redwood/bin/rwtouch button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 0.3 button voldown wait 1
/redwood/bin/sound_test route tone 2 wait 4
/redwood/bin/rwtouch button volup wait 0.5 button volup wait 0.5 button volup wait 0.5 button volup wait 1
/redwood/bin/sound_test route tone 2 wait 4
/bin/ps -A