1 allow mediaserver device:dir r_dir_perms; 2 3 # sensor manager based camera/video stabilization 4 allow mediaserver system_server:unix_stream_socket { connectto read write setopt }; 5 allow mediaserver sensorservice_service:service_manager find; 6 7 allow mediaserver host1x_device:chr_file rw_file_perms; 8