Closed
Bug 1083650
Opened 11 years ago
Closed 11 years ago
[B2G][Emulator] Support facility lock
Categories
(Firefox OS Graveyard :: Emulator, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S9 (21Nov)
People
(Reporter: edgar, Assigned: edgar)
References
Details
Attachments
(2 files, 2 obsolete files)
Enhance emulator to support setting/querying facility lock.
| Assignee | ||
Comment 1•11 years ago
|
||
See
- RIL_REQUEST_QUERY_FACILITY_LOCK [1]
- RIL_REQUEST_SET_FACILITY_LOCK [2]
- AT+CLCK [3]
[1] https://github.com/mozilla-b2g/platform_hardware_ril/blob/master/include/telephony/ril.h#L1881-L1908
[2] https://github.com/mozilla-b2g/platform_hardware_ril/blob/master/include/telephony/ril.h#L1910-L1937
[3] TS 127.007, section 7.4 Facility lock +CLCK
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Comment 3•11 years ago
|
||
Summary what I would like to do in this bug:
1. Support getting/setting Facility lock, but only `PIN` for now. Then we can write a marionette test for querying/enabling/disabling pin lock.
2. Support reporting card state as "PIN LOCKED" if pin lock is enabled. And change state to "PUK LOCKED" if passing wrong pin to unlock over 3 times. Then we can write a marionette tests for unlocking pin/puk lock. Then test follow will be something like:
- enable pin lock
- switch radio off --> this will reset the card state
- switch radio on
- card state is `PIN LOCKED`
- unlock with correct pin
- card state changes to 'READY'
- disable pin lock
| Assignee | ||
Comment 4•11 years ago
|
||
| Assignee | ||
Comment 5•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → echen
| Assignee | ||
Comment 6•11 years ago
|
||
I triggered some try runs to make sure everything is good before requesting review.
Try run with qemu + ril changes: https://tbpl.mozilla.org/?tree=Try&rev=554612fec35c
Try run with qemu + ril changes and bug 1084233: https://tbpl.mozilla.org/?tree=Try&rev=b3b3f5aa6ad7
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #6)
> I triggered some try runs to make sure everything is good before requesting
> review.
>
> Try run with qemu + ril changes:
> https://tbpl.mozilla.org/?tree=Try&rev=554612fec35c
> Try run with qemu + ril changes and bug 1084233:
> https://tbpl.mozilla.org/?tree=Try&rev=b3b3f5aa6ad7
Ah, there is a typo in the patch of updating qemu+ril. Will fix it and provide try link again later.
| Assignee | ||
Comment 8•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #7)
> Ah, there is a typo in the patch of updating qemu+ril. Will fix it and
> provide try link again later.
Try run with qemu + ril changes: https://tbpl.mozilla.org/?tree=Try&rev=6a8a6e652e8f
Try run with qemu + ril changes and bug 1084233: https://tbpl.mozilla.org/?tree=Try&rev=6305e7992f44
| Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 8511910 [details] [review]
[platform_hardware_ril] PR #40
May I have your review, Hsinyi? Thank you.
Attachment #8511910 -
Flags: review?(htsai)
| Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8511912 [details] [review]
[platform_external_qemu] PR #117
May I have your review, Hsinyi? Thank you.
Attachment #8511912 -
Flags: review?(htsai)
Comment 11•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #9)
> Comment on attachment 8511910 [details] [review]
> [platform_hardware_ril] PR #40
>
> May I have your review, Hsinyi? Thank you.
Please see my comment for part 1 in github.
Comment 12•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #10)
> Comment on attachment 8511912 [details] [review]
> [platform_external_qemu] PR #117
>
> May I have your review, Hsinyi? Thank you.
Please find my comments for part 1 and part 2 in github, thank you. Happy weekend :P
Updated•11 years ago
|
Attachment #8511912 -
Flags: review?(htsai) → review+
Updated•11 years ago
|
Attachment #8511910 -
Flags: review?(htsai) → review+
| Assignee | ||
Comment 13•11 years ago
|
||
Thank you, Hsinyi. :)
| Assignee | ||
Comment 14•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 15•11 years ago
|
||
https://github.com/mozilla-b2g/platform_hardware_ril/commit/d5d3f93914558b6f168447b805cd799c8233e300
https://github.com/mozilla-b2g/platform_external_qemu/commit/a47dd04f8f66e42fd331711140f2c3e2fed0767d
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S9 (21Nov)
| Assignee | ||
Comment 16•11 years ago
|
||
| Assignee | ||
Comment 17•11 years ago
|
||
Updated•11 years ago
|
Blocks: emulator-kk
| Assignee | ||
Comment 18•11 years ago
|
||
| Assignee | ||
Comment 19•11 years ago
|
||
Comment 21•11 years ago
|
||
Hi, in the two repositories, hardware/ril and external/qemu, their b2g-kitkat branch merges b2g-jellybean, which merges master again. You simply should not cherry-pick commits from master branch, just merge them and that keeps you from memorizing which commits are already included or not. Besides, you have only cherry-picks for kitkat branch. What will you going to do with b2g-jellybean branch? This move is going to bring in *a lot* effort for further development. Please just don't do that!
I had merged branches in my repository already. See
https://github.com/vicamo/b2g_platform_external_qemu/tree/next/b2g/b2g-jellybean
https://github.com/vicamo/b2g_platform_external_qemu/tree/next/b2g/b2g-kitkat
https://github.com/vicamo/b2g_platform_hardware_ril/tree/next/b2g/b2g-jellybean
https://github.com/vicamo/b2g_platform_hardware_ril/tree/next/b2g/b2g-kitkat
Flags: needinfo?(htsai)
Flags: needinfo?(echen)
| Assignee | ||
Comment 22•11 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #21)
> Hi, in the two repositories, hardware/ril and external/qemu, their
> b2g-kitkat branch merges b2g-jellybean, which merges master again. You
> simply should not cherry-pick commits from master branch, just merge them
> and that keeps you from memorizing which commits are already included or
> not. Besides, you have only cherry-picks for kitkat branch. What will you
> going to do with b2g-jellybean branch? This move is going to bring in *a
> lot* effort for further development. Please just don't do that!
AFAIK, we are going to move all the emulator things to b2g-kitkat and JB will not be maintained anymore. So after discussing, we just cherry-pick them into kitkat branch.
>
> I had merged branches in my repository already. See
> https://github.com/vicamo/b2g_platform_external_qemu/tree/next/b2g/b2g-
> jellybean
> https://github.com/vicamo/b2g_platform_external_qemu/tree/next/b2g/b2g-kitkat
> https://github.com/vicamo/b2g_platform_hardware_ril/tree/next/b2g/b2g-
> jellybean
> https://github.com/vicamo/b2g_platform_hardware_ril/tree/next/b2g/b2g-kitkat
Since you already have merged branch, I will let you handle this. Thank you. :)
BTW, do you know how to acquire emulator merge privilege? I can help to maintain these repositories, too.
Flags: needinfo?(echen)
Keywords: checkin-needed
Comment 23•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #22)
> (In reply to Vicamo Yang [:vicamo][:vyang] from comment #21)
> > Hi, in the two repositories, hardware/ril and external/qemu, their
> > b2g-kitkat branch merges b2g-jellybean, which merges master again. You
> > simply should not cherry-pick commits from master branch, just merge them
> > and that keeps you from memorizing which commits are already included or
> > not. Besides, you have only cherry-picks for kitkat branch. What will you
> > going to do with b2g-jellybean branch? This move is going to bring in *a
> > lot* effort for further development. Please just don't do that!
>
> AFAIK, we are going to move all the emulator things to b2g-kitkat and JB
> will not be maintained anymore. So after discussing, we just cherry-pick
> them into kitkat branch.
>
Edgar is correct. Per the discussion with Thomas, we don't need to care about support for JB, besides building for it.
> >
> > I had merged branches in my repository already. See
> > https://github.com/vicamo/b2g_platform_external_qemu/tree/next/b2g/b2g-
> > jellybean
> > https://github.com/vicamo/b2g_platform_external_qemu/tree/next/b2g/b2g-kitkat
> > https://github.com/vicamo/b2g_platform_hardware_ril/tree/next/b2g/b2g-
> > jellybean
> > https://github.com/vicamo/b2g_platform_hardware_ril/tree/next/b2g/b2g-kitkat
>
> Since you already have merged branch, I will let you handle this. Thank you.
> :)
>
> BTW, do you know how to acquire emulator merge privilege? I can help to
> maintain these repositories, too.
Flags: needinfo?(htsai)
Comment 24•11 years ago
|
||
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #23)
> (In reply to Edgar Chen [:edgar][:echen] from comment #22)
> > (In reply to Vicamo Yang [:vicamo][:vyang] from comment #21)
> > > Hi, in the two repositories, hardware/ril and external/qemu, their
> > > b2g-kitkat branch merges b2g-jellybean, which merges master again. You
> > > simply should not cherry-pick commits from master branch, just merge them
> > > and that keeps you from memorizing which commits are already included or
> > > not. Besides, you have only cherry-picks for kitkat branch. What will you
> > > going to do with b2g-jellybean branch? This move is going to bring in *a
> > > lot* effort for further development. Please just don't do that!
> >
> > AFAIK, we are going to move all the emulator things to b2g-kitkat and JB
> > will not be maintained anymore. So after discussing, we just cherry-pick
> > them into kitkat branch.
> >
>
> Edgar is correct. Per the discussion with Thomas, we don't need to care
> about support for JB, besides building for it.
Deprecating JB is just not a good reason to switch merge policy to cherry-picks. You can merge b2g/master directly into b2g/b2g-kitkat if you want. The main problem lies in the cherry-picks itself. Today we may cherry-pick this bug 1083650 to b2g-kitkat, but guess what, we have to do this because cherry-picking bug 1098193, bug 1100211, bug 1093506 and bug 1105988 was chosen, and this bug was __MISSED__. Please remember we're all humans, not saints, and humans are meant to forget. So do yourself a favor not to keep all these minor issues in you mind. Let mechanism solve your problems automatically whenever possible.
Comment 25•11 years ago
|
||
NI :mwu per comment 22. If possible, need write permission for:
https://github.com/mozilla-b2g/platform_external_qemu
https://github.com/mozilla-b2g/platform_hardware_ril
https://github.com/mozilla-b2g/device_generic_goldfish
Flags: needinfo?(mwu)
Comment 26•11 years ago
|
||
Your concern makes sense. Thanks, Vicamo. I had written an email to Thomas (emulator owner) and Michael to discuss the improvement and to see how to acquire merge privilege.
Comment 27•11 years ago
|
||
Ping?
Comment 28•11 years ago
|
||
Hsin-Yi Tsai and/or Edgar, you will need level 3 commit access. If you have access, please link the bug where it was granted. Thanks!
Flags: needinfo?(mwu)
Flags: needinfo?(htsai)
Flags: needinfo?(echen)
| Assignee | ||
Comment 29•11 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #28)
> Hsin-Yi Tsai and/or Edgar, you will need level 3 commit access. If you have
> access, please link the bug where it was granted. Thanks!
Hi Michael, here is the bug for my level 3 commit access, https://bugzilla.mozilla.org/show_bug.cgi?id=896402. Thank you.
Flags: needinfo?(echen)
Comment 30•11 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #28)
> Hsin-Yi Tsai and/or Edgar, you will need level 3 commit access. If you have
> access, please link the bug where it was granted. Thanks!
My level 3 commit access was granted in Bug 763811. Thank you for the help, Michael.
Flags: needinfo?(htsai)
Updated•11 years ago
|
Blocks: emulator-l_taskcluster
Updated•11 years ago
|
No longer blocks: emulator-l_taskcluster
| Assignee | ||
Updated•11 years ago
|
Attachment #8542113 -
Attachment is obsolete: true
| Assignee | ||
Updated•11 years ago
|
Attachment #8542114 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•