>I'm trying to add the sections to my init.rc: > >service ril-daemon /system/bin/rild > socket rild stream 660 root radio > socket rild-debug stream 660 radio system > user root > group radio cache inet misc audio > disabled > >on device-added-/dev/ttyUSB0 > start ril-daemon > >on device-removed-/dev/ttyUSB0 > stop ril-daemon > >The on device-* syntax is described in the porting guide >(http://source.android.com/porting/bring_up.html). > >When I insert a 3G modem usb dongle to >my dev board, the node /dev/ttyUSB0 >is created. I expected the ril-daemon service >should start, as said in the init.rc. >But it did NOT. > >I checked the code in system/core/init, >but I can't find any related code for the >on device-added-* syntax. >(I'm using Froyo branch). >I doubt whether if it works as described >in the porting guide. > >Am I missing something? > >-- >unsubscribe: [email protected] >website: http://groups.google.com/group/android-porting
Hi Chih-Wei, you should chang acess permision of /dev/ttyUSB0 in init.rc: chmod 666 /dev/ttyUSB0 and chang acess permision when ttyUSB device inset into android board too. Best regards, Wenxy. 2010-09-13, 19:55:26. Email: [email protected] Office Tel.: +86 755 83666467, extension 8028. Blog: http://blog.csdn.net/wenxy1 -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
