android13/hardware/libhardware/modules
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
audio initial 2024-06-22 20:45:49 +08:00
audio_remote_submix initial 2024-06-22 20:45:49 +08:00
camera initial 2024-06-22 20:45:49 +08:00
consumerir initial 2024-06-22 20:45:49 +08:00
fingerprint initial 2024-06-22 20:45:49 +08:00
gralloc initial 2024-06-22 20:45:49 +08:00
hwcomposer initial 2024-06-22 20:45:49 +08:00
input/evdev initial 2024-06-22 20:45:49 +08:00
local_time initial 2024-06-22 20:45:49 +08:00
nfc initial 2024-06-22 20:45:49 +08:00
nfc-nci initial 2024-06-22 20:45:49 +08:00
power initial 2024-06-22 20:45:49 +08:00
radio initial 2024-06-22 20:45:49 +08:00
sensors initial 2024-06-22 20:45:49 +08:00
soundtrigger initial 2024-06-22 20:45:49 +08:00
thermal initial 2024-06-22 20:45:49 +08:00
tv_input initial 2024-06-22 20:45:49 +08:00
usbaudio initial 2024-06-22 20:45:49 +08:00
usbcamera initial 2024-06-22 20:45:49 +08:00
vibrator initial 2024-06-22 20:45:49 +08:00
vr initial 2024-06-22 20:45:49 +08:00
Android.mk initial 2024-06-22 20:45:49 +08:00
README.android initial 2024-06-22 20:45:49 +08:00

README.android

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/.