platform_hardware_libhardware/modules
Elliott Hughes 535cd57708 am 06b402dd: am ac41815a: Merge "Add missing includes."
* commit '06b402dd10f6d6d0e2ee0127e9254d0bd7f480fe':
  Add missing includes.
2015-01-30 21:28:00 +00:00
..
audio Add missing includes. 2015-01-29 21:19:10 -08:00
audio_remote_submix Reroute submix HAL: fix race condition on output state 2014-12-09 20:27:11 -08:00
camera camera_common: add torch mode APIs for flashlight 2015-01-15 10:35:07 -08:00
consumerir Add missing includes. 2015-01-29 21:19:10 -08:00
fingerprint Add missing includes. 2015-01-29 21:19:10 -08:00
gralloc Remove ARCH_X86. 2014-12-04 16:20:52 -08:00
hwcomposer Add missing includes. 2015-01-28 19:54:13 -08:00
local_time Add missing includes. 2015-01-29 21:19:10 -08:00
nfc Add missing includes. 2015-01-29 21:19:10 -08:00
nfc-nci Add missing includes. 2015-01-29 21:19:10 -08:00
power hardware/libhardware: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH 2014-01-24 21:00:32 -08:00
sensors am cecfb56c: Merge "Cleanup Obsolete LOCAL_PRELINK_MODULE." 2014-12-16 20:53:38 +00:00
soundtrigger sound_trigger HAL update 2014-07-31 11:16:16 -07:00
tv_input Add missing includes. 2015-01-28 19:54:13 -08:00
usbaudio Technical Debt Paydown - move/rename files 2015-01-13 09:37:06 -08:00
usbcamera usbcamera: initial implementation of default usb camera HAL 2015-01-15 11:21:24 -08:00
vibrator Add missing includes. 2015-01-29 21:19:10 -08:00
Android.mk usbcamera: initial implementation of default usb camera HAL 2015-01-15 11:21:24 -08:00
README.android auto import from //depot/cupcake/@135843 2009-03-03 19:32:14 -08:00

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 /system/libs/hw/ and have a well defined naming
convention:

    /system/libs/hw/<*_HARDWARE_MODULE_ID>.<ro.product.board>.so
    /system/libs/hw/<*_HARDWARE_MODULE_ID>.<ro.board.platform>.so
    /system/libs/hw/<*_HARDWARE_MODULE_ID>.<ro.arch>.so
    /system/libs/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/.