From bdf3d6abcce8bf7626e6dbfc5e9a2a3043aaa8c4 Mon Sep 17 00:00:00 2001 From: Vova Sharaienko Date: Fri, 16 Sep 2022 18:58:26 +0000 Subject: [PATCH] hal_health_default: updated sepolicy This allows the android.hardware.health service to access AIDL Stats service Bug: 237639591 Bug: 249827340 Test: Build, flash, boot & and logcat | grep "avc" Change-Id: I71013c0b17ee5e526387efa0afb823f97775e572 (cherry picked from commit 87bc6d189d36b2aa0c31553fb672b7173418f9a5) Merged-In: I71013c0b17ee5e526387efa0afb823f97775e572 --- 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 0e393765..d953d4b2 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;