[Moto G 4G Android Development] rndmnck:
Dear [MENTION=4802051]Somcom3X[/MENTION],

since about one month and two weeks I'm having a critical issue regarding mobile connections on CM-based ROMs.

I guess that the issue startet to appear when I updated my bootloader, radio etc. using the stock Lollipop image.

After some days back on CM I realized that some apps fail to connect on mobile. In particular, this affects mail and instant messaging. Browsing works fine.

Connected to Wifi, everything works fine.

Connected to mobile, K9 times out and Telegram shows "Connecting…" forever.

I wiped my phone multiple times, flashed the stock ROM multiple times, I ensured it is not my mobile carrier's fault.

Using the stock ROM, everything works.

Here are relevant logcat entries, I anonymized some private information. If you need more, I'd rather send it directly to you.

With mobile:

W/GooglePlayServicesUtil( 7041): Google Play services is missing.
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/k9 (10738): synchronizeMailbox
E/k9 (10738): com.fsck.k9.mail.MessagingException: Unable to open connection to POP server.
E/k9 (10738):	at com.fsck.k9.mail.store.Pop3Store$Pop3Folder.open(Pop3Store.java:387)
E/k9 (10738):	at com.fsck.k9.controller.MessagingController.synchronizeMailboxSynchronous(MessagingController.java:1026)
E/k9 (10738):	at com.fsck.k9.controller.MessagingController.access$300(MessagingController.java:113)
E/k9 (10738):	at com.fsck.k9.controller.MessagingController$35.run(MessagingController.java:4493)
E/k9 (10738):	at com.fsck.k9.controller.MessagingController.run(MessagingController.java:423)
E/k9 (10738):	at java.lang.Thread.run(Thread.java:818)
E/k9 (10738): Caused by: java.net.SocketTimeoutException: failed to connect to server.hidden/00.000.00.000 (port 995) after 30000ms
E/k9 (10738):	at libcore.io.IoBridge.connectErrno(IoBridge.java:169)
E/k9 (10738):	at libcore.io.IoBridge.connect(IoBridge.java:122)
E/k9 (10738):	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
E/k9 (10738):	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
E/k9 (10738):	at java.net.Socket.connect(Socket.java:882)
E/k9 (10738):	at com.fsck.k9.mail.store.Pop3Store$Pop3Folder.open(Pop3Store.java:312)
E/k9 (10738):	... 5 more
E/k9 (10738): Failed synchronizing folder Me:INBOX @ Tue Sep 01 10:47:39 MESZ 2015
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found

Switching from mobile to Wifi:

E/WifiService( 828): Invoking mWifiStateMachine.setWifiEnabled
E/NetdConnector( 828): NDC Command {214 softap fwreload wlan0 STA} took too long (523ms)
E/WifiMonitor( 828): killSupplicant p2ptrue init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
E/WifiHW ( 828): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
E/WifiConfigStore( 828): Error parsing configuration: java.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
E/WifiHAL ( 828): virtual int WifiVendorCommand::create() ifindex obtained:30
E/WifiHAL ( 828): virtual int WifiVendorCommand::set_iface_id(const char*) ifindex obtained:30
E/WifiHAL ( 828): wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle, byte*): requestResponse Error:-95
E/WifiHAL ( 828): wifi_error wifi_get_gscan_capabilities(wifi_interface_handle, wifi_gscan_capabilities*): GSCAN is not supported by driver
E/WifiScanningService( 828): could not get scan capabilities
E/wpa_supplicant(13545): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 828): Failed to set frequency band 0
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/WifiStateMachine( 828): WifiStateMachine Disconnected CMD_START_SCAN source -2 58, 59 -> obsolete
E/WifiStateMachine( 828): WifiStateMachine shouldSwitchNetwork txSuccessRate=4,31 rxSuccessRate=19,00 delta 1000 -> 1000
E/WifiConfigStore( 828): rewrite network history for "MySSID"-WPA_PSK
E/WifiStateMachine( 828): CMD_AUTO_CONNECT sup state ScanState my state DisconnectedState nid=0 roam=3
E/WifiConfigStore( 828): saveWifiConfigBSSID Setting BSSID for "MySSID"-WPA_PSK to any
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/WifiStateMachine( 828): CMD_AUTO_CONNECT will save config -> "MySSID" nid=0
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/WifiConfigStore( 828): will read network variables netId=0
E/WifiStateMachine( 828): CMD_AUTO_CONNECT did save config -> nid=0
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/WifiConfigStore( 828): will read network variables netId=0
E/WifiConfigStore( 828): saveWifiConfigBSSID Setting BSSID for "MySSID"-WPA_PSK to any
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/WifiConfigStore( 828): saveWifiConfigBSSID Setting BSSID for "MySSID"-WPA_PSK to any
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/WifiStateMachine( 828): Start Dhcp Watchdog 4
E/wpa_supplicant(13545): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 828): Unexpected BatchedScanResults :null
E/wpa_supplicant(13545): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 828): Did not find remoteAddress {192.168.0.1} in /proc/net/arp
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/ConnectivityService( 828): Unexpected mtu value: 0, wlan0
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/WifiStateMachine( 828): WifiStateMachine L2Connected CMD_START_SCAN source -2 60, 61 -> obsolete
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found

Switching from Wifi to mobile:

E/WifiService( 828): Invoking mWifiStateMachine.setWifiEnabled
E/WifiStateMachine( 828): WifiStateMachine: Leaving Connected state
E/WifiConfigStore( 828): saveWifiConfigBSSID Setting BSSID for "MySSID"-WPA_PSK to any
E/wifi_gbk2utf( 828): g_pItemList is NULL
E/wpa_supplicant(11882): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 828): Unexpected BatchedScanResults :null
E/wpa_supplicant(11882): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
E/WifiStateMachine( 828): SupplicantStoppingState: stopSupplicant init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
E/QC-QMI ( 236): qmi_wds_get_profile_list: profile technology sent 0
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3f
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3e
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3d
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3f
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3e
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3d
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3f
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3e
E/QC-QMI ( 236): qmi_wds_read_umts_common_profile_tlvs: ignoring unknown TLV type=3d
E/QC-QMI ( 236): qmi_wds_get_profile_list: profile technology sent 1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c2
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c1
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=c0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bf
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=be
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=bd
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=b0
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=ab
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=aa
E/QC-QMI ( 236): qmi_wds_read_cdma_common_profile_tlvs: ignoring unknown TLV type=a9
E/QC-QMI ( 236): qmi_wds_route_look_up: unknown response TLV type = 11
E/cutils-trace(12922): Error opening trace file: Permission denied (13)
E/NetlinkEvent( 234): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found