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
1007 B
Raw Blame
# drivers/input/conf: touch, buttons, and the queue they post to.
# CONFIG_HAKIOS_<NAME>=y in a defconfig builds a driver into the kernel; "standard" files are always built.
# tools/hakios-config.py reads this file; docs/drivers-config.md says what each word means and how it reaches XNU.

standard bsd/dev/hakios.input.c
	help    /dev/hakios-touch, the queue of touches and buttons, and where the phone's drivers are started from

driver VIRTIO_INPUT
	file    bsd/dev/hakios.virtio_input.c
	help    QEMU's virtio tablet and keyboard as the touch screen and the buttons (virtio_input=1). QEMU only

driver GOODIX
	file    bsd/dev/hakios.goodix.c
	help    the touch screen: a Goodix GT9916 ("Berlin-D") or a FocalTech FT3680 on SPI (touchscreen=1). The bus,
	help    pins and supplies are the POCO X5 Pro's; another phone with one of these controllers changes those

driver BUTTONS
	file    bsd/dev/hakios.buttons.c
	help    the power and volume keys, read from the PMIC through the SPMI arbiter (buttons=1)