Add IDC files to the upper layer of Android 4.1.2

Source: Internet
Author: User

1: CP vendor_xxxx_product_xxxx.idc frameworks/base/data/keyboards/

 

2: add the vendor_xxxx_product_xxxx.idc file to the vim common. mk file, and then make-J8;

 

3: suddenly came up with a method to imitate file addition in Linux and Android source code:

1) Files Added to the kernel are generally modified makefile files and kconfig files. If we add our own files to the kernel, We can imitate how to add other original kernel files;

2) First, search for an existing file in the source code in grep-rni xxx. C * To see where it is added, and then imitate it to add it! It's okay! I don't mean to think of it! Beginner! I hope you will not take the detour I 've taken!

For example, I want to add a vendor_xxxx_product_xxxx.idc file in my android source code:

1) I know that the source code already has the qwerty. IDC File; godir Qwerty. IDC;

2) grep-RNI Qwerty. IDC *

3) If we imitate the qwerty. IDC File, we can add the common. mk file to our vendor_xxxx_product_xxxx.idc;

4) Make-J8 package the source code again;

5) In fact, it is okay to add and package in the out/.../directory directly. It is not so thorough, because after you make clean, the out directory will be deleted!

 

Related Article

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.