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)
Firefox OS Graveyard
RIL
Tracking
(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)
1.10 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
994 bytes,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
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.
Component: DOM → DOM: Device Interfaces
Assignee | ||
Comment 2•10 years ago
|
||
(In reply to Ken Chang[:ken] from comment #1)
> Jessica, can you please take this? Thanks.
Sure!
Assignee: nobody → jjong
Flags: needinfo?(jjong)
Assignee | ||
Comment 3•10 years ago
|
||
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)
Assignee | ||
Comment 4•10 years ago
|
||
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
Comment 5•10 years ago
|
||
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)
Assignee | ||
Updated•10 years ago
|
Blocks: b2g-ril-interface
Assignee | ||
Comment 6•10 years ago
|
||
Hi Hsinyi, we are appending spn info to .lastKnownHomeNetwork. May I have your review?
Attachment #8446931 -
Flags: review?(htsai)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8446932 -
Flags: review?(htsai)
Comment 8•10 years ago
|
||
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 9•10 years ago
|
||
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+
Assignee | ||
Comment 10•10 years ago
|
||
Thank you, Hsinyi.
https://tbpl.mozilla.org/?tree=Try&rev=7d700d56a74f try green!
Comment 11•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/e1fcb6ea058b
https://hg.mozilla.org/integration/b2g-inbound/rev/33c95e196040
Keywords: checkin-needed
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e1fcb6ea058b
https://hg.mozilla.org/mozilla-central/rev/33c95e196040
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Whiteboard: [p=1] → [p=1][ft:ril]
Updated•10 years ago
|
Whiteboard: [p=1][ft:ril] → [p=1][ft:ril] [dependency: marketplace]
Updated•10 years ago
|
QA Contact: echang
Comment 15•10 years ago
|
||
Can QA confirm if this is successfully tested with marketplace?
Reporter | ||
Comment 16•10 years ago
|
||
(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)
Updated•10 years ago
|
QA Whiteboard: [2.1-feature-qa+]
Reporter | ||
Comment 17•10 years ago
|
||
(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
Updated•10 years ago
|
Component: DOM: Device Interfaces → RIL
Product: Core → Firefox OS
Updated•10 years ago
|
Flags: in-moztrap?(echang)
Updated•10 years ago
|
QA Whiteboard: [2.1-feature-qa+]
Whiteboard: [p=1][ft:ril] [dependency: marketplace] → [p=1][ft:ril] [dependency: marketplace][2.1-feature-qa+]
Updated•10 years ago
|
QA Whiteboard: [COM=RIL]
Comment 18•10 years ago
|
||
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
Flags: in-moztrap?(echang) → in-moztrap+
Comment 19•10 years ago
|
||
(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)
Reporter | ||
Comment 20•10 years ago
|
||
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)
Comment 21•10 years ago
|
||
(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?
Comment 22•10 years ago
|
||
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.
Comment 23•10 years ago
|
||
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.
Description
•