1. IntroductionHIDL stands for HAL interface definition language, which is the interface between Android Framework and Android HAL. HIDL is designed for inter-process communication (IPC), and the communication between processes uses the Binder mechanism; After Android O (8.0), the underlying implementation has undergone major changes, the most notable of which is the full implementation of the HIDL mechanism. Today we will introduce it. 2. HIDL design purposeBefore Android O (8.0), system upgrades involved collaboration among multiple parties and were extremely troublesome. The introduction of the HIDL mechanism separates the framework from the HAL layer, so that the framework part can be directly overwritten and updated without recompiling the HAL. In this way, when the system is upgraded, OEM manufacturers can skip SoC manufacturers and upgrade the framework first. 2.1, before 8.0The framework and hal are tightly coupled and exist in system.img. Therefore, when upgrading the version, the OEM manufacturer needs to adapt the framework and the SoC manufacturer needs to adapt the hal. Then, the changes are packaged into system.img, an OTA upgrade package is generated, and it is pushed to the mobile phone for OTA upgrade. 2.2, 8.0 and laterThe framework and hal are decoupled. The framework exists in system.img and hal exists in vendor.img. When upgrading the version, it is divided into two upgrades:
3. HIDL Mechanism Evolution3.1 Communication framework between old version Framework and HALIn the old system architecture, the Android Framework layer and the Hal layer are packaged into a system.img, and the Framework and Hal layers are tightly coupled, using the corresponding hardware so library through linking. There are generally two ways of architecture between them: 3.2 HIDL Type IntroductionIn order to solve the drawbacks of this tight coupling between the two, Google introduced HIDL to define the interface between Framework and HAL, which can be described by the following figure: In fact, although Google launched this mechanism, many manufacturers did not keep up with the pace quickly. Therefore, in order to be forward compatible, Google defined three types:
The above can be summarized as follows: |
<<: iOS 16.3 battery life test is out, improving
>>: The official version of iOS 16.3.1 is here, and several new features will be released soon!
Real cases and diligent exploration of community o...
On October 31, 2021, the latest issue of the &quo...
Written by: Wu Tingting Editor: Kou Jianchao Layo...
Now, more and more businesses are opening stores ...
[[127862]] If a smartphone with a battery life of...
In the Internet field, third-party content platfo...
Whether it is a decoration company website or oth...
You have to admit: the new iPhone 6/iPhone 6 Plus...
Households are water, and fish can never live wit...
From selling goods to selling brands; from sellin...
The emergence of Toutiao has subverted traditiona...
When you go to bed at night, do you get better sl...
Q: How do I migrate a WeChat mini program to a Ba...
Author: Liu Yanan Beijing General Hospital of Civ...