We have moved to a new Sailfish OS Forum. Please start new discussions there.
38

Track down mobile data issue (Android, XA2) [3.1.0]

Tracked by Jolla (In release)

asked 2019-07-19 22:57:04 +0300

Mario gravatar image

updated 2019-08-29 17:48:43 +0300

harry gravatar image

Mobile data is still broken for some Android apps on XA2, even in Sailfish 3.1.0. Several prior releases provided some improvements but it's still not completely fixed. It worries me that its no longer listed in the open issues section in the release notes of Sailfish 3.1.0. Is this bug still worked on? Since it's a "reflash back to Android" kind of issue for me. So please, Jolla, can you confirm that this is still considered an issue and worked on?

Since the error pattern is really fuzzy, let's track it down together.

If you can confirm that a certain Android app does not work on XA2 (with Sailfish >= 3.1.0) over mobile data (but works on Wifi) please list the app below (or upvote if it's already listed). If the same app works for you over mobile data please write a comment and briefly describe your setting.

But let's stay focused on this specific bug (since it's hard enough to track down anyway), please do not list other kinds of connectivity issues. Also let's limit this list to apps that do not work for some (or all) people, do not list apps that generally work.

Edit: It really seems to depend on the mobile provider. Especially o2 Germany (but also some others) are affected. @Jolla, do you have any more insights about this? What's special about o2? And why is the Android subsystem affected by some provider details anyway? I would expect that connectivity (in general) is handled by Sailfish, not Android.

Edit:I found a permanent workaround: https://together.jolla.com/question/209532/track-down-mobile-data-issue-android-xa2-310/?answer=212609#post-id-212609

edit retag flag offensive close delete

Comments

4

Hi, I have a XA2 single sim and O2 Germany postpaid contract. if jolla wants to contact me, I am willing to spend time to help them debug it.

harry ( 2019-08-16 09:45:53 +0300 )edit

Hi,

I would like to hear, that this issue is important for Jolla and they are still working on this... SFOS is great but banking relies on android, so it is still crucial feature.

pemek ( 2019-08-28 15:53:54 +0300 )edit
2

@pemek, you can already "hear" / see exactly that, as this question is "Tracked by Jolla".

olf ( 2019-08-29 15:46:04 +0300 )edit

25 Answers

Sort by » oldest newest most voted
22

answered 2019-08-28 22:50:57 +0300

harry gravatar image

updated 2019-09-09 10:24:10 +0300

SOLVED

I got internet connection for all android apps on mobile data connection that did not work before, e.g. Here Maps or Telegram. The problem is indeed with the List of APNs. I have a XA2 single sim and O2 Germany postpaid contract.

What I did

1) Debug your android runtime while you are connected to a wlan

devel-su lxc-attach -n aliendalvik -- /system/bin/logcat -b radio

2) Disable the wlan and find a line like this in your logs

12:44:53.253 276 276 D DCT : [0]buildWaitingApns: usePreferred=true canSetPreferApn=false mPreferredApn=null operator=26207 radioTech=14 IccRecords r=SimRecords: mDestroyed=false mContext=com.android.phone.PhoneGlobals@6f176a2 mCi=com.android.internal.telephony.RIL@9582fd0 mFh=Handler (com.android.internal.telephony.uicc.UsimFileHandler) {a410f33} mParentApp=com.android.internal.telephony.uicc.UiccCardApplication@4c732f0 recordsLoadedRegistrants=android.os.RegistrantList@ff60069 mImsiReadyRegistrants=android.os.RegistrantList@a145aee mRecordsEventsRegistrants=android.os.RegistrantList@736b8f mNewSmsRegistrants=android.os.RegistrantList@b848e1c mNetworkSelectionModeAutomaticRegistrants=android.os.RegistrantList@653a25 recordsToLoad=0 adnCache=Handler (com.android.internal.telephony.uicc.AdnRecordCache) {6f37fa} recordsRequested=true iccid=894806105[****] msisdnTag= voiceMailNum=null voiceMailTag=null voiceMailNum=null newVoiceMailTag=null isVoiceMailFixed=false mImsi=260060[****] mncLength=2 mailboxIndex=0 spn=null mVmConfigcom.android.internal.telephony.uicc.VoiceMailConstants@7c531ab mSpnOverride=com.android.internal.telephony.uicc.SpnOverride@95a7008 callForwardingEnabled=0 spnState=IDLE mCphsInfo=null mCspPlmnEnabled=true efMWIS=[B@a194a7c efCPHS_MWI=null mEfCff=null mEfCfis=[B@95eaf05 getOperatorNumeric=26207

Important is the value after "getOperatorNumeric=" for me this is 26207

3) Download the xml file from https://android.googlesource.com/device/sample/+/master/etc/apns-full-conf.xml

4) Search for apn entries where the attribute @mmc is equal to the first three digits and the attribute @mnc is equal to the last 2 digits. The XPath to select the nodes is

