Change permissions of ov5645 sysfs entry for auto focus

Change-Id: I8394a2d48a77dba85c3782f60ae344eaf8c4f3ee
diff --git a/debian/aiy-board-tweaks.udev b/debian/aiy-board-tweaks.udev
index 4fbb21d..58a019b 100644
--- a/debian/aiy-board-tweaks.udev
+++ b/debian/aiy-board-tweaks.udev
@@ -1,2 +1,4 @@
 SUBSYSTEM=="apex_power", MODE="0660", GROUP="apex"
-SUBSYSTEM=="apex", MODE="0660", GROUP="apex"
\ No newline at end of file
+SUBSYSTEM=="apex", MODE="0660", GROUP="apex"
+DEVPATH=="/module/ov5645_camera_mipi_v2", ACTION=="add", RUN+="/bin/chgrp video /sys%p/parameters/ov5645_af", RUN+="/bin/chmod ug+rw /sys%p/parameters/ov5645_af"
+DEVPATH=="/module/ov5645_camera_mipi_v2", ACTION=="change", ENV{TRIGGER}!="none", RUN+="/bin/chgrp video /sys%p/parameters/ov5645_af", RUN+="/bin/chmod ug+rw /sys%p/parameters/ov5645_af"