May 2017
Beginner to intermediate
470 pages
10h 49m
English
To test x86emu, we can use the AVD a25x86 that we created in Chapter 2, Setting Up the Development Environment. To use our own system images, we can create a shell script ~/bin/test-ch04.sh as follows:
#!/bin/sh emulator @a25x86 -verbose -show-kernel -shell -selinux disabled -system ${OUT}/system.img -ramdisk ${OUT}/ramdisk.img -initdata ${OUT}/userdata.img -kernel ${OUT}/kernel
You can see from the preceding shell script that the images for x86emu are used to start the AVD a25x86. You need to set your Android SDK path so you can use the emulator from Android SDK:
$ test-ch04.sh
After you start the emulator, you can go to Settings | About phone to check the build information, as shown in the following screenshot:
Read now
Unlock full access