[OnePlus 3 & 3T Cross Device Development] TerrorApple:
Lockscreen carrier label glitches

Is it possible to sync the carrier label on the lockscreen with the carrier label in QuickSettings (QS)? There are some issues when using two SIM cards. I tested this with LinageOS as well, it worked fine there. So the problem is probably in a RR modification.

In short: it seems like the lockscreen carrier label only displays the carrier from

one

SIM card, while the QS carrier label displays the carrier on

both

SIM cards. Also, some information (like the roaming carrier) is not shown on the lockscreen (although shown in QS). Also, sometimes the lockscreen label will not sync at all. Lockscreen will show "No service" , while QS shows the carrier correctly. Or lockscreen shows the carrier of the disabled SIM (while QS shows the correct and current active SIM carrier).

In detail:

My examples are with two SIM cards. The Telekom.de card is roaming in the Singtel network. The StarHub card is currently in its home network.

1. See "Screenshot 1 2.png" for reference. Only one SIM card label is shown on lockscreen. I do not know on which basis RR choses which carrier label to show. Active data SIM is StarHub, although Telekom.de is shown on lockscreen. Why not show both carriers on the lockscreen like in QS? Would take away the random choice of which SIM to show and which to hide from the lockscreen.

2. Also see "Screenshot 1 2.png". The roaming carrier (Singtel) of SIM 1 (Telekom.de) is hidden on lockscreen. Why not show the roaming carrier too? It should show "Singtel - Telekom.de" on the lockscreen rather than just "Telekom.de".

(this is not influenced by the second SIM being enabled; when disabling the StarHub-SIM it still doesn't show the roaming carrier on SIM 1)

3. See "Screenshot 3.png". This is actually more a bug than a change request. In this scenario I only have SIM 2 enabled ("StarHub"). Occasionally it will show "No service" on the lockscreen (although I clearly have; see the bars on the right). Plus, QS displays the carrier correctly. This bug will not go away until you put your phone in flight-mode and back out. Putting the phone to sleep and waking it back up doesn't fix it. I can reproduce this bug every time I reboot my phone while on of two SIMs is disabled. It sometimes happens while using the phone though too.

For this bug I have also attached a logcat. It logs me on the lockscreen with the "No service" carrier label. I then unlock the phone and enable and then disable flight-mode and return to lockscreen. It now shows the correct carrier label (StarHub). I have also attached a video (GIF) of this bug (I didn't upload a logcat of the other issues because I'm not sure of what exactly the logcat is needed to find the problem). Also, when disabling a SIM card, the lockscreen carrier label sometimes does not refresh and shows the carrier of the now disabled SIM (the QS label updates correctly).

Basically all these issues could be resolved by syncing the lockscreen carrier label with the QS carrier label. It seems to work correctly with the QS, so why is there a different implementation on the lockscreen? I unterstand RR has a custom lockscreen-carrier-label-setting, but when this setting is not in use, one could still just use the QS carrier label rather than the current incomplete implementation.

What are your thoughts on this [MENTION=5854483]akhilnarang[/MENTION] [MENTION=4817632]varund7726[/MENTION] [MENTION=3515982]apascual89[/MENTION]? If you need any more information or logs let me know. I'm also happy to test potential fixes :)