Merge lp://qastaging/~phablet-team/phablet-extras/ofono-sim-pin-support into lp://qastaging/phablet-extras/ofono
Status: | Merged |
---|---|
Approved by: | Ricardo Salveti |
Approved revision: | 53 |
Merged at revision: | 46 |
Proposed branch: | lp://qastaging/~phablet-team/phablet-extras/ofono-sim-pin-support |
Merge into: | lp://qastaging/phablet-extras/ofono |
Diff against target: |
860 lines (+511/-107) 5 files modified
debian/changelog (+8/-0) drivers/rilmodem/rilutil.c (+81/-61) drivers/rilmodem/rilutil.h (+42/-11) drivers/rilmodem/sim.c (+368/-30) plugins/ril.c (+12/-5) |
To merge this branch: | bzr merge lp://qastaging/~phablet-team/phablet-extras/ofono-sim-pin-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ricardo Salveti (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email:
|
Commit message
[rilmodem] Add SIM PIN/PUK support.
Description of the change
This merge adds SIM PIN/PUK support. It's based on code from Jolla that's been re-factored due to the fact that they're working on a older version of our code, and to remove some of the changes they made which were questionable.
https:/
Testing was performed on an un-flipped maguro, using the 20130629 build.
I tested an unlocked SIM, and only verified that I was able to make voice calls.
I tested a locked SIM. I manually started ofono. Before unlocked, the ofono DBus interfaces are restricted to VoiceCallManager and SimManager. I manually entered a pin via dbus-send:
I resorted to dbus-send, as I couldn't get the python enter-pin test script to run, but this was because it took me awhile to figure out that the 'pin_type' argument was the same as reported by the property ( eg. "pin" ). Here's the command I used:
# dbus-send --print-reply --system --dest=org.ofono /ril_0 org.ofono.
After entering the PIN, I verified that the rest of the modem initialization occurs, and I was able to make a phone call.
NOTE -- I did some minor cleanup of the branch before submitting, so this code definitely needs to be fully re-tested on maguro. It also needs to be tested on mako.
PASSED: Continuous integration, rev:47 jenkins. qa.ubuntu. com/job/ phablet- extras- ofono-ci/ 49/ jenkins. qa.ubuntu. com/job/ phablet- extras- ofono-saucy- armhf-ci/ 24 jenkins. qa.ubuntu. com/job/ phablet- extras- ofono-saucy- armhf-ci/ 24/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ phablet- extras- ofono-ci/ 49/rebuild
http://