This article in the spirit of open source to introduce how to add a product to an Android system throughout the process, according to the following process the author has reason to believe that each will be engaged in the industry can be completed, in fact, add a product is not difficult, difficult is the relevant hardware modifications, good nonsense not much to say.
First of all we want to create a catalog of our own products, here take Wy_device as an example, with WY as the name of the product .
First copy a. mk file named after the product from an existing product, and modify it to its own. mk file, here is Wy.mk
Make the following modifications to it:
Then add androidproducts.mk This is the path to the profile name of the add product, with the following effect:
Copy boardconfig.mk to current file:
Add vendorsetup.sh Add product name-compile type to lunch menu so when we execute the lunch command we can see our products in the options.
Execute the source built/envsetup.sh command:
Execute the lunch command:
Then compile make:
Add a product----the Android system