whh / dongled

Native management of USB 3G Connections For Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description:
dongled - Android Service Deamon which listens to usb devices using the UEVENT Socket

Purpose:
This daemon handles the intialization of 3G Dongles, Mainly Manaufactured by Huawei and can be used in place
place usb_modeswitch.

Motivation:
The ability to do more with less is the primary goal here. It forms part of a greater whole to make
a framework for managing external USB Modems on android.

Method:
The service waits the UEVENT of a valid device which is then processed by the internal implementation of
the usb_modeswitch. If the modeswitch is successful then the ril-daemon service is started to carry on the 
process of establishing a connection. A devices validality is first looked for in the daemons internal list 
for valid modeswitch configuaration. If none is found internally a number of known location are.
This retains the flexibility of the usb_modeswitch configuration files while wrapping the known good configuaration.

Coldboot:
When the service is started, the usb bus is checked for existing usb devices which have a valid configuration.
if a device is found then modeswitch is initiate. This functionality is fired off in a seperate thread so after 
this "manual" modeswitch has taken place the uevent handler should handle any proceeding calls sub as creation 
of the tty devices etc.

Setup

Add the following service definition to the bottom of the init.rc

service dongled /system/bin/logwrapper /system/bin/dongled
    class core                                  
    user root
    group system


About

Native management of USB 3G Connections For Android