From dee839cecde3313b06f07d255e7aed5f9f918830 Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Thu, 20 Jan 2022 09:47:40 +0800 Subject: [PATCH] be able to dump thermal Bug: 208721677 Bug: 208909124 Test: do adb bugreport with no relevant error log Change-Id: I6f8e2ce3b64220efba4172ef6fe05cc3fdbb6cf3 --- tracking_denials/hal_dumpstate_default.te | 5 ----- whitechapel_pro/hal_dumpstate_default.te | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tracking_denials/hal_dumpstate_default.te b/tracking_denials/hal_dumpstate_default.te index dad0f3a0..267ed54c 100644 --- a/tracking_denials/hal_dumpstate_default.te +++ b/tracking_denials/hal_dumpstate_default.te @@ -21,11 +21,6 @@ dontaudit hal_dumpstate_default sysfs_exynos_bts_stats:file { open }; dontaudit hal_dumpstate_default sysfs_exynos_bts_stats:file { read }; dontaudit hal_dumpstate_default sysfs:file { open }; dontaudit hal_dumpstate_default sysfs:file { read }; -dontaudit hal_dumpstate_default sysfs_thermal:dir { open }; -dontaudit hal_dumpstate_default sysfs_thermal:dir { read }; -dontaudit hal_dumpstate_default sysfs_thermal:dir { search }; -dontaudit hal_dumpstate_default sysfs_thermal:file { open }; -dontaudit hal_dumpstate_default sysfs_thermal:file { read }; dontaudit hal_dumpstate_default sysfs_wlc:dir { search }; dontaudit hal_dumpstate_default sysfs_wlc:file { open read }; dontaudit hal_dumpstate_default vendor_battery_debugfs:dir { open read }; diff --git a/whitechapel_pro/hal_dumpstate_default.te b/whitechapel_pro/hal_dumpstate_default.te index 8999a165..86434b07 100644 --- a/whitechapel_pro/hal_dumpstate_default.te +++ b/whitechapel_pro/hal_dumpstate_default.te @@ -1,3 +1,6 @@ +allow hal_dumpstate_default sysfs_thermal:dir r_dir_perms; +allow hal_dumpstate_default sysfs_thermal:file r_file_perms; + allow hal_dumpstate_default sysfs_wifi:dir r_dir_perms; allow hal_dumpstate_default sysfs_wifi:file r_file_perms;