-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
58 lines (43 loc) · 1.27 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
The modules has still a few problems:
* it required /system/etc/init.gprs-pppd for pppd.
#!/system/bin/sh
PPPD_PID=
/system/bin/setprop "net.gprs.ppp-exit" ""
/system/bin/log -t pppd "Starting pppd"
#/system/xbin/pppd $*
/system/bin/pppd /dev/ttyUSB0 115200 nocrtscts usepeerdns debug nodetach ipcp-accept-local ipcp-accept-remote defaultroute
PPPD_EXIT=$?
PPPD_PID=$!
/system/bin/log -t pppd "pppd exited with $PPPD_EXIT"
/system/bin/setprop "net.gprs.ppp-exit" "$PPPD_EXIT"
* required modify init.rc add:
on device-added-/dev/ttyUSB0
chmod 0777 /dev/ttyUSB0
on device-added-/dev/ttyUSB1
chmod 0777 /dev/ttyUSB1
on device-added-/dev/ttyUSB2
chmod 0777 /dev/ttyUSB2
on device-added-/dev/ttyUSB3
chmod 0777 /dev/ttyUSB3
on device-added-/dev/block/sr0
start usb_modeswitch
on boot
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
service pppd_gprs /system/etc/init.gprs-pppd
user root
group radio cache inet misc
disabled
oneshot
service usb_modeswitch /system/bin/usbs
user root
disabled
oneshot
* Edit system/build.prop ,add:
# for 3g
rild.libpath=/system/lib/libhuaweigeneric-ril.so
rild.libargs=-d /dev/ttyUSB2
keyguard.no_require_sim=1