1. Linux Kernel Configure by "make menuconfig"1.1 USB Driver Configure for L506Device Drivers --->[*] USB support ---><*> USB Serial Converter support[*] USB Generic Serail Driver[*] USB Driver for GSM and CMDA modems1.2 USB Driver Configure for UG95/UG96Device Drivers --->[*] USB support ---><*> USB Modem (CDC ACM) support1.3 PPP ConfigureDevice Drivers --->[*] Network device support ---><*> PPP (point-to-point protocol) support<*> PPP support for async serial ports<*> PPP support for sync tty ports<*> PPP Deflate compression2.Add PID and VIDdrivers/usb/serial/option.cstatic const struct usb_device_id option_ids[] = {{ USB_DEVICE(0xxxx, 0xxxxx) },3. init.rc Configureadd service ril-daemon and service popped in init.rc, as below:service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.soclass mainsocket rild stream 660 root radio socket rild-debug stream 666 radio system user root group radio cache inet misc audio sdcard_rw log
the init.rc 's location depend on your project, for example:system/core/rootdir/init.rcdevice/fsl/imx6/init.rcdevice/ti/am335xevm_sk/init.am335xevm.rcdevice/generic/x86/init.rcdevice/samsung/smdkv210/init.rc3. modifying the Right of service ril-daemonserivce ril-daemon require root privilege. comment out the function switchUser() in the file hardware/ril/rild/rild.c. as below:OpenLib:#endif//switchUser();note:64位的系统libreference-ril.so 需要放在lib64下,所以需要作出相应的更改4.把4G模块对应的libreference-ril.so文件替换到lib文件里5.添加APN,把需要的APN添加到system/etc/apns-conf.xml里6.更改模式,打开Android/frameworks/base/telephony/java/con/android/internal/telephony/RILConstants.java找到int PREFERRED_NETWORK_MODE=********;根据自己的需要选择模式,最后编译就可以了。

更多相关文章

  1. Android lint 删除无用图片文件和配置文件
  2. android 开发-数据存储之文件存储
  3. [Android] 该文件包与具有同一名称的现有文件包存在冲突
  4. Android SO文件的兼容和适配
  5. Android activity启动模式理解
  6. 解决在3.6.2安装android的ADT文件bug
  7. 【转】Android中对Log日志文件的分析
  8. android:gravity 和 android:layout_Gravity属性——android开发
  9. Android之文件读写

随机推荐

  1. 《疯狂Java讲义》学习启动篇——向着更好
  2. 自动释放内存!Facebook推出强大Android图
  3. Android(安卓)webview 设置cookie 保持登
  4. Android数据驱动视图更新
  5. 见证Android消息推送时刻(源码及详解)
  6. 通过CMake来进行ndk开发之补充篇
  7. 你真的了解android:layout_weight吗?
  8. 我的android学习思维导图(1月26号)
  9. Android(安卓)应用程序向低版本兼容的问
  10. Android(安卓)Studio修改包名实战