Closed
Bug 822384
Opened 13 years ago
Closed 13 years ago
Carrier name is shown as 'undefined' in settings and lockscreen
Categories
(Core :: DOM: Device Interfaces, defect, P1)
Tracking
()
People
(Reporter: whimboo, Assigned: kk1fff)
References
Details
(Keywords: regression, unagi)
Attachments
(3 files, 2 obsolete files)
872 bytes,
patch
|
Details | Diff | Splinter Review | |
1.05 KB,
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
568.88 KB,
text/plain
|
Details |
Not sure why but after updating my Unagi device from the build 20121213 to yesterdays build, the carrier name is shown as 'Unknown' for me. The phone is still registered in the network and mobile data works too. Not sure why it's shown as 'unknown' in settings and the lockscreen.
I will not restart the phone. So if you can give me steps how to get you the details I will do so.
Comment 1•13 years ago
|
||
Maybe related to bug 819207 that will be closed soon.
Reporter | ||
Comment 2•13 years ago
|
||
(In reply to David Scravaglieri [:scravag] from comment #1)
> Maybe related to bug 819207 that will be closed soon.
Is it related to a regression? As mentioned in comment 0 it was working previously for me and has started recently. But lets see if it is the case and add bug 819207 as dependency.
Depends on: 819207
Reporter | ||
Comment 3•13 years ago
|
||
Even after a couple of reboots the carrier name is still shown as unknown. So this is indeed a regression between 12-13 and 12-17 builds.
Keywords: regression,
regressionwindow-wanted
Whiteboard: [regression?]
Reporter | ||
Comment 4•13 years ago
|
||
Uh, it's 'undefined' and not 'unknown'. Sorry.
Summary: Carrier name is shown as 'unknown' in settings and lockscreen → Carrier name is shown as 'undefined' in settings and lockscreen
Updated•13 years ago
|
blocking-basecamp: ? → +
Priority: -- → P1
Target Milestone: --- → B2G C3 (12dec-1jan)
Comment 5•13 years ago
|
||
Hi,
Problems related to proper display of carrier name are usualyy certification blockers.
Adding dep.
Cheers,
David
Blocks: b2g-v1-certification
Reporter | ||
Comment 6•13 years ago
|
||
Just to give some additional information. The carrier I'm using is O2 Germany.
Comment 7•13 years ago
|
||
Not a regression from bug 815595
Comment 8•13 years ago
|
||
The undefined string seems to be fixed for me with the upcoming patch in bug 819207
Assignee: nobody → anthony
Comment 9•13 years ago
|
||
Henrik, now that work has landed in bug 819207, can you confirm that it fixed your issue? Thanks!
Comment 10•13 years ago
|
||
Still happening to me with latest production build and production gaia.
My carrier is 'Movistar'
Comment 11•13 years ago
|
||
Francisco: What is the sha1 of your production gaia? Do you see a valid network name on the lockscreen or the statusbar?
If anyone still sees 'undefined', apply this patch and cc the output of 'adb logcat|grep GeckoConsole' here when opening the settings app.
Flags: needinfo?(francisco.jordano)
Reporter | ||
Comment 12•13 years ago
|
||
Undefined is still shown with the daily build from 20121223. I can't do any debugging given that I run the daily builds and don't build b2g on my own. Sorry. I hope someone else can help out.
Comment 13•13 years ago
|
||
I am seeing this today running the smoketest today using 20121226. The carrier I have is AT&T.
Gaia: b4bcf70792f4
Gecko: e261861b0270
I see it on the lockscreen as well. How do I apply the patch to the daily builds?
Comment 14•13 years ago
|
||
After I crashed and restarted, the phone is now showing AT&T instead of undefined. I forgot to note in Comment 13 that I was running a freshly flashed build.
Comment 17•13 years ago
|
||
Ditto to comment 13: build from 20121226. Currently using E-plus (for the next couple of days).
Comment 18•13 years ago
|
||
I'll let this bug sleep until next week's offsite. We'll have lots of people around to quickly try out things.
Idea for later: Ship with an hidden app that displays SIM and carrier information.
Updated•13 years ago
|
Target Milestone: B2G C3 (12dec-1jan) → B2G C4 (2jan on)
Comment 19•13 years ago
|
||
Is an O2 sim card still needed per the "BERLIN Work Week SIM request" sheet? I also have local Telekom SIMs available at the work week.
Comment 20•13 years ago
|
||
I tried with a Telekom SIM here and couldn't reproduce.
Henrik: Before asking Joel to get an O2 sim card, could you confirm that you're still seeing this?
Flags: needinfo?(hskupin)
Comment 21•13 years ago
|
||
Hi folks,
This is a bit weird, cause I have the same build, with same SIM (movistar sim), and now I can see the O2 roaming information.
Yesterday in Spain I still had the 'undefined' message.
Flags: needinfo?(francisco.jordano)
Reporter | ||
Comment 22•13 years ago
|
||
It still happens for me with yesterdays build on my Unagi device. Just in case it makes a different, I have a SIM from DeutschlandSIM:
http://www.deutschlandsim.de/
Flags: needinfo?(hskupin)
Comment 23•13 years ago
|
||
I am getting the same behavior as :arcturus with my Movistar Spanish SIM card :-)
Reporter | ||
Comment 24•13 years ago
|
||
I will be in Berlin and join the work week from Wednesday to Friday. So if it can wait you can get my SIM card for testing.
Comment 25•13 years ago
|
||
Sounds perfect to me ;-)
Comment 26•13 years ago
|
||
We need to do proper test in each countries we will ship. We will not block on such issue without precisions.
blocking-basecamp: + → -
tracking-b2g18:
--- → +
Comment 27•13 years ago
|
||
This is not working in Spain with Movistar that is one of the target markets. Renominating. This is blocking certification meta-bug, those ones should not be retriaged.
blocking-basecamp: - → ?
Comment 28•13 years ago
|
||
I/Gecko ( 108): -*- RadioInterfaceLayer: Received message from worker: {"isDisplayNetworkNameRequired":true,"isDisplaySpnRequired":true,"rilMessageType":"iccinfochange","imsi":"214075537652354","iccid":"8934071100275319147","ad":{"0":0,"1":0,"2":0,"3":2},"mcc":214,"mnc":7,"sst":{"0":158,"1":107,"2":29,"3":156,"4":103,"5":246,"6":88,"7":0,"8":0},"mbdn":"123","spn":""}
There is no value for the spn property so that's the reason we see 'undefined'.
Looking deeper into the problem.
Comment 29•13 years ago
|
||
José: Thanks, that's helpful. When I look at the code though, with those values, it doesn't fall into the path that uses iccinfo.spn. Would you happen to have the voice.network.shortName and voice.network.longName values too?
Comment 30•13 years ago
|
||
(In reply to José Antonio Olivera Ortega [:jaoo] from comment #28)
> Created attachment 699213 [details]
> Logcat output with RIL debug enabled (Movistar SIM).
>
> I/Gecko ( 108): -*- RadioInterfaceLayer: Received message from worker:
> {"isDisplayNetworkNameRequired":true,"isDisplaySpnRequired":true,
> "rilMessageType":"iccinfochange","imsi":"214075537652354","iccid":
> "8934071100275319147","ad":{"0":0,"1":0,"2":0,"3":2},"mcc":214,"mnc":7,"sst":
> {"0":158,"1":107,"2":29,"3":156,"4":103,"5":246,"6":88,"7":0,"8":0},"mbdn":
> "123","spn":""}
>
> There is no value for the spn property so that's the reason we see
> 'undefined'.
>
> Looking deeper into the problem.
That's interesting. Even though isDisplaySpnRequired is set to true, we do check whether or not |spn| is a falsey value or not at L12
https://github.com/mozilla-b2g/gaia/blob/master/shared/js/mobile_operator.js#L12-L18
I suspect that even voice.network.shortName and voice.network.longName are undefined at this stage.
Updated•13 years ago
|
blocking-basecamp: ? → +
tracking-b2g18:
+ → ---
Comment 31•13 years ago
|
||
New |adb logcat| output with the patch from :ric. Now you can see guys all the information you might need.
Attachment #699213 -
Attachment is obsolete: true
Comment 32•13 years ago
|
||
Comment on attachment 699295 [details]
Logcat output with RIL debug enabled (Movistar SIM).
E/GeckoConsole( 108): Content JS LOG at app://system.gaiamobile.org/shared/js/mobile_operator.js:10 in mo_userFacingInfo: shortName: undefined
E/GeckoConsole( 108): Content JS LOG at app://system.gaiamobile.org/shared/js/mobile_operator.js:11 in mo_userFacingInfo: longName: Movistar
Gecko is definitely sending string 'undefined' here. We fallback to longName if shortName is a falsey value in mobile_operator.js
Updated•13 years ago
|
Component: Gaia::Settings → DOM: Device Interfaces
Product: Boot2Gecko → Core
Comment 33•13 years ago
|
||
When RILContentHelper receives a message w/o shortName in the json object:
I/Gecko ( 108): -*- RILContentHelper: Received message 'RIL:VoiceInfoChanged': {"connected":true,"emergencyCallsOnly":false,"roaming":false,"network":{"rilMessageType":"operatorchange","longName":"Movistar","mcc":214,"mnc":7},"cell":{"gsmLocationAreaCode":2862,"gsmCellId":21532830},"type":"gsm","signalStrength":-59,"relSignalStrength":87,"state":"registered"}
it would update voice.network.shortName here:
https://mxr.mozilla.org/mozilla-beta/source/dom/system/gonk/RILContentHelper.js#400
Supposedly, without any type-casting, this results shortName being specified as undefined undefined. I don't understand Gecko enough to tell what happen next.
Gaia expects a falsey value here (e.g. empty string).
Assignee | ||
Comment 34•13 years ago
|
||
According to the log:
I/Gecko ( 108): RIL Worker: updateNetworkName: Network names will be overriden: longName = Movistar, shortName = undefined
Looks like a bug of reading PNN function.
Assignee | ||
Comment 35•13 years ago
|
||
Spec doesn't require every PNN entry to have short name field. If the PNN doesn't contain short name, the short name will be an empty string with this patch.
José, would you try out this patch?
Reporter | ||
Comment 36•13 years ago
|
||
This is interesting. So in my case I have just seen that the carrier name is visible for about 30 after switching the mobile settings from 2G <-> 3G. Then it is cleared out and undefined is shown. This can be reproduced constantly.
Assignee | ||
Comment 37•13 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #36)
> This is interesting. So in my case I have just seen that the carrier name is
> visible for about 30 after switching the mobile settings from 2G <-> 3G.
> Then it is cleared out and undefined is shown. This can be reproduced
> constantly.
It looks like that your carrier name is visible until PNN file has been read.
The 'undefined' comes from updateNetworkName(). After PNN file has been read, updateNetworkName() will replace the carrier name with names from PNN files. Short name is not present in that PNN file, so it becomes undefined.
Comment 38•13 years ago
|
||
By applying the patch from Patrick the operator name is shown in lock screen, status bar and settings app. Patrick, Tim, here is the log, you might take a look at it.
Attachment #699295 -
Attachment is obsolete: true
Comment 39•13 years ago
|
||
So I applied attachment 699589 [details] [diff] [review] on my b2g18 branch. First it didn't apply so here is the diff that I've used: http://www.pastebin.mozilla.org/2047067
When I apply this patch and test with Henrik's SIM card, I get this:
shortName:
longName: Telco
isDisplaySpnRequired: false
isDisplayNetworkNameRequired: true
spn:
And we display Telco.
If I switch to 2G, I get:
shortName: O2
longName: O2 (Germany) GmbH & Co. OHG
isDisplaySpnRequired: false
isDisplayNetworkNameRequired: true
spn:
And we display O2.
That looks good to me!
Assignee | ||
Comment 40•13 years ago
|
||
Comment on attachment 699589 [details] [diff] [review]
Patch: Initialize PNN entry with empty strings.
Vicamo, could you help to review this patch?
Attachment #699589 -
Flags: review?(vyang)
Updated•13 years ago
|
Attachment #699589 -
Flags: review?(vyang) → review+
Comment 41•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Assignee: anthony → pwang
Comment 42•13 years ago
|
||
\o/
Comment 43•13 years ago
|
||
Comment 44•13 years ago
|
||
Marking FIXED as this is landed on inbound and b2g18.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 45•13 years ago
|
||
Reporter | ||
Comment 46•13 years ago
|
||
Works fine for todays Unagi build. Thanks for fixing!
Status: RESOLVED → VERIFIED
Keywords: regressionwindow-wanted
Updated•13 years ago
|
status-firefox21:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•