Android source code customization-entry-key points for Android source code Customization

Source: Internet
Author: User

Reprinted please indicate the source:

Louiswang http://blog.csdn.net/louiswangbing/article/details/6671658

The so-called source code customization means to modify the system functions on your own if you are not satisfied with the system functions.

Source code customization is generally divided into two types: add and delete, and rewrite. Obviously, the latter is more difficult than the former, but more interesting.

Needless to say, we all know that android has a clear framework structure, and the context of each part is clear. If you think it is unnecessary, simply delete it, if it is not a reusable or public part, you can also copy the Framework Structure and context of other parts and add your own functions, for example, if you want to add the VI function to the android command line interface, it is easy to put the VI source code under the external directory and compile it into a binfile in the following example under the external directory, write an android. MK, success. That's simple.

The second type is a little difficult. You need to have a clear understanding of the entire process to be rewritten. For example, when you see the android soft keyboard, It is very uncomfortable to take up such a large part. Do you need to figure out the pop-up process of the soft keyboard and cut it off directly! Of course, you need to have full confidence and understanding of the process to ensure that what you cut off is not its lifeblood... Haha

In addition, let's talk about the key points of source code customization:

To customize the source code, you must meet the following conditions:

1. The source code structure should be very clear, just like a picture in your mind; it is best to say something and you will immediately know where it is

2. You need to have an abstract understanding of some of the principles to be customized. If there are many custom parts, you need to have a detailed understanding. For example, you need to know where to cut off the best part of a process, it will not affect other parts

3. Linux is really important.


With these understandings, you can start a long and interesting Android source code customization and learn from each other.

The road is long, and I will go up and down.

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.