Allow dumpstate to dump wlan hal log on userbuild

To check issue on userbuild, wlan hal log
is helpful.

Bug: 122265104
Test: Manully, log collected on user build
Change-Id: I5aa96aa796ca7dfb92e97df3e7be054ff79f6e3d
This commit is contained in:
Roger Wang 2019-03-15 18:11:04 +08:00
parent 5a74473d1b
commit 49f2954275
2 changed files with 5 additions and 4 deletions

View File

@ -127,6 +127,7 @@ binder_call(dumpstate, binderservicedomain)
binder_call(dumpstate, { appdomain netd wificond })
hal_client_domain(dumpstate, hal_dumpstate)
hal_client_domain(dumpstate, hal_wifi)
hal_client_domain(dumpstate, hal_graphics_allocator)
# Vibrate the device after we are done collecting the bugreport
hal_client_domain(dumpstate, hal_vibrator)

View File

@ -23,9 +23,9 @@ allow hal_wifi self:netlink_generic_socket create_socket_perms_no_ioctl;
allow hal_wifi sysfs_wlan_fwpath:file { w_file_perms };
# allow hal_wifi to access /proc/modules to check if Wi-Fi driver is loaded
allow hal_wifi proc_modules:file { getattr open read };
# Allow hal_wifi to send dump info to dumpstate
allow hal_wifi dumpstate:fifo_file write;
# allow hal_wifi to write into /data/vendor/tombstones/wifi
userdebug_or_eng(`
allow hal_wifi_server tombstone_wifi_data_file:dir rw_dir_perms;
allow hal_wifi_server tombstone_wifi_data_file:file create_file_perms;
')