jackieokchen
Lurker
dear folks,
using 3G dongle, the device node such as /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 is created dynamically. And the original permission for these node is crw-------. In the codes for implementing RIL, it will be polled periodly. open(/dev/ttyUSB1, O_RDWR). If the permission for this device node is not changed, it will failed to start pppd.
So, my question is, how to change the device node (/dev/ttyUSB1) in RIL.
1) in init.rc, changing the permission is useless, because these nodes are not created by then.
2) using chmod in RIL is not working too.
please help.
using 3G dongle, the device node such as /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 is created dynamically. And the original permission for these node is crw-------. In the codes for implementing RIL, it will be polled periodly. open(/dev/ttyUSB1, O_RDWR). If the permission for this device node is not changed, it will failed to start pppd.
So, my question is, how to change the device node (/dev/ttyUSB1) in RIL.
1) in init.rc, changing the permission is useless, because these nodes are not created by then.
2) using chmod in RIL is not working too.
please help.