type sysfs_ion, sysfs_type, fs_type, mlstrustedobject;
type sysfs_block, sysfs_type, fs_type, mlstrustedobject;
type sysfs_jack, sysfs_type, fs_type, mlstrustedobject;
+type sysfs_v4l, sysfs_type, fs_type, mlstrustedobject;
allow sysfs_type tmpfs:filesystem associate;
genfscon sysfs /devices/14830000.decon_fb u:object_r:sysfs_graphics:s0
genfscon sysfs /devices/14800000.dsim u:object_r:sysfs_graphics:s0
+
+# video4linux
+genfscon sysfs /devices/12800000.mfc0/video4linux/ u:object_r:sysfs_v4l:s0
# /system/lib/omx/
allow mediacodec system_file:dir r_dir_perms;
-# /sys/class/video4linux/video6/name
-allow mediacodec sysfs:file r_file_perms;
+# /sys/class/video4linux/*
+allow mediacodec sysfs_v4l:dir { open read search };
+allow mediacodec sysfs_v4l:file r_file_perms;