Closed Bug 900321 Opened 11 years ago Closed 11 years ago

B2G RIL: Add PUK state for nck, spck, and cck

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

Details

Attachments

(3 files, 5 obsolete files)

In Bug 849757 we have added 'spck' and 'cck' card state when the SIM card is locked in personalization state. But we didn't add PUK for these locks.
So Gaia side couldn't know the SIMcard is in nck-puk, spck-puk, cck-puk state.

This bug is filed to fix these.
Attached patch Part 2: DOM (obsolete) — Splinter Review
Attachment #784765 - Attachment is obsolete: true
Attached patch Part 1: IDL v2.Splinter Review
Attachment #784764 - Attachment is obsolete: true
Attachment #784764 - Flags: review?(vyang)
Attachment #784842 - Flags: review?(vyang)
Attached patch Part 2: RIL and test case. v2 (obsolete) — Splinter Review
Attachment #784767 - Attachment is obsolete: true
Attachment #784769 - Attachment is obsolete: true
Blocks: 900885
Attachment #784842 - Flags: review?(vyang) → review+
Comment on attachment 784843 [details] [diff] [review]
Part 2: RIL and test case. v2

Review of attachment 784843 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/system/gonk/ril_worker.js
@@ +1039,5 @@
>    enterDepersonalization: function enterDepersonalization(options) {
>      Buf.newParcel(REQUEST_ENTER_NETWORK_DEPERSONALIZATION_CODE, options);
>      Buf.writeUint32(options.type);
> +    if (options.lockType.endsWith("Puk")) {
> +      Buf.writeString(options.puk);

Let's move these determinant logic to the callee, let |enterDepersonalization| accept three parameters -- type, pin, and options.
Attachment #784843 - Flags: review?(vyang)
Attachment #784842 - Flags: superreview?(jonas)
Attachment #784842 - Flags: superreview?(jonas) → superreview+
Comment on attachment 785636 [details] [diff] [review]
Part 2: RIL and test case. v3

Review of attachment 785636 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you :)
Attachment #785636 - Flags: review?(vyang) → review+
Error message: 
09:49:11     INFO -  AssertionError: See errors below and more information in Bug 880643
09:49:11     INFO -  ril_consts.js: line 2368, col 36, ['nck'] is better written in dot notation.
09:49:11     INFO -  ril_consts.js: line 2369, col 36, ['cck'] is better written in dot notation.
09:49:11     INFO -  ril_consts.js: line 2370, col 36, ['spck'] is better written in dot notation.
09:49:11     INFO -  ril_consts.js: line 2371, col 36, ['nckPuk'] is better written in dot notation.
09:49:11     INFO -  ril_consts.js: line 2372, col 36, ['cckPuk'] is better written in dot notation.
09:49:11     INFO -  ril_consts.js: line 2373, col 36, ['spckPuk'] is better written in dot notation.
09:49:11     INFO -  TEST-UNEXPECTED-FAIL | 



I'll create a Part 3 patch to fix this.
Attachment #786770 - Flags: review?(vyang) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: