Android frameworks layer startup Analysis

Source: Internet
Author: User

I am not deeply familiar with this part of knowledge, but I am willing to share with you only a little bit. I hope you can give me some suggestions.
As we all know, the Android platform is written in Java, C, C ++, and other mixed languages, java methods are often called when we use the framework-layer APIs provided by the android SDK for application development. In fact, these Java APIs are often just an entry point, the real implementation of method functions is implemented by calling the native method at the framework layer through JNI.

After Android is started, it enters frameworks/base/cmds/app_process/app_main.cpp after a series of loading processes. Then execute the main () method.

There should be applause here. Haha should have code. But the method is not very understandable ......

The start method of frameworks/base./CORE/JNI/androidruntime. cpp will be called. In fact, the registration association between Android APIs and local methods is completed in the androidruntime. cpp module. After compilation, libandroid_runtime.so dynamic link library is formed under the system/lib directory of the output directory out.

Make up this part when you are free ......

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.