android_mt6572_jiabo/device/qcom/sepolicy/test/sensors_test.te
2025-09-05 16:56:03 +08:00

17 lines
669 B
Text

# Policy for sensor test binaries
type sensors_test_exec, exec_type, file_type;
userdebug_or_eng(`
type sensors_test, domain, domain_deprecated;
domain_auto_trans(shell, sensors_test_exec, sensors_test)
domain_auto_trans(adbd, sensors_test_exec, sensors_test)
allow sensors_test devpts:chr_file rw_file_perms;
allow sensors_test sensors:unix_stream_socket connectto;
allow sensors_test sensors_device:chr_file rw_file_perms;
allow sensors_test sensors_socket:sock_file rw_file_perms;
allow sensors_test smd_device:chr_file rw_file_perms;
allow sensors_test socket_device:dir r_dir_perms;
allow system_app sensors_test_exec:file rx_file_perms;
')