HAL initialization during the Android start-up

Let's look in greater detail into the hardware initialization of devices that cannot be detected by the kernel automatically, and the initialization of Android-x86 HAL, in this section. One of the peripherals that haven't been initialized is the frame buffer for the graphic user interface in Android. We will use it as an example to explain how hardware is initialized by the init process in Android's ramdisk.img.

If we recall the analysis of the init process in Chapter 6, Debugging the Boot Up Process Using a Customized ramdisk, the init process will execute the init.rc script, which is general for all Android devices. In the init.rc script, it will import a device-specific script init.${ro.hardware}.rc ...

Get Android System Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.