Once we have the HAL for VirtualBox, we can create a new device named x86vbox now. If we review how we created the x86emu device in Chapter 4, Customizing the Android Emulator, we know that we need to have a board/device configuration Makefile and a product definition Makefile for a new device. We can also create a new device by inheriting it from an existing device. If we look at the preceding table of x86 HAL, we can see that there is a common x86 device project, device/common, which can be found in Android-x86. We will create our new device x86vbox by inheriting from this common device for x86. The x86vbox that we create in this chapter is a 32-bit x86 device. You can follow the same instructions to create an x86_64 device by yourself.
As we did in Chapter 4, Customizing the Android Emulator, we create an AndroidProducts.mk Makefile to include the product definition Makefile for...