From 4f1bad31224375960c2854008dca61e4729a9732 Mon Sep 17 00:00:00 2001 From: CrisBal <74150843+CBG-leeco@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:50:41 +0530 Subject: [PATCH] sepolicy: qti: Label Power Stats HAL 09-27 21:53:52.374 642 642 I hwservicemanager: Since android.hardware.power.stats@1.0::IPowerStats/default is not registered, trying to start it as a lazy HAL (if it's not configured to be a lazy HAL, it may be stuck starting or still starting). 09-27 21:53:52.374 642 4719 W libc : Unable to set property "ctl.interface_start" to "android.hardware.power.stats@1.0::IPowerStats/default": error code: 0x20 09-27 21:53:52.374 4692 4692 I HidlServiceManagement: getService: Trying again for android.hardware.power.stats@1.0::IPowerStats/default... 09-27 21:53:52.374 642 4719 I hwservicemanager: Tried to start android.hardware.power.stats@1.0::IPowerStats/default as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly. 09-27 21:53:52.374 4692 4718 I SystemConfig: Reading permissions from /vendor/etc/permissions/android.hardware.se.omapi.ese.xml 09-27 21:53:52.375 642 4721 W libc : Unable to set property "ctl.interface_start" to "android.hardware.power.stats@1.0::IPowerStats/default": error code: 0x20 09-27 21:53:52.375 642 4721 I hwservicemanager: Tried to start android.hardware.power.stats@1.0::IPowerStats/default as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly. --- sepolicy/qti/vendor/file_contexts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sepolicy/qti/vendor/file_contexts b/sepolicy/qti/vendor/file_contexts index 96393c2..4fd6d32 100644 --- a/sepolicy/qti/vendor/file_contexts +++ b/sepolicy/qti/vendor/file_contexts @@ -62,6 +62,9 @@ /dev/block/platform/soc/4804000\.ufshc/by-name/engineering_cdt_[ab] u:object_r:vendor_custom_ab_block_device:s0 /dev/block/platform/soc/4804000\.ufshc/by-name/opproduct_[ab] u:object_r:vendor_custom_ab_block_device:s0 +# Power +/(vendor|system/vendor)/bin/hw/android\.hardware\.power\.stats@1\.0-service\.mock u:object_r:hal_power_stats_default_exec:s0 + # RMT /dev/block/platform/soc/1d84000\.ufshc/by-name/oem_dycnvbk u:object_r:vendor_modem_efs_partition_device:s0 /dev/block/platform/soc/1d84000\.ufshc/by-name/oem_stanvbk u:object_r:vendor_modem_efs_partition_device:s0