From 25e13e931a7dcef4d26a37e5263db5b639da3b6e Mon Sep 17 00:00:00 2001 From: Kshitij Gupta Date: Mon, 1 Jun 2020 14:48:11 +0530 Subject: [PATCH] rosemary: rootdir: Correct mode for video0 and video1 - init services fail to setup encoders on boot and camera and screenrecord fails to open video1 when trying to encode a video. - While we may wanna consider looking through services that make use of these devs and correct their groups for AOSP, this gets the job done for now. Change-Id: I0278efe201a9cbaa20c650fdc32bed6f9ecfd017 --- rootdir/etc/init.mt6785.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.mt6785.rc b/rootdir/etc/init.mt6785.rc index 112f767..790bd8b 100644 --- a/rootdir/etc/init.mt6785.rc +++ b/rootdir/etc/init.mt6785.rc @@ -490,9 +490,9 @@ on post-fs-data #VideoCodec chmod 0660 /dev/vcu chown media system /dev/vcu - chmod 0660 /dev/video0 + chmod 0666 /dev/video0 chown mediacodec system /dev/video0 - chmod 0660 /dev/video1 + chmod 0666 /dev/video1 chown mediacodec system /dev/video1 mkdir /data/vendor/vcodec 0770 media system mkdir /data/vendor/vcodec/log 0770 media system