From f6826e0904d109c035f70b29db6fa774c3b1df54 Mon Sep 17 00:00:00 2001 From: Vova Sharaienko Date: Thu, 29 Sep 2022 23:32:45 +0000 Subject: [PATCH] hal_health_default: updated sepolicy This allows the android.hardware.health service to access AIDL Stats service Bug: 249827340 Test: Build, flash, boot & and logcat | grep "avc" Change-Id: I45512225f11a0e3b06721f40e2355924188f703f --- whitechapel_pro/hal_health_default.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whitechapel_pro/hal_health_default.te b/whitechapel_pro/hal_health_default.te index 2f1db801..0f7bb8d9 100644 --- a/whitechapel_pro/hal_health_default.te +++ b/whitechapel_pro/hal_health_default.te @@ -7,6 +7,9 @@ set_prop(hal_health_default, vendor_battery_defender_prop) 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;