Partager via


TelephonyManager.HasCarrierPrivileges Property

Definition

Has the calling application been granted carrier privileges by the carrier.

public virtual bool HasCarrierPrivileges { [Android.Runtime.Register("hasCarrierPrivileges", "()Z", "GetHasCarrierPrivilegesHandler", ApiSince=22)] get; }
[<get: Android.Runtime.Register("hasCarrierPrivileges", "()Z", "GetHasCarrierPrivilegesHandler", ApiSince=22)>]
member this.HasCarrierPrivileges : bool

Property Value

true if the app has carrier privileges.

Attributes

Remarks

Has the calling application been granted carrier privileges by the carrier.

If any of the packages in the calling UID has carrier privileges, the call will return true. This access is granted by the owner of the UICC card and does not depend on the registered carrier.

Note that this API applies to both physical and embedded subscriptions and is a superset of the checks done in SubscriptionManager#canManageSubscription.

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

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