Pierre-Hugues Husson | 8a07d2c | 2018-02-16 22:41:03 +0100 | [diff] [blame] | 1 | type vndk_detect, coredomain, domain; |
| 2 | type vndk_detect_exec, exec_type, file_type; |
| 3 | |
| 4 | init_daemon_domain(vndk_detect); |
| 5 | allow vndk_detect sepolicy_file:file r_file_perms; |
| 6 | set_prop(vndk_detect,system_prop); |
Pierre-Hugues Husson | a9a6cba | 2018-05-27 13:14:50 +0200 | [diff] [blame] | 7 | set_prop(vndk_detect,debug_prop); |
Pierre-Hugues Husson | 8a07d2c | 2018-02-16 22:41:03 +0100 | [diff] [blame] | 8 | |
| 9 | allow vndk_detect shell_exec:file rx_file_perms; |
| 10 | allow vndk_detect toolbox_exec:file rx_file_perms; |
| 11 | #/system/bin/grep |
| 12 | allow vndk_detect system_file:file rx_file_perms; |
Pierre-Hugues Husson | 2886155 | 2018-02-19 00:06:31 +0100 | [diff] [blame] | 13 | |
| 14 | #mount -o bind /system/bin/adbd /sbin/adbd |
Pierre-Hugues Husson | 1e27cc1 | 2018-04-01 00:21:03 +0200 | [diff] [blame] | 15 | allow vndk_detect adbd_exec:file { getattr read }; |
Pierre-Hugues Husson | 2886155 | 2018-02-19 00:06:31 +0100 | [diff] [blame] | 16 | allow vndk_detect rootfs:file { mounton getattr }; |
| 17 | allow vndk_detect self:capability { sys_admin }; |
Pierre-Hugues Husson | 1e27cc1 | 2018-04-01 00:21:03 +0200 | [diff] [blame] | 18 | |
| 19 | #mount -o bind /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml |
| 20 | allow init vendor_configs_file:file { getattr mounton }; |
| 21 | |