Closed
Bug 890862
Opened 12 years ago
Closed 12 years ago
Wrong ril.data.apnSettings when carrier is not in apn.json
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(b2g18 fixed)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| b2g18 | --- | fixed |
People
(Reporter: johnhu, Assigned: johnhu)
References
Details
Attachments
(1 file)
This bug only occurs when simcard is unknown carrier. We use apn.json file to build default settings. If carrier is not known by apn.json, the apnSettings will be [[]] and the settings built by Bug 842252 will be empty, too.
STR:
1. reset the phone, and stay power off.
2. insert a simcard whose carrier is not in apn.json.
3. boot up the phone.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → johu
| Assignee | ||
Updated•12 years ago
|
| Assignee | ||
Comment 1•12 years ago
|
||
I create a flag to mark if a APN with the same type is found from previous settings. If it is not found, we create one for it.
Attachment #772012 -
Flags: review?(josea.olivera)
Attachment #772012 -
Flags: review?(arthur.chen)
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 772012 [details]
add a new apn item when APN with the same type is not found
Ken,
Please help us to make try this patch.
Attachment #772012 -
Flags: feedback?(kchang)
| Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 772012 [details]
add a new apn item when APN with the same type is not found
There is a potential bug in operator_variant.js. We use mcc and mnc to check if we need to reconstruct the APN settings, including new and old.
If we upgrade to new version with the same simcard, the new APN settings will not be reconstructed because mcc and mnc is the same.
I will merge the patch in this bug and reset the review and feedback flag.
Attachment #772012 -
Flags: review?(josea.olivera)
Attachment #772012 -
Flags: review?(arthur.chen)
Attachment #772012 -
Flags: feedback?(kchang)
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 772012 [details]
add a new apn item when APN with the same type is not found
1. I create a flag to mark if a APN with the same type is found from previous settings. If it is not found, we create one for it.
2. I add more check on APN Settings when system boot-up. If mcc and mnc is not changed, but APN Settings is empty, we will create a set of APN settings.
Attachment #772012 -
Flags: review?(josea.olivera)
Attachment #772012 -
Flags: review?(arthur.chen)
Attachment #772012 -
Flags: feedback?(kchang)
Comment 5•12 years ago
|
||
(In reply to John Hu [:johnhu] from comment #4)
> Comment on attachment 772012 [details]
> 2. I add more check on APN Settings when system boot-up. If mcc and mnc is
> not changed, but APN Settings is empty, we will create a set of APN settings.
Hey John, I don't understand this second issue. If the user doesn't change the ICC card and there were no APN settings on the first boot for that ICC card (for the mcc and mnc codes in the ICC card) there won't be APN settings for subsequent boots. Am I right?
I guess you meant what you explained above.
> If we upgrade to new version with the same simcard, the new APN settings will not
> be reconstructed because mcc and mnc is the same.
The user typically will upgrade the phone by flashing it so I guess the second issue is not a big problem. Wdyt?
Flags: needinfo?(johu)
| Assignee | ||
Comment 6•12 years ago
|
||
Jose,
When user uses OTA to upgrade their phone, the mozSettings will not be reset. So, the mnc and mcc are still the same, but the apnSettings will not be built at the first boot up after upgrade.
But if user upgrade the phone by flashing a new image, it resets all data in mozSettings. In this case, the second bug doesn't exist.
Flags: needinfo?(johu)
Comment 7•12 years ago
|
||
Comment on attachment 772012 [details]
add a new apn item when APN with the same type is not found
r=me. Thanks John!
Attachment #772012 -
Flags: review?(josea.olivera) → review+
Comment 8•12 years ago
|
||
Comment on attachment 772012 [details]
add a new apn item when APN with the same type is not found
It works in my image now. But if you modify this patch, please let me know.
Attachment #772012 -
Flags: feedback?(kchang) → feedback+
| Assignee | ||
Comment 9•12 years ago
|
||
Ken,
Thanks, I will.
Comment 10•12 years ago
|
||
Comment on attachment 772012 [details]
add a new apn item when APN with the same type is not found
Thanks John. r=me.
Attachment #772012 -
Flags: review?(arthur.chen) → review+
| Assignee | ||
Comment 11•12 years ago
|
||
merged to master:
https://github.com/mozilla-b2g/gaia/commit/ad0faa24b70343599ac9a948286ab869beba37db
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•