From 144b6b06b30ce9b602ca002f85ba05c8ffa2e19d Mon Sep 17 00:00:00 2001 From: Vova Sharaienko Date: Thu, 27 May 2021 01:48:04 +0000 Subject: [PATCH] hal_health_default: updated sepolicy This allows the android.hardware.health service to access AIDL Stats service Bug: 186578402 Test: Build, flash, boot & and logcat | grep "avc" Change-Id: I1bfd8dbca4a8a87387c5fc0cc47b9f09a6d07ea4 --- whitechapel/vendor/google/hal_health_default.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whitechapel/vendor/google/hal_health_default.te b/whitechapel/vendor/google/hal_health_default.te index a684dcc2..a28e5c12 100644 --- a/whitechapel/vendor/google/hal_health_default.te +++ b/whitechapel/vendor/google/hal_health_default.te @@ -6,6 +6,9 @@ allow hal_health_default persist_battery_file:dir rw_dir_perms; set_prop(hal_health_default, vendor_battery_defender_prop) r_dir_file(hal_health_default, sysfs_scsi_devices_0000) +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;