Loading telephony/java/android/telephony/SubscriptionInfo.java +17 −2 Original line number Original line Diff line number Diff line Loading @@ -662,8 +662,16 @@ public class SubscriptionInfo implements Parcelable { } } /** /** * @return the card string of the SIM card which contains the subscription. The card string is * Returns the card string if the calling app has been granted the READ_PRIVILEGED_PHONE_STATE * the ICCID for UICCs or the EID for eUICCs. * permission, has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges}), or * is a device owner or profile owner on an organization owned device that has been granted the * READ_PHONE_STATE permission. The profile owner is an app that owns a managed profile on the * device; for more details see <a href="https://developer.android.com/work/managed-profiles"> * Work profiles</a>. * * @return the card string of the SIM card which contains the subscription or an empty string * if these requirements are not met. The card string is the ICCID for UICCs or the EID for * eUICCs. * @hide * @hide * //TODO rename usages in LPA: UiccSlotUtil.java, UiccSlotsManager.java, UiccSlotInfoTest.java * //TODO rename usages in LPA: UiccSlotUtil.java, UiccSlotsManager.java, UiccSlotInfoTest.java */ */ Loading @@ -671,6 +679,13 @@ public class SubscriptionInfo implements Parcelable { return this.mCardString; return this.mCardString; } } /** * @hide */ public void clearCardString() { this.mCardString = ""; } /** /** * Returns the card ID of the SIM card which contains the subscription (see * Returns the card ID of the SIM card which contains the subscription (see * {@link UiccCardInfo#getCardId()}. * {@link UiccCardInfo#getCardId()}. Loading Loading
telephony/java/android/telephony/SubscriptionInfo.java +17 −2 Original line number Original line Diff line number Diff line Loading @@ -662,8 +662,16 @@ public class SubscriptionInfo implements Parcelable { } } /** /** * @return the card string of the SIM card which contains the subscription. The card string is * Returns the card string if the calling app has been granted the READ_PRIVILEGED_PHONE_STATE * the ICCID for UICCs or the EID for eUICCs. * permission, has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges}), or * is a device owner or profile owner on an organization owned device that has been granted the * READ_PHONE_STATE permission. The profile owner is an app that owns a managed profile on the * device; for more details see <a href="https://developer.android.com/work/managed-profiles"> * Work profiles</a>. * * @return the card string of the SIM card which contains the subscription or an empty string * if these requirements are not met. The card string is the ICCID for UICCs or the EID for * eUICCs. * @hide * @hide * //TODO rename usages in LPA: UiccSlotUtil.java, UiccSlotsManager.java, UiccSlotInfoTest.java * //TODO rename usages in LPA: UiccSlotUtil.java, UiccSlotsManager.java, UiccSlotInfoTest.java */ */ Loading @@ -671,6 +679,13 @@ public class SubscriptionInfo implements Parcelable { return this.mCardString; return this.mCardString; } } /** * @hide */ public void clearCardString() { this.mCardString = ""; } /** /** * Returns the card ID of the SIM card which contains the subscription (see * Returns the card ID of the SIM card which contains the subscription (see * {@link UiccCardInfo#getCardId()}. * {@link UiccCardInfo#getCardId()}. Loading