Merge "Fix avc denied to dump some useful hals for user build." into qt-r1-dev am: 1e1153ec19

am: 2b3f1d428e

Change-Id: I8bfd9c00a768f6221fc66f1f4203a6124d48ba25
This commit is contained in:
Rick Yiu
2019-06-21 08:06:34 -07:00
committed by android-build-merger
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
###########################################
# dump_hal(hal_type)
# Ability to dump the hal debug info
#
define(`dump_hal', `
hal_client_domain(dumpstate, $1);
allow $1_server dumpstate:fifo_file write;
allow $1_server dumpstate:fd use;
')

View File

@@ -1,3 +1,7 @@
dump_hal(hal_thermal)
dump_hal(hal_power)
dump_hal(hal_power_stats)
userdebug_or_eng(`
allow dumpstate proc_modules:file r_file_perms;
allow dumpstate proc_stat:file r_file_perms;