1allow cameraserver gpu_device:chr_file rw_file_perms; 2 3typeattribute cameraserver system_writes_vendor_properties_violators; 4set_prop(cameraserver, camera_prop) 5 6allow cameraserver sysfs_camera:file r_file_perms; 7allow cameraserver sysfs_camera:dir search; 8 9allow cameraserver system_server:unix_stream_socket { read write }; 10 11binder_call(cameraserver, mediacodec) 12