Closed Bug 1027430 Opened 10 years ago Closed 10 years ago

Add EF_SPN to Navigator.mozMobileConnections and ensure it's accessible from a non-certified app

Categories

(Firefox OS Graveyard :: RIL, defect)

defect
Not set
normal

Tracking

(feature-b2g:2.1)

VERIFIED FIXED
2.0 S5 (4july)
feature-b2g 2.1

People

(Reporter: clouserw, Assigned: jessica)

References

Details

(Whiteboard: [p=1][ft:ril] [dependency: marketplace][2.1-feature-qa+])

Attachments

(2 files)

Please add EF_SPN access to Navigator.mozMobileConnections. This needs to be accessible from a non-certified app. There is some precedent for this in bug 866272 - this value should be revealed the same way. This should land in 2.1 - if you need help testing it the Marketplace team can help but please budget that time into when you land it. Please let us know any questions. Thanks.
See Also: → 1000623
Component: DOM → DOM: Device Interfaces
Blocks: 1000623
Jessica, can you please take this? Thanks.
Flags: needinfo?(jjong)
(In reply to Ken Chang[:ken] from comment #1) > Jessica, can you please take this? Thanks. Sure!
Assignee: nobody → jjong
Flags: needinfo?(jjong)
Wil, on our internal discussion, we would like to append the EF_SPN info to mozMobileConnections[i].lastKnownHomeNetwork, since this field is already used to expose SIM's mcc-mnc and can be accessed by privileged applications with 'mobilenetwork' permission. However, apps using this field will need to deal with different versions of ril/gecko. E.g., with an old version of ril, mozMobileConnections[i].lastKnownHomeNetwork returns '466-92', but with the new ril, mozMobileConnections[i].lastKnownHomeNetwork may return '466-92.Chunghwa'. Please let me know if this is okay for you, any comments and suggestions are welcomed. Thanks.
Flags: needinfo?(clouserw)
I found that Fireplace uses |mozMobileConnections[i].lastKnownHomeNetwork.split('-')| to get network information. If we append the EF_SPN like this: <mcc>-<mnc>-<spn>, then it should be compatible with older versions, right? [1] https://github.com/mozilla/fireplace/blob/master/yulelog/main.js#L50
We do use lastKnownHomeNetwork in one other place: https://github.com/mozilla/fireplace/blob/master/hearth/media/js/mobilenetwork.js#L338 But we use it in exactly the same way, so your proposal in comment 4 should work great. Thanks, Jessica!
Flags: needinfo?(clouserw)
Hi Hsinyi, we are appending spn info to .lastKnownHomeNetwork. May I have your review?
Attachment #8446931 - Flags: review?(htsai)
Comment on attachment 8446931 [details] [diff] [review] Part 1: implementation, v1. Review of attachment 8446931 [details] [diff] [review]: ----------------------------------------------------------------- I like this!
Attachment #8446931 - Flags: review?(htsai) → review+
Comment on attachment 8446932 [details] [diff] [review] Part 2: changes to test case, v1. Review of attachment 8446932 [details] [diff] [review]: ----------------------------------------------------------------- Thank you!
Attachment #8446932 - Flags: review?(htsai) → review+
Keywords: checkin-needed
Whiteboard: [p=1]
Target Milestone: --- → 2.0 S5 (4july)
Whiteboard: [p=1] → [p=1][ft:ril]
updating to target 2.1
feature-b2g: --- → 2.1
Whiteboard: [p=1][ft:ril] → [p=1][ft:ril] [dependency: marketplace]
QA Contact: echang
Can QA confirm if this is successfully tested with marketplace?
(In reply to Sandip Kamat from comment #15) > Can QA confirm if this is successfully tested with marketplace? That bug hasn't been filed yet. We're waiting on a needinfo in bug 1035285 before we can file it (to know the values of the SPN to look for)
QA Whiteboard: [2.1-feature-qa+]
(In reply to Wil Clouser [:clouserw] from comment #16) > (In reply to Sandip Kamat from comment #15) > > Can QA confirm if this is successfully tested with marketplace? > > That bug hasn't been filed yet. We're waiting on a needinfo in bug 1035285 > before we can file it (to know the values of the SPN to look for) Bug is filed to implement: bug 1049908
Component: DOM: Device Interfaces → RIL
Product: Core → Firefox OS
Flags: in-moztrap?(echang)
QA Whiteboard: [2.1-feature-qa+]
Whiteboard: [p=1][ft:ril] [dependency: marketplace] → [p=1][ft:ril] [dependency: marketplace][2.1-feature-qa+]
Blocks: 1049054
QA Whiteboard: [COM=RIL]
Flags: in-moztrap?(echang) → in-moztrap+
(In reply to Eric Chang [:ericcc] [:echang] from comment #18) > 1. Will modify to a non-certified app > https://github.com/echangmoz/ConnectionCheck > 2. RIL - Cell& Data cases > https://moztrap.mozilla.org/manage/cases/?filter-suite=158 I'm told by Caitlin from Marketplace team that this bug cannot be verified until the marketplace servers are enabled later this week. ni? Will Clouser to add the details of location of marketplace test links, as well as keeping the tester informed when its test ready.
Flags: needinfo?(clouserw)
We already tested it in bug 1049908. We were expecting a hexadecimal identifier but this patch is giving us a service name. Bug 1049908 is assigned to David Almstrom to clarify which we should be looking for and what we expect the values to be for the regions we can test in.
Flags: needinfo?(clouserw)
(In reply to Wil Clouser [:clouserw] from comment #20) > We already tested it in bug 1049908. We were expecting a hexadecimal > identifier but this patch is giving us a service name. The string proposal was agreed on comment 5. > Bug 1049908 is > assigned to David Almstrom to clarify which we should be looking for and > what we expect the values to be for the regions we can test in. Looks like it's a format issue? I mean, various operator might offer different format of data, which could be a string or a hex number. API should anyway choose one format to expose. From the API's point of view, exposing a readable string sounds reasonable to me, and that's also the expectation I see from other apps. Could we handle the format transformation on marketplace app side?
Thanks for Tony's info. 1. Privileged test app to access mozMobileconnection.lastKnownNetwork and .lastKnownHomeNetwork, it works https://github.com/echangmoz/ConnectionCheck/tree/privileged-sample 2. RIL - Cell& Data cases https://moztrap.mozilla.org/manage/cases/?filter-suite=158 3. Test using Marketplace (In reply to Tony Chung [:tchung] from comment #19) > (In reply to Eric Chang [:ericcc] [:echang] from comment #18) > > 1. Will modify to a non-certified app > > https://github.com/echangmoz/ConnectionCheck > > 2. RIL - Cell& Data cases > > https://moztrap.mozilla.org/manage/cases/?filter-suite=158 > > I'm told by Caitlin from Marketplace team that this bug cannot be verified > until the marketplace servers are enabled later this week. ni? Will > Clouser to add the details of location of marketplace test links, as well as > keeping the tester informed when its test ready.
Verified landed. Gaia fbb297c39aab5f17b179533d2a9a6c5166b2c197 Gecko https://hg.mozilla.org/releases/mozilla-aurora/rev/fb5e796da813 BuildID 20140902160204 Version 34.0a2 ro.build.version.incremental=110 ro.build.date=Fri Jun 27 15:57:58 CST 2014 B1TC00011230
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: