Closed
Bug 866645
Opened 11 years ago
Closed 11 years ago
B2G CDMA: Get the mcc/mnc of CDMA RUIM
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: edgar, Assigned: edgar)
References
Details
Attachments
(2 files, 1 obsolete file)
3.65 KB,
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
1.87 KB,
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
Ril parse iccInfo.mcc and iccInfo.mnc when reading EF_AD, but in CDMA mode, ril does not handle EF_AD. So the mcc/mnc of iccInfo are 'undefined'. We may need to find a way to get mcc/mnc of CDMA RUIM.
Assignee | ||
Updated•11 years ago
|
Blocks: b2g-ril-cdma
Comment 1•11 years ago
|
||
MCC/MNC is from IMSI's first 5 digits (C.S0005 2.3.1), we should able to get IMSI from EF_IMSI_M.
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Patrick Wang [:kk1fff] from comment #1) > MCC/MNC is from IMSI's first 5 digits (C.S0005 2.3.1), we should able to get > IMSI from EF_IMSI_M. Actually, MNC can be 2 digits or 3 digits [1]. In gsm mode, we check the 4th byte of EF_AD to decide the mnc is 2 digits or 3 digits. It seems RUIM has EF_AD as well, but I didn't see mnc information mentioned in spec. (C.S0023-D session 3.4.33) [1] http://en.wikipedia.org/wiki/Mobile_Network_Code
Assignee | ||
Comment 3•11 years ago
|
||
AOSP has implemented a MCC table which contains all mcc and corresponding mnc length [1]. If mnc length information isn't showed in EF_AD, AOSP will use this table to get mnc length [2]. [1] https://android.googlesource.com/platform/frameworks/opt/telephony/+/master/src/java/com/android/internal/telephony/MccTable.java#319 [2] https://android.googlesource.com/platform/frameworks/opt/telephony/+/master/src/java/com/android/internal/telephony/uicc/RuimRecords.java#215
Assignee | ||
Comment 4•11 years ago
|
||
In bug 880369, we add a MCC table for the case that AD dose not contain the length of MNC in some SIM card. I think we could re-use this table for CDMA. Thanks
Depends on: 880369
Updated•11 years ago
|
Assignee: nobody → echen
Assignee | ||
Comment 5•11 years ago
|
||
1). Move the code of mcc/mnc parsing into a utility function, parseMccMncFromImsi. 2). For CDMA, there is no mncLength information in EF_AD, so we needn't to read EF_AD, we could parse mcc/mnc directly right after we got IMSI.
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #776153 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #776152 -
Flags: review?(allstars.chh)
Assignee | ||
Updated•11 years ago
|
Attachment #776156 -
Flags: review?(allstars.chh)
Attachment #776152 -
Flags: review?(allstars.chh) → review+
Attachment #776156 -
Flags: review?(allstars.chh) → review+
Assignee | ||
Comment 8•11 years ago
|
||
try server: https://tbpl.mozilla.org/?tree=Try&rev=1d59255c2795
Assignee | ||
Comment 9•11 years ago
|
||
try server: https://tbpl.mozilla.org/?tree=Try&rev=7a1d303f7dbb
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 10•11 years ago
|
||
https://hg.mozilla.org/projects/birch/rev/433ebb4c854b https://hg.mozilla.org/projects/birch/rev/099014c88d3c
Flags: in-testsuite+
Keywords: checkin-needed
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/433ebb4c854b https://hg.mozilla.org/mozilla-central/rev/099014c88d3c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Updated•11 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•