[ofono][rild] "Retries" property does not not work
Bug #1206941 reported by
Michael Zanetti
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ofono (Ubuntu) |
Fix Released
|
High
|
Alfonso Sanchez-Beato |
Bug Description
For the SIM Pin dialog we need to display the remaining attempts for unlocking.
The appropriate property for that is "Retries" of the SimManager. Use this command to display it:
qdbus --system --literal org.ofono /ril_0 org.ofono.
Even though PinRequired is set to "pin", which means the SIM card is waiting for the PIN, the "Retries" property is always empty while it should be a Map with contents something along the lines:
{ "pin" : 3, "puk": 16 }
Related branches
Changed in touch-preview-images: | |
status: | New → Confirmed |
Changed in ofono (Ubuntu): | |
status: | New → Confirmed |
Changed in touch-preview-images: | |
importance: | Undecided → High |
Changed in ofono (Ubuntu): | |
importance: | Undecided → High |
Changed in touch-preview-images: | |
assignee: | nobody → Tony Espy (awe) |
Changed in ofono (Ubuntu): | |
assignee: | nobody → Tony Espy (awe) |
summary: |
- "Retries" property does not not work + [ofono][rild] "Retries" property does not not work |
Changed in touch-preview-images: | |
status: | Confirmed → In Progress |
status: | In Progress → Confirmed |
Changed in touch-preview-images: | |
assignee: | Tony Espy (awe) → nobody |
Changed in ofono (Ubuntu): | |
assignee: | Tony Espy (awe) → nobody |
Changed in ofono (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in ofono (Ubuntu): | |
assignee: | nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
no longer affects: | touch-preview-images |
To post a comment you must log in.
So is this is a pretty obvious, function-didn't get implemented type of bug.
The rilmodem's sim modules doesn't define a function for ofono_sim_ driver. (*query_ pin_retries) .
On the RIL side, there's no RIL message that can be used to query the various PIN retry counts. Instead, the RIL PIN requests all return the current retry value for the specified PIN. Unfortunately, the ofono DBus API doesn't return a PIN retries count when EnterPin is called.
This is definitely a case of RIL/ofono API mismatch...
So, the only possible way I can see to fix is:
1. When a SIM PIN required condition is detected, rilmodem's internal 'pin_retries' is set to 3.
2. If rilmodem's (*send_passwd) function is called, the returned retry value is used to update the internal 'pin_retries' count.
3. If a (*change_passwd) operation succeeds, reset 'pin_retries' to 3
The same technique could be applied to "puk" as well.
I'd appreciate a quick comment as to whether or not this missing feature impacts the current UI design? Can the UI be implemented by just examining the PIN/PUK related properties?