Enable bt wcnss_filter to collect crash dumps

Bug: 37298084
Change-Id: Id67e4faf27ea6d59fdbcc2affcd1f2e6eb2ba3dd
This commit is contained in:
Sunny Kapdi
2017-06-28 23:25:35 -07:00
committed by Thierry Strudel
parent 2af5bf9c49
commit f128f5c538
2 changed files with 10 additions and 2 deletions

View File

@@ -523,8 +523,9 @@ service ss_ramdump /vendor/bin/subsystem_ramdump
on property:persist.sys.ssr.enable_ramdumps=1
write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
mkdir /data/vendor/ramdump 761 root system
mkdir /data/vendor/ssrdump 761 root system
mkdir /data/vendor/ramdump 771 root system
mkdir /data/vendor/ramdump/bluetooth 771 root system
start ss_ramdump
on property:persist.sys.ssr.enable_ramdumps=0
@@ -653,7 +654,7 @@ on property:wc_transport.start_hci=false
service hci_filter /vendor/bin/wcnss_filter
class late_start
user bluetooth
group bluetooth diag
group bluetooth diag system
disabled
service loc_launcher /vendor/bin/loc_launcher

View File

@@ -8,5 +8,12 @@ set_prop(wcnss_filter, bluetooth_prop)
allow wcnss_filter hci_attach_dev:chr_file rw_file_perms;
userdebug_or_eng(`
allow wcnss_filter diag_device:chr_file rw_file_perms;
allow wcnss_filter ramdump_vendor_data_file:dir create_dir_perms;
allow wcnss_filter ramdump_vendor_data_file:file create_file_perms;
r_dir_file(wcnss_filter, debugfs_ipc)
')
# allow wcnss to set threads to RT priority
allow wcnss_filter self:capability sys_nice;