TelephonyManager.SetOperatorBrandOverride(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
).
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.