Android: how to grant 666 privs to a device via ueventd.rc -
i need access usb camera connected (rooted) android. i'm on samsung galaxy s4 android 4.2.2. want access normal app, need device world readable.
i can connect via shell , type
root@android:/ # su root@android:/ # cd /dev root@android:/dev # chmod 666 video4   and works. each time disconnect camera, , reconnect it, have again.
via shell can remount root file system r/w
mount -o rw,remount -t rootfs rootfs /   and  edit file /ueventd.rc  (actually it's  /ueventd.qcom.rc )
and add
/dev/video*               0666   system     camera   but if put 666
root@android:/dev # ls -la video4                                               crw-rw---- system   camera    81,  18 2013-08-08 10:14 video4   is there way grant 666 permission permanently? each time connect camera gets right file permissions?
thanks
there triggers available in init.rc, device-add- , device-removed, seems perhaps give opportunity set permissions: https://github.com/android/platform_system_core/blob/master/init/readme.txt#l126
Comments
Post a Comment