/*/apn[@mcc = '262'][@mnc = '07']

5) Find the entry that is the correct for your provider. For me it was

<apn carrier="o2 Internet"
  mcc="262"
  mnc="07"
  apn="internet"
  mmsc="http://10.81.0.7:8002"
  mmsproxy="82.113.100.5"
  mmsport="8080"
  type="default,supl,mms"
  mvno_match_data="2620739"
  mvno_type="imsi"
/>

6) Tweak the entry till it works. I changed it to

<apn carrier="O2 DE Internet"
  mcc="262"
  mnc="07"
  apn="internet"
  mmsc="http://10.81.0.7:8002"
  mmsproxy="82.113.100.5"
  mmsport="8080"
  type="default,supl,mms"
/>

I removed the @mvno_match_data and the @mvno_type attributes and changed the @carrier attribute a bit. I don't know which change did it, but the configuration now works for me. - Itseems that changing the carrier attribute has no affect.

7) Backup the file /system/etc/apns-conf.xml on your phone.

8) Rename the file to "apns-conf.xml" transfer it to your phone and replace the file called /system/etc/apns-conf.xml

devel-su
cp apns-conf.xml /system/etc/apns-conf.xml
chown root:root /system/etc/apns-conf.xml

9) restart the phone and disable wlan

edit flag offensive delete publish link more

Comments

1

this sounds very promising. i have o2/drillisch...will try that in the next days. hope others will too and report.

donni106 ( 2019-08-29 00:17:04 +0300 )edit
3

This worked for me! Thank you very much!

I didn't replace the file, though, just made a backup copy of /system/etc/apns-conf.xml and edited the carrier attribute and removed the mvno_match_data and mvno_type attributes in the original file.

I wish I hadn't bought a D1 sim card just yesterday noon... :D

Karin ( 2019-08-29 18:19:39 +0300 )edit
2

As Karin wrote, this indeed works for o2/Drillisch. Thank you very much for the effort. :-) Let's hope this fix is actually stable in daily use.

Mario ( 2019-08-29 18:20:33 +0300 )edit
2

Great work! I will try it as well later this evening, but I'll assume it'll work for me. I just was curious to see which setting actually has the gamechanging effect here and while researching the net about the mentioned attributes, I stumbled on the follwowing android documentation: https://developer.android.com/reference/android/provider/Telephony.Carriers where it is stated that those attributes are deprecated. Could this have something to do with it? Still this would sound like a generic problem and not only applicable for some providers. Unless those attributs including their names are exchanged/checked regarding some validity by the provider. But I'm not a mobile dev, so I might be wrong badly. Still it is needed to find out why it works like that in order to verify it regarding a permanent solution...

majuss ( 2019-08-29 18:38:23 +0300 )edit

It doesn't work for me because my logcat prints "22208" as operator code but it isn't available in the apns-full-conf.xml file . I'm using Fastweb sim operator in Italy.

Luca ( 2019-08-29 20:50:38 +0300 )edit
0

answered 2019-08-28 20:24:26 +0300

kan_ibal gravatar image

It looks like DNS issue for me and only apps that using IP address are able to connect. What DNS are set in resolv.conf and what is DNS of mobile network that has issues?

edit flag offensive delete publish link more
0

answered 2019-08-28 08:54:44 +0300

wosrediinanatour gravatar image

Not an answer directly. I am not sure, if you only mean data or also the whole mobile connection.

For latter, I opened https://together.jolla.com/question/212515/problem-of-network-connection-after-restart-with-national-roaming-on-xa2-dual-sim/.

edit flag offensive delete publish link more
2

answered 2019-08-26 12:32:47 +0300

pemek gravatar image

According to suggestion from Sailfish OS, OSS community collaboration meeting on August 22nd 2019,

.2. There is a file called /system/etc/apns-conf.xml which lists all the available carriers. It is possible that the one provided by AOSP 8 is outdated and that we need to update it, the community could check if https://android.googlesource.com/device/sample/+/master/etc/apns-full-conf.xml helps (overwrite /system/etc/apns-conf.xml and restart the Android Support). The community should also provide logs produced with: devel- (Jaymzz, 08:32:40)

...replacing apns-conf.xml does not change anything. Unfortunately I have no time to provide additional logs.

edit flag offensive delete publish link more

Comments

1

Someone having this issue should capture and paste the logs for debugging! Command is: "devel-su lxc-attach -n aliendalvik -- /system/bin/logcat -b radio"

pasikarkkainen ( 2019-08-26 15:03:22 +0300 )edit
1

Where to send logs? What scenario? When aliandalvik starts? Or application start? Please point out some scenarios, it would be easier then to provide sensible data.

pemek ( 2019-08-26 15:40:30 +0300 )edit

Here are my logs:

08-28 06:31:10.086   284   284 D DCT     : [0]buildWaitingApns: mAllApnSettings=[[ApnSettingV3] O2 DE IMS, 556, 26207,
ims, , , , , , -1, ims, IPV4V6, IPV4V6, true, 0, 0, 0, false, 0, 0, 0, 0, , , false]
08-28 06:31:10.086   284   284 D DCT     : [0]buildWaitingApns: couldn't handle requested ApnType=default
08-28 06:31:10.086   284   284 D DCT     : [0]buildWaitingApns: 0 APNs in the list: []
08-28 06:31:10.086   284   284 D DCT     : [0]notifyNoData: type=default
08-28 06:31:10.087   284   284 D DCT     : [0]isEmergency: result=false
08-28 06:31:10.122   284   284 I chatty  : uid=1001(radio) com.android.phone identical 7 lines
08-28 06:31:10.127   284   284 D DCT     : [0]isEmergency: result=false
08-28 06:31:10.131   284   284 D DCT     : [0]trySetupData: X No APN found retValue=false
08-28 06:31:10.132   284   284 D DCT     : [0]onDataConnectionAttached
08-28 06:31:10.132   284   284 D DCT     : [0]isEmergency: result=false
08-28 06:31:10.154   284   284 I chatty  : uid=1001(radio) com.android.phone identical 7 lines
08-28 06:31:10.158   284   284 D DCT     : [0]isEmergency: result=false
08-28 06:31:10.162   284   284 D DCT     : [0]setupDataOnConnectableApns: dataAttached hipri:[state=IDLE,enabled=false]
mms:[state=IDLE,enabled=false] supl:[state=IDLE,enabled=false] cbs:[state=IDLE,enabled=false] dun:[state=IDLE,enabled=
false] fota:[state=IDLE,enabled=false] ims:[state=IDLE,enabled=false] default:[state=IDLE,enabled=true] ia:[state=IDLE,
enabled=false] emergency:[state=IDLE,enabled=false]

It is pretty obvious to see, that android only finds a single APN which is of type ims. and ims is the APN for Voice over LTE.

harry ( 2019-08-28 10:30:31 +0300 )edit

And what shoud it look like when it is ok?

Edit: Looks like Android sees Play provider, some apps (settings) sees SIM and internet, but some still cant connect to internet. In particular bank app which is crucial for me.

pemek ( 2019-08-28 13:28:02 +0300 )edit

08-28 12:44:53.245 276 276 D DCT : [0]applyNewState(default, true(false), true(true)) 08-28 12:44:53.251 276 276 D DCT : [0]isEmergency: result=false 08-28 12:44:53.251 276 276 D DCT : [0]trySetupData for APN type default, reason: dataEnabled. Data allowed, reason: NORMAL 08-28 12:44:53.252 276 276 D DCT : [0]buildWaitingApns: E requestedApnType=default 08-28 12:44:53.252 276 276 D DCT : [0]getPreferredApn: mAllApnSettings is empty 08-28 12:44:53.253 276 276 D DCT : [0]buildWaitingApns: usePreferred=true canSetPreferApn=false mPreferredApn=null operator=26006 radioTech=14 IccRecords r=SimRecords: mDestroyed=false mContext=com.android.phone.PhoneGlobals@6f176a2 mCi=com.android.internal.telephony.RIL@9582fd0 mFh=Handler (com.android.internal.telephony.uicc.UsimFileHandler) {a410f33} mParentApp=com.android.internal.telephony.uicc.UiccCardApplication@4c732f0 recordsLoadedRegistrants=android.os.RegistrantList@ff60069 mImsiReadyRegistrants=android.os.RegistrantList@a145aee mRecordsEventsRegistrants=android.os.RegistrantList@736b8f mNewSmsRegistrants=android.os.RegistrantList@b848e1c mNetworkSelectionModeAutomaticRegistrants=android.os.RegistrantList@653a25 recordsToLoad=0 adnCache=Handler (com.android.internal.telephony.uicc.AdnRecordCache) {6f37fa} recordsRequested=true iccid=894806105[****] msisdnTag= voiceMailNum=null voiceMailTag=null voiceMailNum=null newVoiceMailTag=null isVoiceMailFixed=false mImsi=260060[****] mncLength=2 mailboxIndex=0 spn=null mVmConfigcom.android.internal.telephony.uicc.VoiceMailConstants@7c531ab mSpnOverride=com.android.internal.telephony.uicc.SpnOverride@95a7008 callForwardingEnabled=0 spnState=IDLE mCphsInfo=null mCspPlmnEnabled=true efMWIS=[B@a194a7c efCPHS_MWI=null mEfCff=null mEfCfis=[B@95eaf05 getOperatorNumeric=26006

pemek ( 2019-08-28 13:58:30 +0300 )edit
2

answered 2019-08-21 20:23:09 +0300

WedgeStratos gravatar image

T-Mobile US here, and while I know Jolla isn't too keen on supporting that right now, I'm experiencing issues all the same. juggling wifi and mobile data, Android apps are consistent on being conpletely disconnected. Discord is a prime example of such a thing. The moment you switch to mobile data, it acts like there is no connection. I have personally found that while disabling wifi doesn't always fix that, oddly enabling the wifi HOTSPOT fixes my connection. although in another odd situation, I switched from using epc.t-mobile.org (their 3G/4G APN) to fast.t-mobile.org (their LTE APN) and now the hotspot doesn't actually work. I used to get a connection to data using this method on an LG V20, but now, there is never a connection. That's likely an issue on the network end, though.

edit flag offensive delete publish link more
7

answered 2019-08-20 18:48:46 +0300

inte gravatar image

updated 2019-08-28 00:55:33 +0300

Fasten your seatbelts.... I think I solved this issue, and the answer was always there: https://together.jolla.com/question/200333/mobile-data-doesnt-work-after-updating-to-30114-on-xperia-xa2/?answer=200508#post-id-200508

(Very well hidden in tjc and with just 2 upvotes)

I put a (even inactive) sim (klarmobil/D2) in the secondary slot, and I could then disable the first (O2) sim. Once I reactivated it - baaam - data connectivity was restored for android apps. I guess this bug is probably related to some internal routing, maybe even on the hardware base since the inability to route data through sim 1 withstands factory settings once appearing. I also guess this issue is NOT network dependend and the quite high number of German O2 customers is just pure statistics - O2 is simply the largest German provider, and Jolla has a quite large German user community. Hope that helps...

edit flag offensive delete publish link more

Comments

With respect to network dependency I can say that I have Vodafone.de as SIM1 and congstar as SIM2 and don't see those mobile data issues. So I would suggest it is somehow related to O2

jollajo ( 2019-08-20 19:06:29 +0300 )edit
2

Activating flight mode and reenabling Mobile networks again triggers the no connectivity bug on my phone again. It can then again be repaired by switching sim cards as described above. So my solution is rather a workaround until this is fixed by Jolla and it won't help single sim phone users, but hopefully it helps for tracking down the issue.

inte ( 2019-08-20 19:08:22 +0300 )edit
1

@jollalo I was using my phone for quite some time until this problem appeared for me and even disappeared briefly again. Can't say if it's coincidence. However, what I CAN say is that switching sims helps for me. My second sim is klarmobil/D1 (but inactive). Maybe it would help to test if switching between two O2 simcards would also "repair" data connectivity. I currently don't have a second O2 simcard at hand, though. Maybe someone else could try to test this or even reproduce my method to restore data connectivity on O2.

inte ( 2019-08-20 19:11:25 +0300 )edit
2

this workarount does not seem to work for me (XA2 Plus)

scharelc ( 2019-08-20 19:50:25 +0300 )edit

@scharelc Which provider(s)?

inte ( 2019-08-20 20:07:39 +0300 )edit
1

answered 2019-08-16 18:58:43 +0300

juru2 gravatar image

Thank you for raising this issue and I hope it can be solved in the near future. Besides DB Navigator, which has already been listed:

  • Webuntis doesn't work on mobile [just offline version]
  • Trello [offline version, no sync]
  • Signal
  • ics cards app

My phone: XA 2 dual sim My provider: Drillisch / discotel O2 My phone does not recognize my sim-card ("unknown" in settings) It was recognized by my old Jolla phone, but I haven't checked since the update to SFOS 3

edit flag offensive delete publish link more
1

answered 2019-08-15 21:19:27 +0300

fm0 gravatar image

XMPP chat app Atalk installed via F-Droid (https://f-droid.org/en/packages/org.atalk.android/) can consistently connect via mobile data while all other apps cannot.

I have German provider Drillisch/ O2

Can anybody confirm this?

edit flag offensive delete publish link more

Comments

Yes, Atalk works over mobile data (could reproduce with o2/Drillisch). So this disproves other theories that regular TCP sockets would not work, only HTTP requests. I think there is a call in Android to ask the operating systems, whether there is an Internet connection or not. And this always returns "False" on mobile data. However, if the app does not care about this and just opens a connection, it works. I think that's the difference between Conversation and Atalk, here. (However, I'm not an Android programmer, this is just an assumption.)

Mario ( 2019-08-19 23:12:11 +0300 )edit
0

answered 2019-08-15 18:24:06 +0300

xneo gravatar image

I have the issue in the different way and had it worse in the previous release. Apps work in mobile network and do not work in WiFi :D

edit flag offensive delete publish link more
0

answered 2019-08-15 17:32:58 +0300

Claudio Maradonna gravatar image

updated 2019-08-15 17:35:04 +0300

Heartstone from Blizzard. Telegram FOSS. OpenKeyChain seems to not retreive pubkeys.

Operator: Iliad Italy

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
16 followers

Stats

Asked: 2019-07-19 22:57:04 +0300

Seen: 4,973 times

Last updated: Sep 09 '19