Compartir a través de


TelephonyManager.SendEnvelopeWithStatus(String) Method

Definition

Send ENVELOPE to the SIM and return the response.

[Android.Runtime.Register("sendEnvelopeWithStatus", "(Ljava/lang/String;)Ljava/lang/String;", "GetSendEnvelopeWithStatus_Ljava_lang_String_Handler")]
public virtual string? SendEnvelopeWithStatus (string? content);
[<Android.Runtime.Register("sendEnvelopeWithStatus", "(Ljava/lang/String;)Ljava/lang/String;", "GetSendEnvelopeWithStatus_Ljava_lang_String_Handler")>]
abstract member SendEnvelopeWithStatus : string -> string
override this.SendEnvelopeWithStatus : string -> string

Parameters

content
String

String containing SAT/USAT response in hexadecimal format starting with command tag. See TS 102 223 for details.

Returns

The APDU response from the ICC card in hexadecimal format with the last 4 bytes being the status word. If the command fails, returns an empty string.

Attributes

Remarks

Send ENVELOPE to the SIM and return the response.

Requires Permission: android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE or that the calling app has carrier privileges (see #hasCarrierPrivileges).

Java documentation for android.telephony.TelephonyManager.sendEnvelopeWithStatus(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