The relationship between the Android Framework application framework layer and the HAL Hardware abstraction layer and the Linux kernel underlying

Source: Internet
Author: User

The relationship between the Android application framework layer and the hardware abstraction layer and the underlying

1. JNI Technology:
(1). JNI technology simply means declaring local methods and loading dynamic-link libraries (. so files) in the local Java language
(2). The dynamic-link library (. So file) is compiled by the NDK to compile A/C + + file.

2. HAL Layer Development:
(1). HAL is the abbreviation for Hardware abstraction layer. Also known as the hardware abstraction layer.
(2). The Hardware Access service is implemented at the framework level.
(3). The Hardware Access service is implemented in the Java language, and the hardware abstraction layer is written in the C + + language. Therefore, the hardware Access service must invoke the interface of the hardware abstraction layer through JNI technology.
(4). The hardware abstraction layer calls the Linux kernel interface at the bottom.

3. The main reasons for Android HAL exist:
(1). Not all hardware devices have the standard Linux kernel interface.
(2). Some device manufacturers do not want to expose hardware drivers, so use the HAL development approach.
(3). For some hardware, Android has some special needs.

Drawings:

Note:
Android consists of a collection of C + + libraries that make use of various components of the Android system.
These features burst through the Android application framework layer to the developer.

The relationship between the Android Framework application framework layer and the HAL Hardware abstraction layer and the Linux kernel underlying

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.