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

am: 1e1153ec19

Change-Id: I6736cc587045cdc7f04b7354db36c103352a91a4
This commit is contained in:
Rick Yiu
2019-06-19 23:26:59 -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;