共用方式為


TelephonyManager.UiccCardsInfo Property

Definition

Gets information about currently inserted UICCs and eUICCs.

public virtual System.Collections.Generic.IList<Android.Telephony.UiccCardInfo> UiccCardsInfo { [Android.Runtime.Register("getUiccCardsInfo", "()Ljava/util/List;", "GetGetUiccCardsInfoHandler", ApiSince=29)] [Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getUiccCardsInfo", "()Ljava/util/List;", "GetGetUiccCardsInfoHandler", ApiSince=29)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")>]
member this.UiccCardsInfo : System.Collections.Generic.IList<Android.Telephony.UiccCardInfo>

Property Value

a list of UiccCardInfo objects, representing information on the currently inserted UICCs and eUICCs. Each UiccCardInfo in the list will have private information filtered out if the caller does not have adequate permissions for that card.

Attributes

Remarks

Gets information about currently inserted UICCs and eUICCs.

Requires that the calling app has carrier privileges (see #hasCarrierPrivileges).

If the caller has carrier priviliges on any active subscription, then they have permission to get simple information like the card ID (UiccCardInfo#getCardId()), whether the card is an eUICC (UiccCardInfo#isEuicc()), and the physical slot index where the card is inserted (UiccCardInfo#getPhysicalSlotIndex().

To get private information such as the EID (UiccCardInfo#getEid()) or ICCID (UiccCardInfo#getIccId()), the caller must have carrier priviliges on that specific UICC or eUICC card.

See UiccCardInfo for more details on the kind of information available.

Java documentation for android.telephony.TelephonyManager.getUiccCardsInfo().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to