1allow vendor_init debugfs_clk:file w_file_perms; 2allow vendor_init proc_uid_cpupower:file w_file_perms; 3allow vendor_init proc_sysctl_autogroup:file w_file_perms; 4allow vendor_init proc_sysctl_schedboost:file w_file_perms; 5allow vendor_init proc_irq:file w_file_perms; 6allow vendor_init proc_swappiness:file w_file_perms; 7allow vendor_init camera_vendor_data_file:dir create_dir_perms; 8dontaudit vendor_init kernel:system module_request; 9 10userdebug_or_eng(` 11 # Allow vendor_init to write to /proc/sysrq-trigger on userdebug and eng builds 12 allow vendor_init proc_sysrq:file w_file_perms; 13 # Allow vendor_init to write vendor_tcpdump_log_prop on userdebug or eng ROM 14 set_prop(vendor_init, vendor_tcpdump_log_prop) 15') 16 17set_prop(vendor_init, vendor_camera_prop) 18set_prop(vendor_init, factory_ota_prop) 19set_prop(vendor_init, power_prop) 20set_prop(vendor_init, public_vendor_default_prop) 21set_prop(vendor_init, vendor_bluetooth_prop) 22set_prop(vendor_init, vendor_modem_diag_prop) 23set_prop(vendor_init, vendor_thermal_prop) 24set_prop(vendor_init, vendor_radio_prop) 25set_prop(vendor_init, vendor_nfc_prop) 26set_prop(vendor_init, vendor_display_prop) 27set_prop(vendor_init, vendor_ssr_prop) 28 29allow vendor_init unlabeled:dir { getattr relabelfrom }; 30 31#TUI Files 32allow vendor_init vendor_tui_data_file:dir create_dir_perms; 33 34set_prop(vendor_init, vendor_usb_prop) 35 36set_prop(vendor_init, vendor_logging_prop) 37