这与自定义Android版本相关,因此可以处理AOSP。它来源但没有任何RIL或电话支持。我已经将来自SIMCOM的二进制文件添加到构建版本并修改了构建版本,以便在一周或两周后使用Android 5.1.1策略来包含PHONE,我最终将其拨号并通过PPP连接。我可以发送和接收SMS消息,连接后问题是PPP连接。
我在logcat输出中看到了这一点。
I/chat ( 2926): send (ATD*99***1#^M)
I/chat ( 2926): expect (CONNECT)
I/chat ( 2926): ^M
I/chat ( 2926): ^M
I/chat ( 2926): CONNECT
I/chat ( 2926): -- got it
I/pppd ( 2924): Serial connection established.
D/pppd ( 2924): using channel 9
I/pppd ( 2924): Using interface ppp0
I/pppd ( 2924): Connect: ppp0 <--> /dev/ttyUSB3
D/pppd ( 2924): sent [LCP ConfReq id=0x1 <mru 1280> <asyncmap 0x0> <magic 0x59f9be6b> <pcomp> <accomp>]
D/pppd ( 2924): rcvd [LCP ConfReq id=0x10 <asyncmap 0x0> <auth chap MD5> <magic 0x332fad98> <pcomp> <accomp>]
D/pppd ( 2924): sent [LCP ConfAck id=0x10 <asyncmap 0x0> <auth chap MD5> <magic 0x332fad98> <pcomp> <accomp>]
D/pppd ( 2924): rcvd [LCP ConfAck id=0x1 <mru 1280> <asyncmap 0x0> <magic 0x59f9be6b> <pcomp> <accomp>]
D/pppd ( 2924): rcvd [LCP DiscReq id=0x11 magic=0x332fad98]
D/pppd ( 2924): rcvd [CHAP Challenge id=0x1 <c81669cbcc0c57607c5609f38a630dea>, name = "UMTS_CHAP_SRVR"]
D/pppd ( 2924): sent [CHAP Response id=0x1 <7b4baf8d89cc6dc0bac854ee8c6e86a0>, name = "wap"]
D/pppd ( 2924): rcvd [CHAP Success id=0x1 ""]
I/pppd ( 2924): CHAP authentication succeeded
D/pppd ( 2924): sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
D/pppd ( 2924): sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
D/pppd ( 2924): rcvd [LCP ProtRej id=0x12 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
D/pppd ( 2924): rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
D/pppd ( 2924): sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
D/pppd ( 2924): rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
D/pppd ( 2924): sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
D/pppd ( 2924): rcvd [IPCP ConfNak id=0x3 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
D/pppd ( 2924): sent [IPCP ConfReq id=0x4 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
D/pppd ( 2924): rcvd [IPCP ConfNak id=0x4 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
D/pppd ( 2924): sent [IPCP ConfReq id=0x5 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
D/pppd ( 2924): rcvd [IPCP ConfReq id=0x8]
D/pppd ( 2924): sent [IPCP ConfNak id=0x8 <addr 0.0.0.0>]
D/pppd ( 2924): rcvd [IPCP ConfRej id=0x5 <ms-dns3 10.11.12.14>]
D/pppd ( 2924): sent [IPCP ConfReq id=0x6 <addr 0.0.0.0> <ms-dns1 10.11.12.13>]
D/pppd ( 2924): rcvd [IPCP ConfReq id=0x9]
D/pppd ( 2924): sent [IPCP ConfAck id=0x9]
D/pppd ( 2924): rcvd [IPCP ConfNak id=0x6 <addr 10.11.240.107> <ms-dns1 192.168.39.28>]
D/pppd ( 2924): sent [IPCP ConfReq id=0x7 <addr 10.11.240.107> <ms-dns1 192.168.39.28>]
D/pppd ( 2924): rcvd [IPCP ConfAck id=0x7 <addr 10.11.240.107> <ms-dns1 192.168.39.28>]
W/pppd ( 2924): Could not determine remote IP address: defaulting to 10.64.64.64
I/pppd ( 2924): local IP address 10.11.240.107
I/pppd ( 2924): remote IP address 10.64.64.64
I/pppd ( 2924): primary DNS address 192.168.39.28
I/pppd ( 2924): secondary DNS address 10.11.12.14
在此之后我得到一个错误,然后是下面的例外,然后弹出一个窗口,说com.android.phone已停止。
D/TelephonyProvider( 2868): subIdString = 1 subId = 1
W/AppOps ( 416): Bad call: specified package android under uid 1001 but it is really 1000
D/TelephonyProvider( 2868): subIdString = 1 subId = 1
D/ConnectivityService( 416): setProvNotificationVisible: E visible=false networkType=0 action=com.android.internal.telephony.PROVISION0
E/AndroidRuntime( 2868): FATAL EXCEPTION: DcHandlerThread
E/AndroidRuntime( 2868): Process: com.android.phone, PID: 2868
E/AndroidRuntime( 2868): java.lang.SecurityException: Package android does not belong to 1001
E/AndroidRuntime( 2868): at android.os.Parcel.readException(Parcel.java:1546)
E/AndroidRuntime( 2868): at android.os.Parcel.readException(Parcel.java:1499)
E/AndroidRuntime( 2868): at android.net.IConnectivityManager$Stub$Proxy.registerNetworkAgent(IConnectivityManager.java:2030)
E/AndroidRuntime( 2868): at android.net.ConnectivityManager.registerNetworkAgent(ConnectivityManager.java:2001)
E/AndroidRuntime( 2868): at android.net.NetworkAgent.<init>(NetworkAgent.java:145)
E/AndroidRuntime( 2868): at com.android.internal.telephony.dataconnection.DataConnection$DcNetworkAgent.<init>(DataConnection.java:1958)
E/AndroidRuntime( 2868): at com.android.internal.telephony.dataconnection.DataConnection$DcActiveState.enter(DataConnection.java:1735)
E/AndroidRuntime( 2868): at com.android.internal.util.StateMachine$SmHandler.invokeEnterMethods(StateMachine.java:1008)
E/AndroidRuntime( 2868): at com.android.internal.util.StateMachine$SmHandler.performTransitions(StateMachine.java:854)
E/AndroidRuntime( 2868): at com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:800)
E/AndroidRuntime( 2868): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2868): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 2868): at android.os.HandlerThread.run(HandlerThread.java:61)
D/ConnectivityService( 416): setProvNotificationVisibleIntent: E visible=false networkType=0 extraInfo=null
W/ActivityManager( 416): Process com.android.phone has crashed too many times: killing!
由于异常,它似乎是一个文件或设备读取问题但我无法追查该文件或设备可能是什么或哪个进程正在尝试访问它,可能是ttyUSB3这是一个端口PPP。
目前/ dev / ttyUSB3具有系统:无线电所有权以获得PPP连接。
在此之后的很多天里,我一直无法解决这个问题以寻找新问题。 (一旦有效,将发布此消息来源,它将用于FriendlyArm NanoPC T3)
答案 0 :(得分:0)
行。我终于跟踪了这个并修复它以便它可以工作但导致这个的问题仍然在代码中。
当NetworkMonitor使用setprop中的属性ro.net.captive_server处理CAPTIVE_PORTAL_SERVER时,会导致该错误。
mServer = Settings.Global.getString(mContext.getContentResolver(),
Settings.Global.CAPTIVE_PORTAL_SERVER);
if (mServer == null) {
mServer = SystemProperties.get("ro.net.captive_server");
if (mServer == null || mServer.length() == 0) {
mServer = DEFAULT_SERVER;
} else {
Settings.Global.putString(mContext.getContentResolver(),
Settings.Global.CAPTIVE_PORTAL_SERVER, mServer);
}
}
通过在setprop文件中注释掉ro.net.captive_portal,连接现在使用默认服务器进行连接检查。
错误在于调用Settings.Global.putString的行。这会导致异常。为什么?我还不知道。
通过删除该属性,PPP连接现在可以100%运行