Hello, On Wednesday, February 15, 2012 12:21:24 PM UTC+1, Vikas KM wrote: > > HI All, > > > I am trying to get the USB modem working for Android (Gingerbread Version) > > Using *usb-modeswitch* and the conf file i am able to run get the USB > modem working thing is > > I need to run the *usb-modeswitch* command.. > > I want to automate this process.. that is as soon as i connect USB modem, > i want it to detect and open browser.. >
The way to solved the detection problem is to write a system service that listens to uevents. this can either be done in java code or in native code. This service can send intents about discovered hardware. when implementing a quite similar features we still had the following problems - Start of day problem. if you device is connected when you boot you will not get the uevent so at startup you need to check the sysfs for the existance of the device. -The second problem we had was vold. most G3 keys that need modeswitch first export a use mass storage device. some other 3G keys always export a second mass storage device. I can't remember if this mounting of external storage is and existing Android feature or not At first we implemented a blacklist in vold to skip those devices but in the end we added the call to usb-modeswitch inside vold as that one also already contained code to parse uevent. depending on the return value we either mount the file system or not. After usb-modeswitch is run a new uevent it sent that a new device was discovered. This is the event we react upon to start a 3G connection. Greetings > Any hint or help in this matter??? > > > -------------- > Regards > > Vikas KM > http://arowboat.org > > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
