SIM not reported as locked after toggling FlightMode (arale) or re-starting ofono

Bug #1417445 reported by Alfonso Sanchez-Beato
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Unassigned
ofono (Ubuntu)
Confirmed
High
Unassigned

Bug Description

To reproduce this in mako:

1. Start mako with a locked SIM

2. Enter PIN

3. list-modems outpus shows
[ /ril_0 ]
    [ org.ofono.SimManager ]
        PinRequired = none
        LockedPins = pin

4. Execute
  # restart ofono

5. list-modems outpus shows
[ /ril_0 ]
    [ org.ofono.SimManager ]
        PinRequired = none
        LockedPins =

which is wrong, as the PIN is enabled, although you do not need to enter it at this moment.

The origin of this is that ofono core sets LockedPins only if it notes that we are required to enter the PIN. When the SIM atom is created, if at that moment there is no need to insert the PIN it will not set the PIN as locked (=enabled).

For mako this is not a big issue unless it is re-spawned after a crash, but in other devices (arale), this happens simply switching off, then on flight mode.

Happens in vivid-proposed image #86.

Revision history for this message
Tony Espy (awe) wrote :

@Alfonso

What's the result when this happens on krillin and/or arale? Does the SIM become unusable or this merely a semantics issue ( ie. the fact that LockedPins doesn't specify "pin" ).

Changed in ofono (Ubuntu):
status: New → Confirmed
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

The only device where this is a real issue is in arale: after switching on, then off flight mode:

1. The SIM atom is re-created, as in krillin, but not as in mako.
2. The radio is switched off and then on, but differently from krillin the SIM is not reset.

In mako using flight mode does not show the issue, because the atom is not re-created. In krillin, the atom is re-created but the SIM is reset too and it asks for the PIN again, so it is not an issue either. Note, however, that in all devices restarting from the command line ofono after having inserted the SIM makes the bug appear.

The consequence of this from the user point of view is that, in arale, after cycling flight mode, the SIM locked status is not shown properly in system settings and the user would not be able to disable SIM locking.

Revision history for this message
Evan Wang (wsy324) wrote :

$ system-image-cli -i
current build number: 29
device name: arale
channel: ubuntu-touch/tangxi-vivid-proposed
last update: 2015-04-30 01:53:21
version version: 29
version ubuntu: 20150429
version device: 320f13ea3dee85f6a8a8a0fe1f6e039b8a6eeaca8fc053d5275602ba2aebee44
version custom: 92aa1322afef2f104a0374f845554f8e45cd2ba7e405be99a1f365fbe122e4e9

Similar issue exists on Arale,r29,
Sometimes, with SIM PIN enabled, PIN/PUK dialog is not displayed after reboot, and SIM card Could not be unlocked.

Steps to reproduce:
1.Enable SIM PIN
2.Reboot the device,
Or enter incorrect PIN 3 times, then reboot

This issue could be reproduced every time if click on the X when PIN entry dialog is displaying, unlock the device but don't unlock the SIM(now SIM unlock should work), then reboot again, you will find the SIM unlock does not work anymore.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@Evan, the issue you describe is different and is reported in bug #1447748

Tony Espy (awe)
Changed in ofono (Ubuntu):
importance: Undecided → High
Changed in canonical-devices-system-image:
status: New → Confirmed
summary: - SIM is not reported as locked after re-starting ofono
+ SIM not reported as locked after toggling FlightMode (arale) or re-
+ starting ofono
Revision history for this message
Victor Gabillon (victorgabillon) wrote :

I cannot access the Cellular Settings when the flight mode is ON. I get the following message 'No SIM detected, insert a SIm then reboot the device'.
Is this related to this bug?

Meizu mx4 ota 12 stable

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@Víctor, you cannot access your SIM while you are in flight mode, that is expected. However, it is also true that the message is misleading, ubuntu-system-settings should detect flight mode and display another message. You can open a bug for ubuntu-system-settings for that.

Revision history for this message
Victor Gabillon (victorgabillon) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.