AOSP libhardware

AOSP 硬件抽象库。(AOSP hardware abstraction library)

  • Owner: aosp-mirror/platform_hardware_libhardware
  • Platform: Android, Linux
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Default (and possibly architecture dependents) HAL modules go here.

libhardware.so eventually should contain just the HAL hub
(hardware.c), everything in it should be rewritten as modules.

Modules are .so in /vendor/lib/hw/ and have a well defined naming
convention:

/vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.product.board>.so
/vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.board.platform>.so
/vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.arch>.so
/vendor/lib/hw/<*_HARDWARE_MODULE_ID>.default.so

They also have a well defined interface which lives in include/hardware/.

A module can have several variants: "default", "arch" and "board", and they're
loaded in the "board", "arch" and "default" order.
The source code for the "board" variant, usually lives under partners/...

The source code for "default" and "arch" would usually
live under hardware/modules/.

Main metrics

Overview
Name With Owneraosp-mirror/platform_hardware_libhardware
Primary LanguageC++
Program languageMakefile (Language Count: 4)
PlatformAndroid, Linux
License:Other
所有者活动
Created At2008-10-21 18:20:40
Pushed At2025-06-03 00:03:33
Last Commit At2025-03-17 18:29:43
Release Count2572
Last Release Nameandroid-security-15.0.0_r9 (Posted on 2025-06-02 11:05:45)
First Release Nameandroid-1.6_r1 (Posted on 2009-09-18 11:02:39)
用户参与
Stargazers Count91
Watchers Count30
Fork Count142
Commits Count6.3k
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private