platform_hardware_libhardware/modules
Jiyong Park 5067fe1a19 Move thermal HAL to vendor partition
In order to build generic system image that is agnostic to SoC or
device, HALs should be moved from system partition to vendor
partition.

Bug: 34826389, 35743509
Test: build & run and check whether the HAL is loaded from
/vendor/lib[64]/hw.
$ su; lsof | grep thermal.

Change-Id: Ia2bb060590f31688528de4a3b9b9ab8fbd376b6c
2017-02-27 13:11:33 +09:00
..
audio resolve merge conflicts of d20fe45 to stage-aosp-master 2016-10-26 16:02:39 -07:00
audio_remote_submix fifo: add dependency needed after re-implementation of MonoPipe 2016-12-12 15:54:14 -08:00
camera Merge "modules/camera: Fix compiler warnings" am: f7888e1130 am: f832261e65 am: d6cebded75 2016-09-01 01:53:45 +00:00
consumerir Begin converting Android.mk to Android.bp 2016-07-12 23:34:37 -07:00
fingerprint Begin converting Android.mk to Android.bp 2016-07-12 23:34:37 -07:00
gralloc Add support for *_FP16 pixel formats 2016-12-16 09:53:20 -08:00
hwcomposer hwcomposer: Fix compiler warnings 2016-07-08 18:16:16 -07:00
input InputHub: Fix compiler warnings 2016-06-30 16:03:16 -07:00
local_time modules/local_time: Silence compiler warning. 2016-08-08 13:57:40 -07:00
nfc Begin converting Android.mk to Android.bp 2016-07-12 23:34:37 -07:00
nfc-nci resolve merge conflicts of 69ed5d9 to stage-aosp-master am: d269bf4328 am: c1965c958c 2016-07-13 19:30:24 +00:00
power modules/power: Silence compiler warnings 2016-08-25 06:13:52 -07:00
radio Review radio metadata allocations/deallocations. 2017-02-16 22:59:22 +00:00
sensors Drop support for old Sensor HALs. 2017-01-09 17:09:35 -08:00
soundtrigger Add "clear" command. 2016-04-08 09:55:16 -07:00
thermal Move thermal HAL to vendor partition 2017-02-27 13:11:33 +09:00
tv_input resolve merge conflicts of 69ed5d9 to stage-aosp-master am: d269bf4328 am: c1965c958c 2016-07-13 19:30:24 +00:00
usbaudio Simplify and clarify channel count/mask calculation for stream open routines. 2016-06-13 13:59:59 -06:00
usbcamera usbcamera: Fix compiler warnings 2016-08-08 09:35:54 -07:00
vehicle Default VHAL always returns 0 for driving status 2016-07-11 19:21:26 +00:00
vibrator Begin converting Android.mk to Android.bp 2016-07-12 23:34:37 -07:00
vr Add HAL for VR mode. 2016-01-27 17:58:31 -08:00
Android.mk Add radio HAL stub to the build list; fix format warning. 2017-02-08 15:04:31 -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/.