* RIL_UNSOL_MODEM_RESTART,
* RIL_REQUEST_SEND_DEVICE_STATE,
* RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER,
- * RIL_REQUEST_SET_SIM_CARD_POWER
+ * RIL_REQUEST_SET_SIM_CARD_POWER,
+ * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION,
+ * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION
* The new parameters for RIL_REQUEST_SETUP_DATA_CALL,
* Updated data structures: RIL_DataProfileInfo_v15, RIL_InitialAttachApn_v15
* New data structure RIL_DataRegistrationStateResponse,
* used in RIL_REQUEST_DATA_REGISTRATION_STATE and
* RIL_REQUEST_VOICE_REGISTRATION_STATE respectively.
* New data structure RIL_OpenChannelParams.
+ * RIL_REQUEST_START_NETWORK_SCAN
+ * RIL_REQUEST_STOP_NETWORK_SCAN
+ * RIL_UNSOL_NETWORK_SCAN_RESULT
*/
#define RIL_VERSION 12
#define LAST_IMPRECISE_RIL_VERSION 12 // Better self-documented name
#define MAX_DEBUG_SOCKET_NAME_LENGTH 12
#define MAX_QEMU_PIPE_NAME_LENGTH 11
#define MAX_UUID_LENGTH 64
+#define MAX_BANDS 8
+#define MAX_CHANNELS 32
+#define MAX_RADIO_ACCESS_NETWORKS 8
-struct ril_event;
typedef void * RIL_Token;
typedef enum {
typedef enum {
RADIO_STATE_OFF = 0, /* Radio explictly powered off (eg CFUN=0) */
RADIO_STATE_UNAVAILABLE = 1, /* Radio unavailable (eg, resetting or not booted) */
- /* States 2-9 below are deprecated. Just leaving them here for backward compatibility. */
- RADIO_STATE_SIM_NOT_READY = 2, /* Radio is on, but the SIM interface is not ready */
- RADIO_STATE_SIM_LOCKED_OR_ABSENT = 3, /* SIM PIN locked, PUK required, network
- personalization locked, or SIM absent */
- RADIO_STATE_SIM_READY = 4, /* Radio is on and SIM interface is available */
- RADIO_STATE_RUIM_NOT_READY = 5, /* Radio is on, but the RUIM interface is not ready */
- RADIO_STATE_RUIM_READY = 6, /* Radio is on and the RUIM interface is available */
- RADIO_STATE_RUIM_LOCKED_OR_ABSENT = 7, /* RUIM PIN locked, PUK required, network
- personalization locked, or RUIM absent */
- RADIO_STATE_NV_NOT_READY = 8, /* Radio is on, but the NV interface is not available */
- RADIO_STATE_NV_READY = 9, /* Radio is on and the NV interface is available */
RADIO_STATE_ON = 10 /* Radio is on */
} RIL_RadioState;
sent an invalid value */
} RIL_Data_Call_Response_v11;
-#define RIL_Data_Call_Response_Type RIL_Data_Call_Response_v9
-
typedef enum {
RADIO_TECH_3GPP = 1, /* 3GPP Technologies - GSM, WCDMA */
RADIO_TECH_3GPP2 = 2 /* 3GPP2 Technologies - CDMA */
*/
} RIL_CarrierRestrictions;
+typedef struct {
+ char * mcc; /* MCC of the Carrier. */
+ char * mnc ; /* MNC of the Carrier. */
+ uint8_t * carrierKey; /* Public Key from the Carrier used to encrypt the
+ * IMSI/IMPI.
+ */
+ int32_t carrierKeyLength; /* Length of the Public Key. */
+ char * keyIdentifier; /* The keyIdentifier Attribute value pair that helps
+ * a server locate the private key to decrypt the
+ * permanent identity.
+ */
+ int64_t expirationTime; /* Date-Time (in UTC) when the key will expire. */
+
+} RIL_CarrierInfoForImsiEncryption;
+
/* See RIL_REQUEST_LAST_CALL_FAIL_CAUSE */
typedef enum {
CALL_FAIL_UNOBTAINABLE_NUMBER = 1,
typedef struct {
int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */
- int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */
+ int mnc; /* 2 or 3-digit Mobile Network Code, 0..999;
+ the most significant nibble encodes the number of digits - {2, 3, 0 (unset)};
+ INT_MAX if unknown */
int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */
int cid; /* 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown */
} RIL_CellIdentityGsm;
typedef struct {
int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */
- int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */
+ int mnc; /* 2 or 3-digit Mobile Network Code, 0..999;
+ the most significant nibble encodes the number of digits - {2, 3, 0 (unset)};
+ INT_MAX if unknown */
int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */
int cid; /* 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown */
- int arfcn; /* 16-bit GSM Absolute RF channel number, INT_MAX if unknown */
- uint8_t bsic;/* 6-bit Base Station Identity Code, 0xFF if unknown */
+ int arfcn; /* 16-bit GSM Absolute RF channel number; this value must be reported */
+ uint8_t bsic; /* 6-bit Base Station Identity Code; 0xFF if unknown */
} RIL_CellIdentityGsm_v12;
typedef struct {
int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */
- int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */
+ int mnc; /* 2 or 3-digit Mobile Network Code, 0..999;
+ the most significant nibble encodes the number of digits - {2, 3, 0 (unset)};
+ INT_MAX if unknown */
int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */
int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */
int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511, INT_MAX if unknown */
typedef struct {
int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */
- int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */
+ int mnc; /* 2 or 3-digit Mobile Network Code, 0..999;
+ the most significant nibble encodes the number of digits - {2, 3, 0 (unset)};
+ INT_MAX if unknown */
int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */
int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */
- int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511, INT_MAX if unknown */
- int uarfcn; /* 16-bit UMTS Absolute RF Channel Number, INT_MAX if unknown */
+ int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511; this value must be reported */
+ int uarfcn; /* 16-bit UMTS Absolute RF Channel Number; this value must be reported */
} RIL_CellIdentityWcdma_v12;
typedef struct {
typedef struct {
int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */
- int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */
+ int mnc; /* 2 or 3-digit Mobile Network Code, 0..999;
+ the most significant nibble encodes the number of digits - {2, 3, 0 (unset)};
+ INT_MAX if unknown */
int ci; /* 28-bit Cell Identity described in TS ???, INT_MAX if unknown */
int pci; /* physical cell id 0..503, INT_MAX if unknown */
int tac; /* 16-bit tracking area code, INT_MAX if unknown */
typedef struct {
int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */
- int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */
+ int mnc; /* 2 or 3-digit Mobile Network Code, 0..999;
+ the most significant nibble encodes the number of digits - {2, 3, 0 (unset)};
+ INT_MAX if unknown */
int ci; /* 28-bit Cell Identity described in TS ???, INT_MAX if unknown */
- int pci; /* physical cell id 0..503, INT_MAX if unknown */
+ int pci; /* physical cell id 0..503; this value must be reported */
int tac; /* 16-bit tracking area code, INT_MAX if unknown */
- int earfcn; /* 18-bit LTE Absolute RC Channel Number, INT_MAX if unknown */
+ int earfcn; /* 18-bit LTE Absolute RF Channel Number; this value must be reported */
} RIL_CellIdentityLte_v12;
typedef struct {
int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */
- int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */
+ int mnc; /* 2 or 3-digit Mobile Network Code, 0..999;
+ the most significant nibble encodes the number of digits - {2, 3, 0 (unset)};
+ INT_MAX if unknown */
int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */
int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */
int cpid; /* 8-bit Cell Parameters ID described in TS 25.331, 0..127, INT_MAX if unknown */
P2Constants:NO_P2 if to be ignored */
} RIL_OpenChannelParams;
+typedef enum {
+ RIL_ONE_SHOT = 0x01, // Performs the scan only once
+ RIL_PERIODIC = 0x02 // Performs the scan periodically until cancelled
+} RIL_ScanType;
+
+typedef enum {
+ GERAN = 0x01, // GSM EDGE Radio Access Network
+ UTRAN = 0x02, // Universal Terrestrial Radio Access Network
+ EUTRAN = 0x03, // Evolved Universal Terrestrial Radio Access Network
+} RIL_RadioAccessNetworks;
+
+typedef enum {
+ GERAN_BAND_T380 = 1,
+ GERAN_BAND_T410 = 2,
+ GERAN_BAND_450 = 3,
+ GERAN_BAND_480 = 4,
+ GERAN_BAND_710 = 5,
+ GERAN_BAND_750 = 6,
+ GERAN_BAND_T810 = 7,
+ GERAN_BAND_850 = 8,
+ GERAN_BAND_P900 = 9,
+ GERAN_BAND_E900 = 10,
+ GERAN_BAND_R900 = 11,
+ GERAN_BAND_DCS1800 = 12,
+ GERAN_BAND_PCS1900 = 13,
+ GERAN_BAND_ER900 = 14,
+} RIL_GeranBands;
+
+typedef enum {
+ UTRAN_BAND_1 = 1,
+ UTRAN_BAND_2 = 2,
+ UTRAN_BAND_3 = 3,
+ UTRAN_BAND_4 = 4,
+ UTRAN_BAND_5 = 5,
+ UTRAN_BAND_6 = 6,
+ UTRAN_BAND_7 = 7,
+ UTRAN_BAND_8 = 8,
+ UTRAN_BAND_9 = 9,
+ UTRAN_BAND_10 = 10,
+ UTRAN_BAND_11 = 11,
+ UTRAN_BAND_12 = 12,
+ UTRAN_BAND_13 = 13,
+ UTRAN_BAND_14 = 14,
+ UTRAN_BAND_19 = 19,
+ UTRAN_BAND_20 = 20,
+ UTRAN_BAND_21 = 21,
+ UTRAN_BAND_22 = 22,
+ UTRAN_BAND_25 = 25,
+ UTRAN_BAND_26 = 26,
+} RIL_UtranBands;
+
+typedef enum {
+ EUTRAN_BAND_1 = 1,
+ EUTRAN_BAND_2 = 2,
+ EUTRAN_BAND_3 = 3,
+ EUTRAN_BAND_4 = 4,
+ EUTRAN_BAND_5 = 5,
+ EUTRAN_BAND_6 = 6,
+ EUTRAN_BAND_7 = 7,
+ EUTRAN_BAND_8 = 8,
+ EUTRAN_BAND_9 = 9,
+ EUTRAN_BAND_10 = 10,
+ EUTRAN_BAND_11 = 11,
+ EUTRAN_BAND_12 = 12,
+ EUTRAN_BAND_13 = 13,
+ EUTRAN_BAND_14 = 14,
+ EUTRAN_BAND_17 = 17,
+ EUTRAN_BAND_18 = 18,
+ EUTRAN_BAND_19 = 19,
+ EUTRAN_BAND_20 = 20,
+ EUTRAN_BAND_21 = 21,
+ EUTRAN_BAND_22 = 22,
+ EUTRAN_BAND_23 = 23,
+ EUTRAN_BAND_24 = 24,
+ EUTRAN_BAND_25 = 25,
+ EUTRAN_BAND_26 = 26,
+ EUTRAN_BAND_27 = 27,
+ EUTRAN_BAND_28 = 28,
+ EUTRAN_BAND_30 = 30,
+ EUTRAN_BAND_31 = 31,
+ EUTRAN_BAND_33 = 33,
+ EUTRAN_BAND_34 = 34,
+ EUTRAN_BAND_35 = 35,
+ EUTRAN_BAND_36 = 36,
+ EUTRAN_BAND_37 = 37,
+ EUTRAN_BAND_38 = 38,
+ EUTRAN_BAND_39 = 39,
+ EUTRAN_BAND_40 = 40,
+ EUTRAN_BAND_41 = 41,
+ EUTRAN_BAND_42 = 42,
+ EUTRAN_BAND_43 = 43,
+ EUTRAN_BAND_44 = 44,
+ EUTRAN_BAND_45 = 45,
+ EUTRAN_BAND_46 = 46,
+ EUTRAN_BAND_47 = 47,
+ EUTRAN_BAND_48 = 48,
+ EUTRAN_BAND_65 = 65,
+ EUTRAN_BAND_66 = 66,
+ EUTRAN_BAND_68 = 68,
+ EUTRAN_BAND_70 = 70,
+} RIL_EutranBands;
+
+typedef struct {
+ RIL_RadioAccessNetworks radio_access_network; // The type of network to scan.
+ uint32_t bands_length; // Length of bands
+ union {
+ RIL_GeranBands geran_bands[MAX_BANDS];
+ RIL_UtranBands utran_bands[MAX_BANDS];
+ RIL_EutranBands eutran_bands[MAX_BANDS];
+ } bands;
+ uint32_t channels_length; // Length of channels
+ uint32_t channels[MAX_CHANNELS]; // Frequency channels to scan
+} RIL_RadioAccessSpecifier;
+
+typedef struct {
+ RIL_ScanType type; // Type of the scan
+ int32_t interval; // Time interval in seconds
+ // between periodic scans, only
+ // valid when type=RIL_PERIODIC
+ uint32_t specifiers_length; // Length of specifiers
+ RIL_RadioAccessSpecifier specifiers[MAX_RADIO_ACCESS_NETWORKS]; // Radio access networks
+ // with bands/channels.
+} RIL_NetworkScanRequest;
+
+typedef enum {
+ PARTIAL = 0x01, // The result contains a part of the scan results
+ COMPLETE = 0x02, // The result contains the last part of the scan results
+} RIL_ScanStatus;
+
+typedef struct {
+ RIL_ScanStatus status; // The status of the scan
+ uint32_t network_infos_length; // Total length of RIL_CellInfo
+ RIL_CellInfo_v12* network_infos; // List of network information
+ RIL_Errno error;
+} RIL_NetworkScanResult;
+
/**
* RIL_REQUEST_GET_SIM_STATUS
*
* "response" is const RIL_CardStatus_v6 *
*
* Valid errors:
- * Must never fail
+ *
+ * SUCCESS
+ * RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_GET_SIM_STATUS 1
* SUCCESS
* RADIO_NOT_AVAILABLE (radio resetting)
* PASSWORD_INCORRECT
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_ARGUMENTS
+ * INVALID_SIM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ENTER_SIM_PIN 2
* RADIO_NOT_AVAILABLE (radio resetting)
* PASSWORD_INCORRECT
* (PUK is invalid)
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_ARGUMENTS
+ * INVALID_SIM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ENTER_SIM_PUK 3
* SUCCESS
* RADIO_NOT_AVAILABLE (radio resetting)
* PASSWORD_INCORRECT
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_ARGUMENTS
+ * INVALID_SIM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ENTER_SIM_PIN2 4
* RADIO_NOT_AVAILABLE (radio resetting)
* PASSWORD_INCORRECT
* (PUK2 is invalid)
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_ARGUMENTS
+ * INVALID_SIM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ENTER_SIM_PUK2 5
* RADIO_NOT_AVAILABLE (radio resetting)
* PASSWORD_INCORRECT
* (old PIN is invalid)
- *
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_ARGUMENTS
+ * INVALID_SIM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_CHANGE_SIM_PIN 6
* RADIO_NOT_AVAILABLE (radio resetting)
* PASSWORD_INCORRECT
* (old PIN2 is invalid)
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_ARGUMENTS
+ * INVALID_SIM_STATE
+ * REQUEST_NOT_SUPPORTED
*
*/
* SUCCESS
* RADIO_NOT_AVAILABLE (radio resetting)
* PASSWORD_INCORRECT
+ * SIM_ABSENT
* (code is invalid)
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION 8
* RADIO_NOT_AVAILABLE (radio resetting)
* NO_MEMORY
* (request will be made again in a few hundred msec)
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_GET_CURRENT_CALLS 9
* NO_NETWORK_FOUND
* INVALID_CALL_ID
* DEVICE_IN_USE
- * MODE_NOT_SUPPORTED
+ * OPERATION_NOT_ALLOWED
* ABORTED
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_DIAL 10
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE (radio resetting)
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_SIM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_GET_IMSI 11
* NO_MEMORY
* INVALID_CALL_ID
* INVALID_ARGUMENTS
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_HANGUP 12
* NO_RESOURCES
* OPERATION_NOT_ALLOWED
* INVALID_ARGUMENTS
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND 13
* OPERATION_NOT_ALLOWED
* INVALID_ARGUMENTS
* NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND 14
* INVALID_ARGUMENTS
* INVALID_CALL_ID
* OPERATION_NOT_ALLOWED
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE 15
* INVALID_CALL_ID
* INVALID_ARGUMENTS
* OPERATION_NOT_ALLOWED
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_CONFERENCE 16
* INVALID_CALL_ID
* OPERATION_NOT_ALLOWED
* INVALID_ARGUMENTS
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_UDUB 17
* SUCCESS
* RADIO_NOT_AVAILABLE
* NO_MEMORY
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE
*/
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SIGNAL_STRENGTH 19
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_VOICE_REGISTRATION_STATE 20
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_DATA_REGISTRATION_STATE 21
* INTERNAL_ERR
* SYSTEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_OPERATOR 22
* OPERATION_NOT_ALLOWED
* INVALID_MODEM_STATE
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_RADIO_POWER 23
* MODEM_ERR
* INTERNAL_ERR
* INVALID_CALL_ID
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_DTMF_STOP, RIL_REQUEST_DTMF_START
*
* INVALID_SMSC_ADDRESS
* MODEM_ERR
* NETWORK_ERR
+ * OPERATION_NOT_ALLOWED
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
* MODE_NOT_SUPPORTED
+ * SIM_ABSENT
*
* FIXME how do we specify TP-Message-Reference if we need to resend?
*/
* NETWORK_ERR
* ENCODING_ERR
* INVALID_SMSC_ADDRESS
+ * OPERATION_NOT_ALLOWED
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
* MODE_NOT_SUPPORTED
+ * SIM_ABSENT
*
*/
#define RIL_REQUEST_SEND_SMS_EXPECT_MORE 26
*
* Other errors could include:
* RADIO_NOT_AVAILABLE, OP_NOT_ALLOWED_BEFORE_REG_TO_NW,
- * OP_NOT_ALLOWED_DURING_VOICE_CALL and REQUEST_NOT_SUPPORTED,
- * INVALID_ARGUMENTS
+ * OP_NOT_ALLOWED_DURING_VOICE_CALL, REQUEST_NOT_SUPPORTED,
+ * INVALID_ARGUMENTS, INTERNAL_ERR, NO_MEMORY, NO_RESOURCES,
+ * CANCELLED and SIM_ABSENT
*
* See also: RIL_REQUEST_DEACTIVATE_DATA_CALL
*/
* RADIO_NOT_AVAILABLE
* SIM_PIN2
* SIM_PUK2
+ * INVALID_SIM_STATE
+ * SIM_ERR
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SIM_IO 28
* ABORTED
* SYSTEM_ERR
* INVALID_STATE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_CANCEL_USSD, RIL_UNSOL_ON_USSD
*/
* INTERNAL_ERR
* NO_MEMORY
* INVALID_STATE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_CANCEL_USSD 30
* INTERNAL_ERR
* FDN_CHECK_FAILURE
* SYSTEM_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_GET_CLIR 31
* SS_MODIFIED_TO_SS
* INVALID_ARGUMENTS
* SYSTEM_ERR
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SET_CLIR 32
* INTERNAL_ERR
* NO_MEMORY
* FDN_CHECK_FAILURE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_QUERY_CALL_FORWARD_STATUS 33
* INTERNAL_ERR
* INVALID_STATE
* FDN_CHECK_FAILURE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SET_CALL_FORWARD 34
* NO_MEMORY
* FDN_CHECK_FAILURE
* INVALID_ARGUMENTS
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_QUERY_CALL_WAITING 35
* INTERNAL_ERR
* INVALID_STATE
* FDN_CHECK_FAILURE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SET_CALL_WAITING 36
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SMS_ACKNOWLEDGE 37
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_GET_IMEI 38
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_GET_IMEISV 39
* MODEM_ERR
* INTERNAL_ERR
* INVALID_CALL_ID
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ANSWER 40
* INVALID_STATE
* INVALID_ARGUMENTS
* REQUEST_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * SIM_ABSENT
*
* See also: RIL_REQUEST_SETUP_DATA_CALL
*/
* SYSTEM_ERR
* MODEM_ERR
* FDN_CHECK_FAILURE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_QUERY_FACILITY_LOCK 42
* MODEM_ERR
* INVALID_STATE
* FDN_CHECK_FAILURE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_SET_FACILITY_LOCK 43
* INTERNAL_ERR
* SYSTEM_ERR
* FDN_CHECK_FAILURE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_CHANGE_BARRING_PASSWORD 44
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE 45
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
* Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and
* no retries needed, such as illegal SIM or ME.
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
* Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and
* no retries needed, such as illegal SIM or ME.
* REQUEST_NOT_SUPPORTED
* CANCELLED
* OPERATION_NOT_ALLOWED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_QUERY_AVAILABLE_NETWORKS 48
* MODEM_ERR
* INTERNAL_ERR
* INVALID_CALL_ID
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_STOP
*/
* MODEM_ERR
* INTERNAL_ERR
* INVALID_CALL_ID
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_START
*/
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_BASEBAND_VERSION 51
* INVALID_CALL_ID
* INVALID_STATE
* OPERATION_NOT_ALLOWED
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SEPARATE_CONNECTION 52
* INVALID_ARGUMENTS
* NO_MEMORY
* REQUEST_RATE_LIMITED
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SET_MUTE 53
* SS_MODIFIED_TO_SS
* NO_MEMORY
* REQUEST_RATE_LIMITED
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_GET_MUTE 54
* MODEM_ERR
* INTERNAL_ERR
* FDN_CHECK_FAILURE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_QUERY_CLIP 55
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_LAST_CALL_FAIL_CAUSE
*
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE (radio resetting)
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*
* See also: RIL_UNSOL_DATA_CALL_LIST_CHANGED
*/
* INTERNAL_ERR
* SYSTEM_ERR
* INVALID_ARGUMENTS
+ * NO_RESOURCES
+ * CANCELLED
* REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SCREEN_STATE 61
* SYSTEM_ERR
* MODEM_ERR
* INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_UNSOL_SUPP_SVC_NOTIFICATION.
*/
* NO_MEMORY
* NO_RESOURCES
* INVALID_MODEM_STATE
- * MODE_NOT_SUPPORTED
+ * OPERATION_NOT_ALLOWED
* INVALID_SMSC_ADDRESS
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*
*/
#define RIL_REQUEST_WRITE_SMS_TO_SIM 63
* SYSTEM_ERR
* MODEM_ERR
* NO_SUCH_ENTRY
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*
*/
#define RIL_REQUEST_DELETE_SMS_ON_SIM 64
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
* See also: RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE
*/
* SYSTEM_ERR
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
* See also: RIL_REQUEST_SET_BAND_MODE
*/
* Valid errors:
* RIL_E_SUCCESS
* RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_STK_GET_PROFILE 67
* Valid errors:
* RIL_E_SUCCESS
* RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
- */
-#define RIL_REQUEST_STK_SET_PROFILE 68
-
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ */
+#define RIL_REQUEST_STK_SET_PROFILE 68
+
/**
* RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND
*
* RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
* SIM_BUSY
* OPERATION_NOT_ALLOWED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_ARGUMENTS
+ * MODEM_ERR
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND 69
* RIL_E_SUCCESS
* RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
* RIL_E_OPERATION_NOT_ALLOWED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE 70
* RIL_E_SUCCESS
* RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
* RIL_E_OPERATION_NOT_ALLOWED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM 71
* INVALID_CALL_ID
* INVALID_STATE
* OPERATION_NOT_ALLOWED
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_EXPLICIT_CALL_TRANSFER 72
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE 73
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
* See also: RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE
*/
* MODEM_ERR
* NO_NETWORK_FOUND
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_GET_NEIGHBORING_CELL_IDS 75
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
* See also: RIL_REQUEST_SCREEN_STATE, RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED
*/
* RADIO_NOT_AVAILABLE
* SIM_ABSENT
* SUBSCRIPTION_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE
*/
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
* OPERATION_NOT_ALLOWED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE 78
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE 79
* INVALID_ARGUMENTS
* MODEM_ERR
* INTERNAL_ERR
- * NO_MEMOR
+ * NO_MEMORY
* INVALID_ARGUMENTS
* MODEM_ERR
* INTERNAL_ERR
- * NO_MEMORYY
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SET_TTY_MODE 80
* INTERNAL_ERR
* NO_MEMORY
* INVALID_ARGUMENTS
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_QUERY_TTY_MODE 81
* INTERNAL_ERR
* NO_MEMORY
* INVALID_CALL_ID
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE 82
* INTERNAL_ERR
* NO_MEMORY
* INVALID_ARGUMENTS
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE 83
* INTERNAL_ERR
* INVALID_CALL_ID
* INVALID_STATE
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_CDMA_FLASH 84
* MODEM_ERR
* INTERNAL_ERR
* INVALID_CALL_ID
+ * NO_RESOURCES
+ * CANCELLED
+ * OPERATION_NOT_ALLOWED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_CDMA_BURST_DTMF 85
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY 86
* NETWORK_ERR
* ENCODING_ERR
* INVALID_SMSC_ADDRESS
+ * OPERATION_NOT_ALLOWED
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
* MODE_NOT_SUPPORTED
+ * SIM_ABSENT
*
*/
#define RIL_REQUEST_CDMA_SEND_SMS 87
* SYSTEM_ERR
* MODEM_ERR
* INVALID_STATE
- * MODE_NOT_SUPPORTED
+ * OPERATION_NOT_ALLOWED
* NETWORK_NOT_READY
* INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE 88
* NO_RESOURCES
* MODEM_ERR
* SYSTEM_ERR
- *
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG 89
* REQUEST_RATE_LIMITED
* MODEM_ERR
* SYSTEM_ERR
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG 90
* NO_MEMORY
* SYSTEM_ERR
* REQUEST_RATE_LIMITED
- * MODEM_ERR
+* MODEM_ERR
+* INTERNAL_ERR
+* NO_RESOURCES
+* CANCELLED
+* INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION 91
* NO_RESOURCES
* MODEM_ERR
* SYSTEM_ERR
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG 92
* REQUEST_RATE_LIMITED
* MODEM_ERR
* SYSTEM_ERR
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG 93
* SYSTEM_ERR
* REQUEST_RATE_LIMITED
* MODEM_ERR
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION 94
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
*
*/
* NO_MEMORY
* NO_RESOURCES
* INVALID_MODEM_STATE
- * MODE_NOT_SUPPORTED
+ * OPERATION_NOT_ALLOWED
* INVALID_SMSC_ADDRESS
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*
*/
#define RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM 96
* SYSTEM_ERR
* MODEM_ERR
* NO_SUCH_ENTRY
- *
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*/
#define RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM 97
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_DEVICE_IDENTITY 98
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE 99
* INVALID_ARGUMENTS
* INVALID_MODEM_STATE
* NOT_PROVISIONED
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*
*/
#define RIL_REQUEST_GET_SMSC_ADDRESS 100
* REQUEST_RATE_LIMITED
* MODEM_ERR
* NO_RESOURCES
- *
+ * INTERNAL_ERR
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*/
#define RIL_REQUEST_SET_SMSC_ADDRESS 101
* SYSTEM_ERR
* REQUEST_RATE_LIMITED
* MODEM_ERR
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_REPORT_SMS_MEMORY_STATUS 102
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING 103
* SUCCESS
* RADIO_NOT_AVAILABLE
* SUBSCRIPTION_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
* See also: RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE
*/
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ISIM_AUTHENTICATION 105
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU 106
* RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
* SIM_BUSY
* OPERATION_NOT_ALLOWED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*/
#define RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS 107
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_VOICE_RADIO_TECH 108
* MODEM_ERR
* NO_NETWORK_FOUND
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_GET_CELL_INFO_LIST 109
* SYSTEM_ERR
* INVALID_ARGUMENTS
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE 110
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_SET_INITIAL_ATTACH_APN 111
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_IMS_REGISTRATION_STATE 112
* NETWORK_ERR
* ENCODING_ERR
* INVALID_SMSC_ADDRESS
- * MODE_NOT_SUPPORTED
+ * OPERATION_NOT_ALLOWED
+ * INTERNAL_ERR
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*
*/
#define RIL_REQUEST_IMS_SEND_SMS 113
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC 114
* RADIO_NOT_AVAILABLE
* MISSING_RESOURCE
* NO_SUCH_ELEMENT
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * SIM_ERR
+ * INVALID_SIM_STATE
+ * MISSING_RESOURCE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SIM_OPEN_CHANNEL 115
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SIM_CLOSE_CHANNEL 116
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL 117
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_NV_READ_ITEM 118
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_NV_WRITE_ITEM 119
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_NV_WRITE_CDMA_PRL 120
* Valid errors:
* SUCCESS
* RADIO_NOT_AVAILABLE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_NV_RESET_CONFIG 121
* INVALID_ARGUMENTS
* MODEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_SET_UICC_SUBSCRIPTION 122
* DEVICE_IN_USE
* INVALID_MODEM_STATE
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*
*/
#define RIL_REQUEST_ALLOW_DATA 123
* "data" is NULL
*
* "response" is an array of RIL_HardwareConfig.
+ *
+ * Valid errors:
+ * RADIO_NOT_AVAILABLE
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_GET_HARDWARE_CONFIG 124
* int sw1; Status bytes per 3GPP TS 31.102 section 7.3
* int sw2;
* char *simResponse; Response in Base64 format, see 3GPP TS 31.102 7.1.2
+ *
+ * Valid errors:
+ * RADIO_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * INVALID_MODEM_STATE
+ * INVALID_ARGUMENTS
+ * SIM_ERR
+ * REQUEST_NOT_SUPPORTED
*/
#define RIL_REQUEST_SIM_AUTHENTICATION 125
* SUCCESS
* RADIO_NOT_AVAILABLE
* REQUEST_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
*
* See also: RIL_UNSOL_DC_RT_INFO_CHANGED
*/
* SUCCESS
* RADIO_NOT_AVAILABLE (radio resetting)
* SUBSCRIPTION_NOT_AVAILABLE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*/
#define RIL_REQUEST_SET_DATA_PROFILE 128
* INTERNAL_ERR
* SYSTEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SHUTDOWN 129
* OPERATION_NOT_ALLOWED
* INVALID_STATE
* REQUEST_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_GET_RADIO_CAPABILITY 130
* MODEM_ERR
* INVALID_STATE
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SET_RADIO_CAPABILITY 131
* LCE_NOT_SUPPORTED
* INTERNAL_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * SIM_ABSENT
*/
#define RIL_REQUEST_START_LCE 132
* SUCCESS
* RADIO_NOT_AVAILABLE
* LCE_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*/
#define RIL_REQUEST_STOP_LCE 133
* SUCCESS
* RADIO_NOT_AVAILABLE
* LCE_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ * SIM_ABSENT
*/
#define RIL_REQUEST_PULL_LCEDATA 134
* MODEM_ERR
* NOT_PROVISIONED
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES CANCELLED
*/
#define RIL_REQUEST_GET_ACTIVITY_INFO 135
* RIL_E_INVALID_ARGUMENTS
* RIL_E_RADIO_NOT_AVAILABLE
* RIL_E_REQUEST_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SET_CARRIER_RESTRICTIONS 136
* RIL_E_SUCCESS
* RIL_E_RADIO_NOT_AVAILABLE
* RIL_E_REQUEST_NOT_SUPPORTED
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_GET_CARRIER_RESTRICTIONS 137
* SYSTEM_ERR
* INVALID_ARGUMENTS
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SEND_DEVICE_STATE 138
* INTERNAL_ERR
* SYSTEM_ERR
* REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER 139
* REQUEST_NOT_SUPPORTED
* SIM_ABSENT
* INVALID_ARGUMENTS
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
*/
#define RIL_REQUEST_SET_SIM_CARD_POWER 140
+
+/**
+ * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION
+ *
+ * Provide Carrier specific information to the modem that will be used to
+ * encrypt the IMSI and IMPI. Sent by the framework during boot, carrier
+ * switch and everytime we receive a new certificate.
+ *
+ * "data" is the RIL_CarrierInfoForImsiEncryption * structure.
+ *
+ * "response" is NULL
+ *
+ * Valid errors:
+ * RIL_E_SUCCESS
+ * RIL_E_RADIO_NOT_AVAILABLE
+ * SIM_ABSENT
+ * RIL_E_REQUEST_NOT_SUPPORTED
+ * INVALID_ARGUMENTS
+ * MODEM_INTERNAL_FAILURE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ */
+#define RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION 141
+
+/**
+ * RIL_REQUEST_START_NETWORK_SCAN
+ *
+ * Starts a new network scan
+ *
+ * Request to start a network scan with specified radio access networks with frequency bands and/or
+ * channels.
+ *
+ * "data" is a const RIL_NetworkScanRequest *.
+ * "response" is NULL
+ *
+ * Valid errors:
+ * SUCCESS
+ * RADIO_NOT_AVAILABLE
+ * OPERATION_NOT_ALLOWED
+ * DEVICE_IN_USE
+ * INTERNAL_ERR
+ * NO_MEMORY
+ * MODEM_ERR
+ * INVALID_ARGUMENTS
+ * REQUEST_NOT_SUPPORTED
+ * NO_RESOURCES
+ * CANCELLED
+ *
+ */
+#define RIL_REQUEST_START_NETWORK_SCAN 142
+
+/**
+ * RIL_REQUEST_STOP_NETWORK_SCAN
+ *
+ * Stops an ongoing network scan
+ *
+ * Request to stop the ongoing network scan. Since the modem can only perform one scan at a time,
+ * there is no parameter for this request.
+ *
+ * "data" is NULL
+ * "response" is NULL
+ *
+ * Valid errors:
+ * SUCCESS
+ * INTERNAL_ERR
+ * MODEM_ERR
+ * NO_MEMORY
+ * NO_RESOURCES
+ * CANCELLED
+ * REQUEST_NOT_SUPPORTED
+ *
+ */
+#define RIL_REQUEST_STOP_NETWORK_SCAN 143
+
+/**
+ * RIL_REQUEST_START_KEEPALIVE
+ *
+ * Start a keepalive session
+ *
+ * Request that the modem begin sending keepalive packets on a particular
+ * data call, with a specified source, destination, and format.
+ *
+ * "data" is a const RIL_RequestKeepalive
+ * "response" is RIL_KeepaliveStatus with a valid "handle"
+ *
+ * Valid errors:
+ * SUCCESS
+ * NO_RESOURCES
+ * INVALID_ARGUMENTS
+ *
+ */
+#define RIL_REQUEST_START_KEEPALIVE 144
+
+/**
+ * RIL_REQUEST_STOP_KEEPALIVE
+ *
+ * Stops an ongoing keepalive session
+ *
+ * Requests that a keepalive session with the given handle be stopped.
+ * there is no parameter for this request.
+ *
+ * "data" is an integer handle
+ * "response" is NULL
+ *
+ * Valid errors:
+ * SUCCESS
+ * INVALID_ARGUMENTS
+ *
+ */
+#define RIL_REQUEST_STOP_KEEPALIVE 145
+
/***********************************************************************/
#define RIL_OEM_REQUEST_BASE 10000
*/
#define RIL_UNSOL_MODEM_RESTART 1047
+/**
+ * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION
+ *
+ * Called when the modem needs Carrier specific information that will
+ * be used to encrypt IMSI and IMPI.
+ *
+ * "data" is NULL
+ *
+ */
+#define RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION 1048
+
+/**
+ * RIL_UNSOL_NETWORK_SCAN_RESULT
+ *
+ * Returns incremental result for the network scan which is started by
+ * RIL_REQUEST_START_NETWORK_SCAN, sent to report results, status, or errors.
+ *
+ * "data" is NULL
+ * "response" is a const RIL_NetworkScanResult *
+ */
+#define RIL_UNSOL_NETWORK_SCAN_RESULT 1049
+
+/**
+ * RIL_UNSOL_KEEPALIVE_STATUS
+ *
+ * "data" is NULL
+ * "response" is a const RIL_KeepaliveStatus *
+ */
+#define RIL_UNSOL_KEEPALIVE_STATUS 1050
+
/***********************************************************************/
loosely defined in LTE Layer 3 spec 24.008 */
} RIL_PCO_Data;
+typedef enum {
+ NATT_IPV4 = 0, /* Keepalive specified by RFC 3948 Sec. 2.3 using IPv4 */
+ NATT_IPV6 = 1 /* Keepalive specified by RFC 3948 Sec. 2.3 using IPv6 */
+} RIL_KeepaliveType;
+
+#define MAX_INADDR_LEN 16
+typedef struct {
+ RIL_KeepaliveType type; /* Type of keepalive packet */
+ char sourceAddress[MAX_INADDR_LEN]; /* Source address in network-byte order */
+ int sourcePort; /* Source port if applicable, or 0x7FFFFFFF;
+ the maximum value is 65535 */
+ char destinationAddress[MAX_INADDR_LEN]; /* Destination address in network-byte order */
+ int destinationPort; /* Destination port if applicable or 0x7FFFFFFF;
+ the maximum value is 65535 */
+ int maxKeepaliveIntervalMillis; /* Maximum milliseconds between two packets */
+ int cid; /* Context ID, uniquely identifies this call */
+} RIL_KeepaliveRequest;
+
+typedef enum {
+ KEEPALIVE_ACTIVE, /* Keepalive session is active */
+ KEEPALIVE_INACTIVE, /* Keepalive session is inactive */
+ KEEPALIVE_PENDING /* Keepalive session status not available */
+} RIL_KeepaliveStatusCode;
+
+typedef struct {
+ uint32_t sessionHandle;
+ RIL_KeepaliveStatusCode code;
+} RIL_KeepaliveStatus;
+
#ifdef RIL_SHLIB
struct RIL_Env {
/**