From 5944db2199a32a52a55b52c409a3321d74957340 Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Mon, 7 Nov 2022 10:14:06 +0800 Subject: [PATCH] restart hal_health_default Bug: 254378739 Test: boot with the HAL started Change-Id: I3143011c46e540424e340cbc36a818449395ec69 --- health/file_contexts | 1 - legacy/whitechapel_pro/hal_health_default.te | 17 ----------------- vendor/file_contexts | 1 + 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 health/file_contexts delete mode 100644 legacy/whitechapel_pro/hal_health_default.te diff --git a/health/file_contexts b/health/file_contexts deleted file mode 100644 index f49f65e0..00000000 --- a/health/file_contexts +++ /dev/null @@ -1 +0,0 @@ -/vendor/bin/hw/android\.hardware\.health-service\.zuma u:object_r:hal_health_default_exec:s0 diff --git a/legacy/whitechapel_pro/hal_health_default.te b/legacy/whitechapel_pro/hal_health_default.te deleted file mode 100644 index 0f7bb8d9..00000000 --- a/legacy/whitechapel_pro/hal_health_default.te +++ /dev/null @@ -1,17 +0,0 @@ -allow hal_health_default mnt_vendor_file:dir search; -allow hal_health_default persist_file:dir search; - -set_prop(hal_health_default, vendor_battery_defender_prop) - -# Access to /sys/devices/platform/13200000.ufs/* -allow hal_health_default sysfs_scsi_devices_0000:dir r_dir_perms; -allow hal_health_default sysfs_scsi_devices_0000:file rw_file_perms; - -allow hal_health_default fwk_stats_service:service_manager find; -binder_use(hal_health_default) - -allow hal_health_default sysfs_wlc:dir search; -allow hal_health_default sysfs_batteryinfo:file w_file_perms; -allow hal_health_default sysfs_thermal:dir search; -allow hal_health_default sysfs_thermal:file w_file_perms; -allow hal_health_default thermal_link_device:dir search; diff --git a/vendor/file_contexts b/vendor/file_contexts index eea10215..7f0cf6a8 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -4,6 +4,7 @@ /vendor/bin/modem_svc_sit u:object_r:modem_svc_sit_exec:s0 /vendor/bin/cbd u:object_r:cbd_exec:s0 /vendor/bin/hw/rild_exynos u:object_r:rild_exec:s0 +/vendor/bin/hw/android\.hardware\.health-service\.zuma u:object_r:hal_health_default_exec:s0 # Data /data/vendor/log/rfsd(/.*)? u:object_r:vendor_rfsd_log_file:s0