diff options
author | Roman Kiryanov <rkir@google.com> | 2019-04-15 11:13:57 -0700 |
---|---|---|
committer | Roman Kiryanov <rkir@google.com> | 2019-04-15 11:14:29 -0700 |
commit | b6889742aebf0275e29a2ad6e73408bc2bdbc912 (patch) | |
tree | 9d6f8dae8d82c67877a2e8f432b69af896e5fb19 | |
parent | 227791cb868392a708c01a8c71fe6180084c0a3f (diff) | |
download | android_device_generic_goldfish-b6889742aebf0275e29a2ad6e73408bc2bdbc912.tar.gz android_device_generic_goldfish-b6889742aebf0275e29a2ad6e73408bc2bdbc912.tar.bz2 android_device_generic_goldfish-b6889742aebf0275e29a2ad6e73408bc2bdbc912.zip |
Add thermal HAL to goldfish
The framework requires a thermal HAL to be available
for the termal callback to work.
Bug: 129149028
Test: run cts -m CtsOsTestCases \
-t android.os.cts.PowerManager_ThermalTest#testThermalStatusCallback
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Ib126ac2ab610e1c292a1a17166733cf4debf13a0
-rw-r--r-- | manifest-arm.xml | 9 | ||||
-rw-r--r-- | manifest.xml | 9 | ||||
-rw-r--r-- | sepolicy/common/file_contexts | 1 | ||||
-rw-r--r-- | vendor.mk | 2 |
4 files changed, 21 insertions, 0 deletions
diff --git a/manifest-arm.xml b/manifest-arm.xml index 26d4b3d..2189d91 100644 --- a/manifest-arm.xml +++ b/manifest-arm.xml @@ -200,6 +200,15 @@ <instance>default</instance> </interface> </hal> + <hal format="hidl"> + <name>android.hardware.thermal</name> + <transport>hwbinder</transport> + <version>2.0</version> + <interface> + <name>IThermal</name> + <instance>default</instance> + </interface> + </hal> <sepolicy> <version>27.0</version> </sepolicy> diff --git a/manifest.xml b/manifest.xml index bd53071..dd598e8 100644 --- a/manifest.xml +++ b/manifest.xml @@ -200,6 +200,15 @@ <instance>default</instance> </interface> </hal> + <hal format="hidl"> + <name>android.hardware.thermal</name> + <transport>hwbinder</transport> + <version>2.0</version> + <interface> + <name>IThermal</name> + <instance>default</instance> + </interface> + </hal> <sepolicy> <version>27.0</version> </sepolicy> diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index a03f11e..c1350f9 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -36,6 +36,7 @@ /vendor/bin/hw/android\.hardware\.keymaster@4\.0-strongbox-service u:object_r:hal_keymaster_default_exec:s0 /vendor/bin/hw/android\.hardware\.health@2\.0-service.goldfish u:object_r:hal_health_default_exec:s0 /vendor/bin/hw/android\.hardware\.power@1\.1-service.ranchu u:object_r:hal_power_default_exec:s0 +/vendor/bin/hw/android\.hardware\.thermal@2\.0-service.mock u:object_r:hal_thermal_default_exec:s0 /vendor/lib(64)?/hw/vulkan\.ranchu\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/hw/gralloc\.ranchu\.so u:object_r:same_process_hal_file:s0 @@ -130,6 +130,8 @@ PRODUCT_PACKAGES += \ netmgr \ wpa_supplicant \ +PRODUCT_PACKAGES += android.hardware.thermal@2.0-service.mock + # Needed for /system/priv-app/SdkSetup/SdkSetup.apk to pass CTS android.permission2.cts.PrivappPermissionsTest. PRODUCT_COPY_FILES += \ device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-goldfish.xml |