isabella232 / huaweigeneric-ril Goto Github PK
View Code? Open in Web Editor NEWThis project forked from cyanogenmod/huaweigeneric-ril
License: Other
This project forked from cyanogenmod/huaweigeneric-ril
License: Other
The modules has still a few problems: * 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/ttyUSB4 chmod 0777 /dev/ttyUSB4 on device-added-/dev/ttyUSB5 chmod 0777 /dev/ttyUSB5 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 * Edit system/build.prop ,add: # for 3g rild.libpath=/system/lib/libhuaweigeneric-ril.so rild.libargs=-d /dev/ttyUSB2 -v /dev/ttyUSB1 keyguard.no_require_sim=1 ---- pppd must be suid ROOT, and kernel must include ppp support compiled in /system/etc/ppp/ip-up and also /system/etc/ppp/ip-down must also be suid ROOT ---- You also need the following files in /system/etc/ppp ---- /system/etc/ppp/ip-up: #!/system/bin/sh case $1 in ppp1) /android/bin/iptables --flush; /android/bin/iptables --table nat --flush; /android/bin/iptables --delete-chain; /android/bin/iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE; /android/bin/iptables --append FORWARD --in-interface ppp1 -j ACCEPT; echo 0 > /proc/sys/net/ipv4/ip_forward; echo 1 > /proc/sys/net/ipv4/ip_forward; ;; ppp0) /system/bin/setprop "net.interfaces.defaultroute" "$LINKNAME"; ;; esac /system/bin/setprop "net.$LINKNAME.dns1" "$DNS1" /system/bin/setprop "net.$LINKNAME.dns2" "$DNS2" /system/bin/setprop "net.$LINKNAME.local-ip" "$IPLOCAL" /system/bin/setprop "net.$LINKNAME.remote-ip" "$IPREMOTE" /system/bin/setprop "net.$LINKNAME.gw" "$IPREMOTE" /system/bin/setprop "net.$LINKNAME.if" "$IFNAME" ---- /system/etc/ppp/ip-down: #!/system/bin/sh case $1 in ppp1) echo 0 > /proc/sys/net/ipv4/ip_forward; ;; esac /system/bin/setprop "net.$LINKNAME.dns1" "" /system/bin/setprop "net.$LINKNAME.dns2" "" /system/bin/setprop "net.$LINKNAME.local-ip" "" /system/bin/setprop "net.$LINKNAME.remote-ip" "" /system/bin/setprop "net.$LINKNAME.gw" "" /system/bin/setprop "net.$LINKNAME.if" ""
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.