After the Android source code is compiled, there will be an out directory generated in the root directory, if we want to run the virtual machine, we need to configure the environment variables.
First we use the following command to open the file that configures the environment variable:
gedit ~./bashrc
At the end of this file, add the following code:
export ANDROID_PRODUCT_OUT=~/android/out/target/product/genericANDROID_PRODUCT_OUT_BIN=~/android/out/host/linux-x86/binexport PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN}:${ANDROID_PRODUCT_OUT};
Among them, Android_product_out and Android_product_out_bin fill in the directory of their corresponding files.
After completing, save and update the environment variables using the following command.
source ~/.bashrc
You can use emulator to start the Android virtual machine.
Booting an Android virtual machine requires four files, zimage,system,img,userdata.img and Randisk.img, the first of which is the Linux kernel image file, and the next three are the Android system image files.
Here are the effects of my startup:
Copyright NOTICE: Hello, reprint please leave my blog address, thank you
After the Android source code compilation is completed