From 1ce910f87d80ab68bd8a1df6a585e93e2b8af92b Mon Sep 17 00:00:00 2001 From: Steven Moreland <smoreland@google.com> Date: Wed, 28 Dec 2016 18:45:14 -0800 Subject: [PATCH] hal_dumpstate: allow writing to bug report files Bug: 31982882 Test: works with wip bullhead binderized dumpstate implementation Change-Id: Iae964f49b3c2704688ded8e7366d89ace35a92aa --- public/hal_dumpstate.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/hal_dumpstate.te b/public/hal_dumpstate.te index 3312b0ad3..7884e38fd 100644 --- a/public/hal_dumpstate.te +++ b/public/hal_dumpstate.te @@ -3,3 +3,6 @@ hwbinder_use(hal_dumpstate) # call into dumpstate process (callbacks) binder_call(hal_dumpstate, dumpstate) + +# write bug reports in /data/data/com.android.shell/files/bugreports/bugreport +allow hal_dumpstate shell_data_file:file write; -- GitLab