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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -