Skip to content Skip to sidebar Skip to footer

Android: How To Grant 666 Privs To A Device Via Ueventd.rc

I need to access an USB camera connected to my (rooted) Android. I'm on a Samsung Galaxy S4 with Android 4.2.2. I want to access it with a normal app, so I need the device to be wo

Solution 1:

After you replace the /ueventd.qcom.rc file, you must restart /sbin/ueventd service. Actually, it will restart automatically, you only need to find it ps u, and kill the pid.

Note that Samsung restores rootfs on every reboot. The way I handle it, I keep the changed copy of ueventd.qcom.rc in /data/local/tmp, and issue

su -c mount -o remount,rw /
su -c cp /data/local/tmp/ueventd.qcom.rc /
ps ueventd

>

USER     PID   PPID  VSIZE  RSS     WCHAN    PC         NAME
root      198   1     1136   448   ffffffff 00000000 S /sbin/ueventd

kill198

Solution 2:

There are Triggers available in init.rc, device-add- and device-removed, it seems perhaps this could give you the opportunity to set the permissions: https://github.com/android/platform_system_core/blob/master/init/readme.txt#L126

Post a Comment for "Android: How To Grant 666 Privs To A Device Via Ueventd.rc"