Relationship between the Android Framework application Framework layer, the HAL Hardware Abstraction Layer, and the Linux Kernel underlying layer

Source: Internet
Author: User

Relationship between the Android Framework application Framework layer, the HAL Hardware Abstraction Layer, and the Linux Kernel underlying layer

Relationship between the Android Application Framework layer, hardware abstraction layer, and underlying layer

1. JNI technology:
(1). the JNI technology simply declares the local method in the local Java language and loads the dynamic link library (. so file)
(2). The dynamic link library (. so file) is compiled by the ndk c/C ++ file.

2. hal layer development:
(1). HAL is short for Hardware release action Layer. It is also called the hardware abstraction layer.
(2) Hardware access services are implemented at the Framework layer.
(3) Hardware access services are implemented in Java and the hardware abstraction layer is written in C ++. Therefore, the hardware Access Service must call the interface of the hardware abstraction layer through JNI technology.
(4) The Hardware Abstraction Layer calls the underlying interfaces of Linux Kernel.

3. Main Causes of Android HAL:
(1). Not all hardware devices have standard Linux Kernel interfaces.
(2) Some device manufacturers do not want to disclose hardware drivers, so HAL is used.
(3) Android has some special requirements for some hardware.

Figure:
Component usage.
These functions are exposed to developers through the Android Application Framework layer.

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.