TelephonyManager.SetOperatorBrandOverride(String) Method

Definition

Override the branding for the current ICCID.

[Android.Runtime.Register("setOperatorBrandOverride", "(Ljava/lang/String;)Z", "GetSetOperatorBrandOverride_Ljava_lang_String_Handler", ApiSince=22)]
public virtual bool SetOperatorBrandOverride (string? brand);
[<Android.Runtime.Register("setOperatorBrandOverride", "(Ljava/lang/String;)Z", "GetSetOperatorBrandOverride_Ljava_lang_String_Handler", ApiSince=22)>]
abstract member SetOperatorBrandOverride : string -> bool
override this.SetOperatorBrandOverride : string -> bool

Parameters

brand
String

The brand name to display/set.

Returns

true if the operation was executed correctly.

Attributes

Remarks

Override the branding for the current ICCID.

Once set, whenever the SIM is present in the device, the service provider name (SPN) and the operator name will both be replaced by the brand value input. To unset the value, the same function should be called with a null brand value.

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

Java documentation for android.telephony.TelephonyManager.setOperatorBrandOverride(java.lang.String).

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