allow vendor_init debugfs_clk:file w_file_perms; allow vendor_init proc_uid_cpupower:file w_file_perms; allow vendor_init proc_sysctl_autogroup:file w_file_perms; allow vendor_init proc_sysctl_schedboost:file w_file_perms; allow vendor_init proc_irq:file w_file_perms; allow vendor_init proc_swappiness:file w_file_perms; allow vendor_init camera_vendor_data_file:dir create_dir_perms; dontaudit vendor_init kernel:system module_request; userdebug_or_eng(` # Allow vendor_init to write to /proc/sysrq-trigger on userdebug and eng builds allow vendor_init proc_sysrq:file w_file_perms; # Allow vendor_init to write vendor_tcpdump_log_prop on userdebug or eng ROM set_prop(vendor_init, vendor_tcpdump_log_prop) ') set_prop(vendor_init, vendor_camera_prop) set_prop(vendor_init, factory_ota_prop) set_prop(vendor_init, power_prop) set_prop(vendor_init, public_vendor_default_prop) set_prop(vendor_init, vendor_bluetooth_prop) set_prop(vendor_init, vendor_modem_diag_prop) set_prop(vendor_init, vendor_thermal_prop) set_prop(vendor_init, vendor_radio_prop) set_prop(vendor_init, vendor_nfc_prop) set_prop(vendor_init, vendor_display_prop) set_prop(vendor_init, vendor_ssr_prop) allow vendor_init unlabeled:dir { getattr relabelfrom }; #TUI Files allow vendor_init vendor_tui_data_file:dir create_dir_perms; set_prop(vendor_init, vendor_usb_prop)