Merge "Add macro for dumping hal debug info"

am: f1f2b514fe

Change-Id: I482156c2a004422a7e5c50674525cf9ad79aa1ba
This commit is contained in:
Rick Yiu 2019-06-14 08:49:21 -07:00 committed by android-build-merger
commit 2446e21855

View file

@ -702,3 +702,13 @@ define(`never_profile_heap', `
neverallow heapprofd $1:file read;
neverallow heapprofd $1:process signal;
')
###########################################
# 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;
')