android.telephony.gsm.SimSmsInterfaceManager
SimSmsInterfaceManager to provide an inter-process communication to
access Sms in Sim.
Summary
| |
|
|
Value |
|
| int |
DUMP_TRANSACTION |
IBinder protocol transaction code: dump internal state. |
1598311760 |
0x5f444d50 |
| int |
FIRST_CALL_TRANSACTION |
The first transaction code available for user commands. |
1 |
0x00000001 |
| int |
LAST_CALL_TRANSACTION |
The last transaction code available for user commands. |
16777215 |
0x00ffffff |
| int |
PING_TRANSACTION |
IBinder protocol transaction code: pingBinder(). |
1599098439 |
0x5f504e47 |
Public Constructors
Public Methods
attachInterface,
clearCallingIdentity,
dump,
finalize,
flushPendingCommands,
getCallingPid,
getCallingUid,
getConstantData,
getContextObject,
getLastGcTime,
joinThreadPool,
linkToDeath,
onTransact,
pingBinder,
queryLocalInterface,
restoreCallingIdentity,
transact,
unlinkToDeath
| |
|
|
|
void |
attachInterface(IInterface owner, String descriptor) |
| |
|
final |
static |
long |
clearCallingIdentity() |
| |
|
|
|
void |
dump(FileDescriptor fd, PrintWriter fout) |
| |
|
|
|
void |
finalize() |
| |
|
final |
static |
void |
flushPendingCommands() |
| |
|
final |
static |
int |
getCallingPid() |
| |
|
final |
static |
int |
getCallingUid() |
| |
|
|
|
int |
getConstantData(Parcel outData) |
| |
|
final |
static |
IBinder |
getContextObject() |
| |
|
|
static |
long |
getLastGcTime() |
| |
|
final |
static |
void |
joinThreadPool() |
| |
|
|
|
void |
linkToDeath(DeathRecipient recipient, int flags) |
| |
|
|
|
boolean |
onTransact(int code, Parcel data, Parcel reply, int flags) |
| |
|
|
|
boolean |
pingBinder() |
| |
|
|
|
IInterface |
queryLocalInterface(String descriptor) |
| |
|
final |
static |
void |
restoreCallingIdentity(long token) |
| |
|
final |
|
boolean |
transact(int code, Parcel data, Parcel reply, int flags) |
| |
|
|
|
boolean |
unlinkToDeath(DeathRecipient recipient, int flags) |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
SimSmsInterfaceManager(GSMPhone phone)
Public Methods
public
boolean
copyMessageToSimEf(int status, byte[] pdu, byte[] smsc)
Copy a raw SMS PDU to the SIM.
Parameters
| status
| message status (STATUS_ON_SIM_READ, STATUS_ON_SIM_UNREAD,
STATUS_ON_SIM_SENT, STATUS_ON_SIM_UNSENT) |
| pdu
| the raw PDU to store |
public
List
getAllMessagesFromSimEf()
Retrieves all messages currently stored on SIM.
Returns
- list of SmsRawData of all sms on SIM
public
void
sendRawPdu(byte[] smsc, byte[] pdu, Intent sentIntent, Intent deliveryIntent, Intent failedIntent)
Send a Raw PDU SMS
Parameters
| smsc
| the SMSC to send the message through, or NULL for the
defatult SMSC |
| pdu
| the raw PDU to send |
| sentIntent
| if not NULL this Intent is
broadcast when the message is sucessfully sent |
| deliveryIntent
| if not NULL this Intent is
broadcast when the message is delivered to the recipient. The
raw pdu of the status report is in the extended data ("pdu"). |
| failedIntent
| if not NULL this Intent is
broadcast to indicate send failure. Error cause is in the
extended data ("error"), and will be either
ERROR_GENERIC_FAILURE or
ERROR_RADIO_OFF
ERROR_NULL_PDU.
|
public
boolean
updateMessageOnSimEf(int index, int status, byte[] pdu)
Update the specified message on the SIM.
Parameters
| index
| record index of message to update |
| status
| new message status (STATUS_ON_SIM_READ,
STATUS_ON_SIM_UNREAD, STATUS_ON_SIM_SENT,
STATUS_ON_SIM_UNSENT, STATUS_ON_SIM_FREE) |
| pdu
| the raw PDU to store |