You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
❗️SIM Card PIN Not Handled via Modem Interface (mmcli / ModemManager)
Describe the bug
The application currently does not handle SIM card PINs via the modem interface (mmcli / ModemManager). It assumes the SIM is always unlocked. When a SIM requires a PIN, the app fails to detect this and provides no prompt or mechanism for unlocking it. This leads to silent connection failures and confusing behavior for the user.
Expected behavior
Detect when the modem reports the SIM is in a locked or pin-required state.
Prompt the user to enter the SIM PIN.
Unlock the SIM using the mmcli command:
mmcli -i <SIM-ID> --pin=<PIN>
Upon successful unlock, resume modem initialization and connection.
Additionally (optional):
Track incorrect PIN attempts and display remaining retries.
Detect puk-required state and optionally allow PUK entry.
❗️SIM Card PIN Not Handled via Modem Interface (
mmcli/ ModemManager)Describe the bug
The application currently does not handle SIM card PINs via the modem interface (
mmcli/ ModemManager). It assumes the SIM is always unlocked. When a SIM requires a PIN, the app fails to detect this and provides no prompt or mechanism for unlocking it. This leads to silent connection failures and confusing behavior for the user.Expected behavior
Detect when the modem reports the SIM is in a
lockedorpin-requiredstate.Prompt the user to enter the SIM PIN.
Unlock the SIM using the
mmclicommand:Upon successful unlock, resume modem initialization and connection.
Additionally (optional):
Track incorrect PIN attempts and display remaining retries.
Detect
puk-requiredstate and optionally allow PUK entry.Support enabling/disabling SIM PIN lock via:
Current behavior
mmcli -m <modem>manually reveals that the SIM is locked.To Reproduce
Insert a SIM card with a PIN enabled into a modem.
Start the application.
Observe that no prompt or notification is shown.
Check SIM status with:
and note the SIM state is
locked.Attempt to connect via the app — it fails without explanation.
Proposed Solution
On initialization, query the modem’s SIM status via:
If the SIM is locked (
PIN required), prompt the user to enter their PIN.Unlock the SIM via:
On success:
Add handling for: