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!