Skip to content
Snippets Groups Projects
Commit 5fd36267 authored by Steven Moreland's avatar Steven Moreland
Browse files

shell: hwbinder_use

In order to dump hardware services using dumpsys, dumpsys needs to be
able to talk to the hwservicemanager.

Bug: 33382892
Test: dumpsys --hw works from unrooted shell
Change-Id: I31f0982193991428da465507f93d50646cb38726
parent 2796009e
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,10 @@ allow shell servicemanager:service_manager list;
allow shell { service_manager_type -gatekeeper_service -netd_service -installd_service}:service_manager find;
allow shell dumpstate:binder call;
# allow shell to get information from hwservicemanager
# for instance, listing hardware services with dumpsys
hwbinder_use(shell)
# allow shell to look through /proc/ for ps, top, netstat
r_dir_file(shell, proc)
r_dir_file(shell, proc_net)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment