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
mmdbus: improve eSIM detection using EID and handle missing slot paths
Without proper eSIM detection, EVE cannot identify that the active slot is
an eSIM and remains stuck on the unsupported eSIM slot instead of
automatically switching to a physical SIM slot.
ModemManager often fails to report SIM slot types (SIMPropertyType returns
"unknown"/unspecified), making it impossible to distinguish eSIM from physical
SIM. Improve detection by querying the EID (eUICC Identifier) — only eSIM
chips carry one, so its presence reliably identifies an eSIM.
Additionally, ModemPropertySIMSlots returns empty D-Bus paths for slots with
no SIM or no active eSIM profile. For the currently active slot, fall back to
ModemPropertySIM which often still provides a valid object even when the slot
array entry is empty.
Unify SIM presence detection for unknown and physical SIM types: use the
slot array path (hasSlotPath) as the common presence indicator instead of
checking ICCID for unknown types separately.
In preferPhysSimOverESim, prefer a confirmed physical slot over an
unspecified-type candidate. When the active slot is a detected eSIM, it is
very unlikely for a modem to have multiple eUICCs, so the remaining slots
with unknown type are almost certainly physical — but only used as a fallback.
Signed-off-by: Milan Lenco <milan@zededa.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments