2018-02-16 21:41:03 +00:00
|
|
|
type vndk_detect, coredomain, domain;
|
|
|
|
type vndk_detect_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(vndk_detect);
|
|
|
|
allow vndk_detect sepolicy_file:file r_file_perms;
|
|
|
|
set_prop(vndk_detect,system_prop);
|
2018-05-27 11:14:50 +00:00
|
|
|
set_prop(vndk_detect,debug_prop);
|
2018-02-16 21:41:03 +00:00
|
|
|
|
|
|
|
allow vndk_detect shell_exec:file rx_file_perms;
|
|
|
|
allow vndk_detect toolbox_exec:file rx_file_perms;
|
|
|
|
#/system/bin/grep
|
|
|
|
allow vndk_detect system_file:file rx_file_perms;
|
2018-02-18 23:06:31 +00:00
|
|
|
|
|
|
|
#mount -o bind /system/bin/adbd /sbin/adbd
|
2018-03-31 22:21:03 +00:00
|
|
|
allow vndk_detect adbd_exec:file { getattr read };
|
2018-02-18 23:06:31 +00:00
|
|
|
allow vndk_detect rootfs:file { mounton getattr };
|
|
|
|
allow vndk_detect self:capability { sys_admin };
|
2018-03-31 22:21:03 +00:00
|
|
|
|
|
|
|
#mount -o bind /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml
|
|
|
|
allow init vendor_configs_file:file { getattr mounton };
|
|
|
|
|
2018-12-03 20:16:52 +00:00
|
|
|
#/sys/module/five
|
|
|
|
allow vndk_detect sysfs:file r_file_perms;
|
|
|
|
allow vndk_detect sysfs:dir r_dir_perms;
|