[android-porting] Re: chmod by init.rc

2011-04-09 Thread Dudero
I have also tried: on device-added-/dev/mynode chmod 0777 /dev/mynode Like every time the same - no change... But now I have found a workaround, which is a little bit ugly - but so what, this does what I want ;) I have made a shellscript: #!/system/bin/sh chmod 0777 /dev/mydev which is star

[android-porting] Re: chmod by init.rc

2011-04-09 Thread Pankaj Bharadiya
Hi, Please try with the following. create a script somewhere, for example, /system/bin/mymod.rc #!/system/bin/sh chmod 0777 /dev/mynode - add the following in /init.rc: service mymod /system/bin/mymod.rc oneshot Thanks, Pankaj Bharadiya. On Apr 8, 8:06 pm, Dudero wrote: > Hello, > > I

[android-porting] Re: chmod by init.rc

2011-04-09 Thread Dudero
Hello Pankaj, thanks for your advice, but your tip is my workaround: I just used replaces *.sh instead of a *.rc suffix. This is all in all not a really satisfying solution for me... If I only could understand why all these "normal" ways are failing, but the manual chmod does work?! Greetz Dudero