[Samsung Galaxy S 5 Unified Development] curiousrom:
Re: S5 LineageOS 16.0 - Not Receiving Calls When Sleeping

Wow that's some ugly Phone Signal graphs. :eek: Every time it goes down to 0 you are not connected to a network provider.

The last time I got something similar while at home was when my network provider worked on the local cell towers & the status bar was going randomly between LTE, 3G, 2G & no signal for a couple of hours.

Edit: [MENTION=4238103]unknownsoldierx[/MENTION] I just noticed in your second screenshot that your phone signal started freaking out when you started to charge the S5. So maybe the USB cable, charger adapter or location of the S5 when charging are the culprits.

I updated my Galaxy S5 G900M LineageOS 16.0 klte + Open GApps Pico + LineageOS AddonSU to build 2019-09-02 using the OTA Updater, stayed at home & here are my GSam Battery Monitor screenshots made 13 hours after booting.

View attachment 4815084

Nice & flat Phone Signal, fluctuating just a little & only between Medium-High & High as I moved around the house.

Sadly the Sent/Received data usage in the Phone Radio panel does not work currently in GSam on Adroid Pie.

That's with Settings > Network & Internet > Mobile network > Advanced > Preferred network type set to GSM/WCDMA/LTE by default on my S5 G900M.

WiFi disabled, cellular data enabled & S5 unplugged.

If I switch to GSM/WCDMA auto I get a constant High signal but no LTE 4g obviously.

I talked with the manager of my network provider's local office, which is next to a cell tower, & he pulled out his iPhone & showed me that it was the same thing for him: lower signal on LTE vs. 3g.

Tons of variables affect the phone signal strength if you are moving around obviously including the weather.

***

That compounds your problem.

Mobile Virtual Network Operator (MVNO) is marketing speak for a reseller of network services. It's not a real network provider.

Some of them block APN editing when they are provisioning the SIM & sometimes have a complicated APN setup.

Sometimes they switch which real network provider they are using depending on the nearest cellular tower.

Try this maybe: Tech Support | Troubleshooting & Help | Walmart Family Mobile.

***

Just before I made those screenshots I captured a logcat & modem log with the free, quick & easy SysLog (Syslog on GitHub w/ F-Droid link) & in logcat searching for EVENT_NETWORK_INFO_CHANGED I have very few entries.

Just after booting, after --------- beginning of main:

09-03 01:50:21.078 D/ConnectivityService( 579)...EVENT_NETWORK_INFO_CHANGED, going from null to CONNECTED

I made a test call to the deep sleeping S5 @ 11:31 & because the S5 LineageOS 16.0 does not support VoLTE (Voice over LTE) it automatically switches from LTE to 3g during calls & back to LTE after you hang up:

09-03 11:31:08.961...NetworkAgentInfo [MOBILE (UNKNOWN) - 100] EVENT_NETWORK_INFO_CHANGED, going from CONNECTED to SUSPENDED
09-03 11:31:09.017 D/ConnectivityService( 579): Sending SUSPENDED broadcast for type 0 NetworkAgentInfo [MOBILE (UNKNOWN) - 100] isDefaultNetwork=true

After that I have only a few entries all saying "CONNECTED to CONNECTED":

09-03 11:31:10.883 D/ConnectivityService( 579): NetworkAgentInfo [MOBILE (HSPA) - 100] EVENT_NETWORK_INFO_CHANGED, going from CONNECTED to CONNECTED

09-03 11:31:31.631 D/ConnectivityService( 579): NetworkAgentInfo [MOBILE (LTE) - 100] EVENT_NETWORK_INFO_CHANGED, going from CONNECTED to CONNECTED

But with the awful phone signal graph you have there are probably hundreds of network related entries which makes it difficult to troubleshoot.

***

About Doze & your S5 sleeping you could try in adb:

adb shell dumpsys deviceidle > deviceidle.txt

And in it you can see your current Doze settings & under Idling history the different idle state your phone went through depending on what you did with it since the last time you booted to System.

I attached one I captured where you can see for example:

...deep-idle: -7h35m31s584ms
deep-maint: -5h46m41s860ms
deep-idle: -5h46m11s645ms
deep-maint: -1h57m14s785ms
deep-idle: -1h56m44s390ms
normal: -1h4m47s819ms (screen)
light-idle: -49m59s803ms
light-maint: -44m58s799ms..

The apps in the whitelist are apps that are not affected by the Doze settings above it.

Whitelist system apps:
com.android.providers.downloads
[B]com.android.cellbroadcastreceiver[/B] [I]<<< so the phone can receive SMS & calls @ deep-idle[/I]
com.google.android.gms [I]<<< Google Mobile Services (GMS) if you installed a Gapps package[/I]
com.android.shell
com.android.deskclock

And because of the adb whitelisting of Messaging to get instant notifications that I posted above:

adb shell dumpsys deviceidle whitelist +com.android.messaging

Whitelist user apps:
com.android.messaging

As suggested in a previous post & afer all the troubleshooting steps you did: If you are 100% sure that your APN settings are 100% correct (not 99%) try with an other SIM from a carrier not related to T-Mobile in anyway. Not a re-seller of T-Mobile's network rebranded.

Don't they sell cheap prepaid SIM where you live? I always keep one around for testing & from a different network provider in case mine fails in the mountain top village where I live.

Or just go back to stock Samsung firmware :silly: or try an other custom firmware or try a S5 super clean install - with Format Data instead of just wipe Data.

***