After the Android source code compilation is completed

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.