1 /*
2  * Copyright (C) 2006 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.internal.telephony;
18 
19 import android.telephony.TelephonyManager;
20 
21 /**
22  * {@hide}
23  */
24 public interface RILConstants {
25     // From the top of ril.cpp
26     int RIL_ERRNO_INVALID_RESPONSE = -1;
27 
28     // from RIL_Errno
29     int SUCCESS = 0;
30     int RADIO_NOT_AVAILABLE = 1;              /* If radio did not start or is resetting */
31     int GENERIC_FAILURE = 2;
32     int PASSWORD_INCORRECT = 3;               /* for PIN/PIN2 methods only! */
33     int SIM_PIN2 = 4;                         /* Operation requires SIM PIN2 to be entered */
34     int SIM_PUK2 = 5;                         /* Operation requires SIM PIN2 to be entered */
35     int REQUEST_NOT_SUPPORTED = 6;
36     int REQUEST_CANCELLED = 7;
37     int OP_NOT_ALLOWED_DURING_VOICE_CALL = 8; /* data operation is not allowed during voice call in
38                                                  class C */
39     int OP_NOT_ALLOWED_BEFORE_REG_NW = 9;     /* request is not allowed before device registers to
40                                                  network */
41     int SMS_SEND_FAIL_RETRY = 10;             /* send sms fail and need retry */
42     int SIM_ABSENT = 11;                      /* ICC card is absent */
43     int SUBSCRIPTION_NOT_AVAILABLE = 12;      /* fail to find CDMA subscription from specified
44                                                  location */
45     int MODE_NOT_SUPPORTED = 13;              /* HW does not support preferred network type */
46     int FDN_CHECK_FAILURE = 14;               /* send operation barred error when FDN is enabled */
47     int ILLEGAL_SIM_OR_ME = 15;               /* network selection failure due
48                                                  to wrong SIM/ME and no
49                                                  retries needed */
50     int MISSING_RESOURCE = 16;                /* no logical channel available */
51     int NO_SUCH_ELEMENT = 17;                 /* application not found on SIM */
52     int DIAL_MODIFIED_TO_USSD = 18;           /* DIAL request modified to USSD */
53     int DIAL_MODIFIED_TO_SS = 19;             /* DIAL request modified to SS */
54     int DIAL_MODIFIED_TO_DIAL = 20;           /* DIAL request modified to DIAL with different data*/
55     int USSD_MODIFIED_TO_DIAL = 21;           /* USSD request modified to DIAL */
56     int USSD_MODIFIED_TO_SS = 22;             /* USSD request modified to SS */
57     int USSD_MODIFIED_TO_USSD = 23;           /* USSD request modified to different USSD request */
58     int SS_MODIFIED_TO_DIAL = 24;             /* SS request modified to DIAL */
59     int SS_MODIFIED_TO_USSD = 25;             /* SS request modified to USSD */
60     int SUBSCRIPTION_NOT_SUPPORTED = 26;      /* Subscription not supported */
61     int SS_MODIFIED_TO_SS = 27;               /* SS request modified to different SS request */
62     int SIM_ALREADY_POWERED_OFF = 29;         /* SAP: 0x03, Error card aleready powered off */
63     int SIM_ALREADY_POWERED_ON = 30;          /* SAP: 0x05, Error card already powered on */
64     int SIM_DATA_NOT_AVAILABLE = 31;          /* SAP: 0x06, Error data not available */
65     int SIM_SAP_CONNECT_FAILURE = 32;
66     int SIM_SAP_MSG_SIZE_TOO_LARGE = 33;
67     int SIM_SAP_MSG_SIZE_TOO_SMALL = 34;
68     int SIM_SAP_CONNECT_OK_CALL_ONGOING = 35;
69     int LCE_NOT_SUPPORTED = 36;               /* Link Capacity Estimation (LCE) not supported */
70     int NO_MEMORY = 37;                       /* Not sufficient memory to process the request */
71     int INTERNAL_ERR = 38;                    /* Hit unexpected vendor internal error scenario */
72     int SYSTEM_ERR = 39;                      /* Hit platform or system error */
73     int MODEM_ERR = 40;                       /* Hit unexpected modem error */
74     int INVALID_STATE = 41;                   /* Unexpected request for the current state */
75     int NO_RESOURCES = 42;                    /* Not sufficient resource to process the request */
76     int SIM_ERR = 43;                         /* Received error from SIM card */
77     int INVALID_ARGUMENTS = 44;               /* Received invalid arguments in request */
78     int INVALID_SIM_STATE = 45;               /* Can not process the request in current SIM state */
79     int INVALID_MODEM_STATE = 46;             /* Can not process the request in current Modem state */
80     int INVALID_CALL_ID = 47;                 /* Received invalid call id in request */
81     int NO_SMS_TO_ACK = 48;                   /* ACK received when there is no SMS to ack */
82     int NETWORK_ERR = 49;                     /* Received error from network */
83     int REQUEST_RATE_LIMITED = 50;            /* Operation denied due to overly-frequent requests */
84     int SIM_BUSY = 51;                        /* SIM is busy */
85     int SIM_FULL = 52;                        /* The target EF is full */
86     int NETWORK_REJECT = 53;                  /* Request is rejected by network */
87     int OPERATION_NOT_ALLOWED = 54;           /* Not allowed the request now */
88     int EMPTY_RECORD = 55;                    /* The request record is empty */
89     int INVALID_SMS_FORMAT = 56;              /* Invalid sms format */
90     int ENCODING_ERR = 57;                    /* Message not encoded properly */
91     int INVALID_SMSC_ADDRESS = 58;            /* SMSC address specified is invalid */
92     int NO_SUCH_ENTRY = 59;                   /* No such entry present to perform the request */
93     int NETWORK_NOT_READY = 60;               /* Network is not ready to perform the request */
94     int NOT_PROVISIONED = 61;                 /* Device doesnot have this value provisioned */
95     int NO_SUBSCRIPTION = 62;                 /* Device doesnot have subscription */
96     int NO_NETWORK_FOUND = 63;                /* Network cannot be found */
97     int DEVICE_IN_USE = 64;                   /* Operation cannot be performed because the device
98                                                  is currently in use */
99     int ABORTED = 65;                         /* Operation aborted */
100     int INVALID_RESPONSE = 66;                /* Invalid response sent by vendor code */
101 
102     // Below is list of OEM specific error codes which can by used by OEMs in case they don't want to
103     // reveal particular replacement for Generic failure
104     int OEM_ERROR_1 = 501;
105     int OEM_ERROR_2 = 502;
106     int OEM_ERROR_3 = 503;
107     int OEM_ERROR_4 = 504;
108     int OEM_ERROR_5 = 505;
109     int OEM_ERROR_6 = 506;
110     int OEM_ERROR_7 = 507;
111     int OEM_ERROR_8 = 508;
112     int OEM_ERROR_9 = 509;
113     int OEM_ERROR_10 = 510;
114     int OEM_ERROR_11 = 511;
115     int OEM_ERROR_12 = 512;
116     int OEM_ERROR_13 = 513;
117     int OEM_ERROR_14 = 514;
118     int OEM_ERROR_15 = 515;
119     int OEM_ERROR_16 = 516;
120     int OEM_ERROR_17 = 517;
121     int OEM_ERROR_18 = 518;
122     int OEM_ERROR_19 = 519;
123     int OEM_ERROR_20 = 520;
124     int OEM_ERROR_21 = 521;
125     int OEM_ERROR_22 = 522;
126     int OEM_ERROR_23 = 523;
127     int OEM_ERROR_24 = 524;
128     int OEM_ERROR_25 = 525;
129 
130     /* NETWORK_MODE_* See ril.h RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */
131     /** GSM, WCDMA (WCDMA preferred) */
132     int NETWORK_MODE_WCDMA_PREF = 0;
133 
134     /** GSM only */
135     int NETWORK_MODE_GSM_ONLY = 1;
136 
137     /** WCDMA only */
138     int NETWORK_MODE_WCDMA_ONLY = 2;
139 
140     /** GSM, WCDMA (auto mode, according to PRL) */
141     int NETWORK_MODE_GSM_UMTS = 3;
142 
143     /** CDMA and EvDo (auto mode, according to PRL) */
144     int NETWORK_MODE_CDMA = 4;
145 
146     /** CDMA only */
147     int NETWORK_MODE_CDMA_NO_EVDO = 5;
148 
149     /** EvDo only */
150     int NETWORK_MODE_EVDO_NO_CDMA = 6;
151 
152     /** GSM, WCDMA, CDMA, and EvDo (auto mode, according to PRL) */
153     int NETWORK_MODE_GLOBAL = 7;
154 
155     /** LTE, CDMA and EvDo */
156     int NETWORK_MODE_LTE_CDMA_EVDO = 8;
157 
158     /** LTE, GSM and WCDMA */
159     int NETWORK_MODE_LTE_GSM_WCDMA = 9;
160 
161     /** LTE, CDMA, EvDo, GSM, and WCDMA */
162     int NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA = 10;
163 
164     /** LTE only mode. */
165     int NETWORK_MODE_LTE_ONLY = 11;
166 
167     /** LTE and WCDMA */
168     int NETWORK_MODE_LTE_WCDMA = 12;
169 
170     /** TD-SCDMA only */
171     int NETWORK_MODE_TDSCDMA_ONLY = 13;
172 
173     /** TD-SCDMA and WCDMA */
174     int NETWORK_MODE_TDSCDMA_WCDMA = 14;
175 
176     /** LTE and TD-SCDMA*/
177     int NETWORK_MODE_LTE_TDSCDMA = 15;
178 
179     /** TD-SCDMA and GSM */
180     int NETWORK_MODE_TDSCDMA_GSM = 16;
181 
182     /** TD-SCDMA, GSM and LTE */
183     int NETWORK_MODE_LTE_TDSCDMA_GSM = 17;
184 
185     /** TD-SCDMA, GSM and WCDMA */
186     int NETWORK_MODE_TDSCDMA_GSM_WCDMA = 18;
187 
188     /** LTE, TD-SCDMA and WCDMA */
189     int NETWORK_MODE_LTE_TDSCDMA_WCDMA = 19;
190 
191     /** LTE, TD-SCDMA, GSM, and WCDMA */
192     int NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA = 20;
193 
194     /** TD-SCDMA, CDMA, EVDO, GSM and WCDMA */
195     int NETWORK_MODE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = 21;
196 
197     /** LTE, TDCSDMA, CDMA, EVDO, GSM and WCDMA */
198     int NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = 22;
199 
200     /** NR 5G only mode */
201     int NETWORK_MODE_NR_ONLY = 23;
202 
203     /** NR 5G, LTE */
204     int NETWORK_MODE_NR_LTE = 24;
205 
206     /** NR 5G, LTE, CDMA and EvDo */
207     int NETWORK_MODE_NR_LTE_CDMA_EVDO = 25;
208 
209     /** NR 5G, LTE, GSM and WCDMA */
210     int NETWORK_MODE_NR_LTE_GSM_WCDMA = 26;
211 
212     /** NR 5G, LTE, CDMA, EvDo, GSM and WCDMA */
213     int NETWORK_MODE_NR_LTE_CDMA_EVDO_GSM_WCDMA = 27;
214 
215     /** NR 5G, LTE and WCDMA */
216     int NETWORK_MODE_NR_LTE_WCDMA = 28;
217 
218     /** NR 5G, LTE and TDSCDMA */
219     int NETWORK_MODE_NR_LTE_TDSCDMA = 29;
220 
221     /** NR 5G, LTE, TD-SCDMA and GSM */
222     int NETWORK_MODE_NR_LTE_TDSCDMA_GSM = 30;
223 
224     /** NR 5G, LTE, TD-SCDMA, WCDMA */
225     int NETWORK_MODE_NR_LTE_TDSCDMA_WCDMA = 31;
226 
227     /** NR 5G, LTE, TD-SCDMA, GSM and WCDMA */
228     int NETWORK_MODE_NR_LTE_TDSCDMA_GSM_WCDMA = 32;
229 
230     /** NR 5G, LTE, TD-SCDMA, CDMA, EVDO, GSM and WCDMA */
231     int NETWORK_MODE_NR_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = 33;
232 
233     int PREFERRED_NETWORK_MODE = Integer.parseInt(TelephonyManager.getTelephonyProperty(0,
234             "ro.telephony.default_network", Integer.toString(NETWORK_MODE_WCDMA_PREF)));
235 
236     int BAND_MODE_UNSPECIFIED = 0;      //"unspecified" (selected by baseband automatically)
237     int BAND_MODE_EURO = 1;             //"EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000)
238     int BAND_MODE_USA = 2;              //"US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900)
239     int BAND_MODE_JPN = 3;              //"JPN band" (WCDMA-800 / WCDMA-IMT-2000)
240     int BAND_MODE_AUS = 4;              //"AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000)
241     int BAND_MODE_AUS_2 = 5;            //"AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850)
242     int BAND_MODE_CELL_800 = 6;         //"Cellular" (800-MHz Band)
243     int BAND_MODE_PCS = 7;              //"PCS" (1900-MHz Band)
244     int BAND_MODE_JTACS = 8;            //"Band Class 3" (JTACS Band)
245     int BAND_MODE_KOREA_PCS = 9;        //"Band Class 4" (Korean PCS Band)
246     int BAND_MODE_5_450M = 10;          //"Band Class 5" (450-MHz Band)
247     int BAND_MODE_IMT2000 = 11;         //"Band Class 6" (2-GMHz IMT2000 Band)
248     int BAND_MODE_7_700M_2 = 12;        //"Band Class 7" (Upper 700-MHz Band)
249     int BAND_MODE_8_1800M = 13;         //"Band Class 8" (1800-MHz Band)
250     int BAND_MODE_9_900M = 14;          //"Band Class 9" (900-MHz Band)
251     int BAND_MODE_10_800M_2 = 15;       //"Band Class 10" (Secondary 800-MHz Band)
252     int BAND_MODE_EURO_PAMR_400M = 16;  //"Band Class 11" (400-MHz European PAMR Band)
253     int BAND_MODE_AWS = 17;             //"Band Class 15" (AWS Band)
254     int BAND_MODE_USA_2500M = 18;       //"Band Class 16" (US 2.5-GHz Band)
255 
256     int CDMA_CELL_BROADCAST_SMS_DISABLED = 1;
257     int CDMA_CELL_BROADCAST_SMS_ENABLED  = 0;
258 
259     int NO_PHONE = 0;
260     int GSM_PHONE = 1;
261     int CDMA_PHONE = 2;
262     int SIP_PHONE  = 3;
263     int THIRD_PARTY_PHONE = 4;
264     int IMS_PHONE = 5;
265     int CDMA_LTE_PHONE = 6;
266 
267     int LTE_ON_CDMA_UNKNOWN = -1;
268     int LTE_ON_CDMA_FALSE = 0;
269     int LTE_ON_CDMA_TRUE = 1;
270 
271     int SETUP_DATA_AUTH_NONE      = 0;
272     int SETUP_DATA_AUTH_PAP       = 1;
273     int SETUP_DATA_AUTH_CHAP      = 2;
274     int SETUP_DATA_AUTH_PAP_CHAP  = 3;
275 
276     /* LCE service related constants. */
277     int LCE_NOT_AVAILABLE = -1;
278     int LCE_STOPPED = 0;
279     int LCE_ACTIVE = 1;
280 
281     /**
282      * No restriction at all including voice/SMS/USSD/SS/AV64
283      * and packet data.
284      */
285     int RIL_RESTRICTED_STATE_NONE = 0x00;
286     /**
287      * Block emergency call due to restriction.
288      * But allow all normal voice/SMS/USSD/SS/AV64.
289      */
290     int RIL_RESTRICTED_STATE_CS_EMERGENCY = 0x01;
291     /**
292      * Block all normal voice/SMS/USSD/SS/AV64 due to restriction.
293      * Only Emergency call allowed.
294      */
295     int RIL_RESTRICTED_STATE_CS_NORMAL = 0x02;
296     /**
297      * Block all voice/SMS/USSD/SS/AV64
298      * including emergency call due to restriction.
299      */
300     int RIL_RESTRICTED_STATE_CS_ALL = 0x04;
301     /**
302      * Block packet data access due to restriction.
303      */
304     int RIL_RESTRICTED_STATE_PS_ALL = 0x10;
305 
306     /** Data profile for RIL_REQUEST_SETUP_DATA_CALL */
307     public static final int DATA_PROFILE_DEFAULT   = 0;
308     public static final int DATA_PROFILE_TETHERED  = 1;
309     public static final int DATA_PROFILE_IMS       = 2;
310     public static final int DATA_PROFILE_FOTA      = 3;
311     public static final int DATA_PROFILE_CBS       = 4;
312     public static final int DATA_PROFILE_OEM_BASE  = 1000;
313     public static final int DATA_PROFILE_INVALID   = 0xFFFFFFFF;
314 
315     /**
316      * The request/response/unsol message IDs below match RIL.h through Android O-MR1.
317      *
318      * RIL.h is at hardware/ril/include/telephony.ril.h; RIL support is deprecated and may
319      * be removed in the future.
320      *
321      * Messages defined after O-MR1 have no corresponding definition in RIL.h.
322      * P-and-later messages start at RIL_REQUEST_HAL_NON_RIL_BASE and
323      * RIL_UNSOL_HAL_NON_RIL_BASE.
324      */
325 
326     /* Requests begin */
327     int RIL_REQUEST_GET_SIM_STATUS = 1;
328     int RIL_REQUEST_ENTER_SIM_PIN = 2;
329     int RIL_REQUEST_ENTER_SIM_PUK = 3;
330     int RIL_REQUEST_ENTER_SIM_PIN2 = 4;
331     int RIL_REQUEST_ENTER_SIM_PUK2 = 5;
332     int RIL_REQUEST_CHANGE_SIM_PIN = 6;
333     int RIL_REQUEST_CHANGE_SIM_PIN2 = 7;
334     int RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION = 8;
335     int RIL_REQUEST_GET_CURRENT_CALLS = 9;
336     int RIL_REQUEST_DIAL = 10;
337     int RIL_REQUEST_GET_IMSI = 11;
338     int RIL_REQUEST_HANGUP = 12;
339     int RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND = 13;
340     int RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND = 14;
341     int RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE = 15;
342     int RIL_REQUEST_CONFERENCE = 16;
343     int RIL_REQUEST_UDUB = 17;
344     int RIL_REQUEST_LAST_CALL_FAIL_CAUSE = 18;
345     int RIL_REQUEST_SIGNAL_STRENGTH = 19;
346     int RIL_REQUEST_VOICE_REGISTRATION_STATE = 20;
347     int RIL_REQUEST_DATA_REGISTRATION_STATE = 21;
348     int RIL_REQUEST_OPERATOR = 22;
349     int RIL_REQUEST_RADIO_POWER = 23;
350     int RIL_REQUEST_DTMF = 24;
351     int RIL_REQUEST_SEND_SMS = 25;
352     int RIL_REQUEST_SEND_SMS_EXPECT_MORE = 26;
353     int RIL_REQUEST_SETUP_DATA_CALL = 27;
354     int RIL_REQUEST_SIM_IO = 28;
355     int RIL_REQUEST_SEND_USSD = 29;
356     int RIL_REQUEST_CANCEL_USSD = 30;
357     int RIL_REQUEST_GET_CLIR = 31;
358     int RIL_REQUEST_SET_CLIR = 32;
359     int RIL_REQUEST_QUERY_CALL_FORWARD_STATUS = 33;
360     int RIL_REQUEST_SET_CALL_FORWARD = 34;
361     int RIL_REQUEST_QUERY_CALL_WAITING = 35;
362     int RIL_REQUEST_SET_CALL_WAITING = 36;
363     int RIL_REQUEST_SMS_ACKNOWLEDGE = 37;
364     int RIL_REQUEST_GET_IMEI = 38;
365     int RIL_REQUEST_GET_IMEISV = 39;
366     int RIL_REQUEST_ANSWER = 40;
367     int RIL_REQUEST_DEACTIVATE_DATA_CALL = 41;
368     int RIL_REQUEST_QUERY_FACILITY_LOCK = 42;
369     int RIL_REQUEST_SET_FACILITY_LOCK = 43;
370     int RIL_REQUEST_CHANGE_BARRING_PASSWORD = 44;
371     int RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE = 45;
372     int RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC = 46;
373     int RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL = 47;
374     int RIL_REQUEST_QUERY_AVAILABLE_NETWORKS = 48;
375     int RIL_REQUEST_DTMF_START = 49;
376     int RIL_REQUEST_DTMF_STOP = 50;
377     int RIL_REQUEST_BASEBAND_VERSION = 51;
378     int RIL_REQUEST_SEPARATE_CONNECTION = 52;
379     int RIL_REQUEST_SET_MUTE = 53;
380     int RIL_REQUEST_GET_MUTE = 54;
381     int RIL_REQUEST_QUERY_CLIP = 55;
382     int RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE = 56;
383     int RIL_REQUEST_DATA_CALL_LIST = 57;
384     int RIL_REQUEST_RESET_RADIO = 58;
385     int RIL_REQUEST_OEM_HOOK_RAW = 59;
386     int RIL_REQUEST_OEM_HOOK_STRINGS = 60;
387     int RIL_REQUEST_SCREEN_STATE = 61;
388     int RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION = 62;
389     int RIL_REQUEST_WRITE_SMS_TO_SIM = 63;
390     int RIL_REQUEST_DELETE_SMS_ON_SIM = 64;
391     int RIL_REQUEST_SET_BAND_MODE = 65;
392     int RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE = 66;
393     int RIL_REQUEST_STK_GET_PROFILE = 67;
394     int RIL_REQUEST_STK_SET_PROFILE = 68;
395     int RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND = 69;
396     int RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE = 70;
397     int RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM = 71;
398     int RIL_REQUEST_EXPLICIT_CALL_TRANSFER = 72;
399     int RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE = 73;
400     int RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE = 74;
401     int RIL_REQUEST_GET_NEIGHBORING_CELL_IDS = 75;
402     int RIL_REQUEST_SET_LOCATION_UPDATES = 76;
403     int RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE = 77;
404     int RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE = 78;
405     int RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE = 79;
406     int RIL_REQUEST_SET_TTY_MODE = 80;
407     int RIL_REQUEST_QUERY_TTY_MODE = 81;
408     int RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE = 82;
409     int RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE = 83;
410     int RIL_REQUEST_CDMA_FLASH = 84;
411     int RIL_REQUEST_CDMA_BURST_DTMF = 85;
412     int RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY = 86;
413     int RIL_REQUEST_CDMA_SEND_SMS = 87;
414     int RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE = 88;
415     int RIL_REQUEST_GSM_GET_BROADCAST_CONFIG = 89;
416     int RIL_REQUEST_GSM_SET_BROADCAST_CONFIG = 90;
417     int RIL_REQUEST_GSM_BROADCAST_ACTIVATION = 91;
418     int RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG = 92;
419     int RIL_REQUEST_CDMA_SET_BROADCAST_CONFIG = 93;
420     int RIL_REQUEST_CDMA_BROADCAST_ACTIVATION = 94;
421     int RIL_REQUEST_CDMA_SUBSCRIPTION = 95;
422     int RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM = 96;
423     int RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM = 97;
424     int RIL_REQUEST_DEVICE_IDENTITY = 98;
425     int RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE = 99;
426     int RIL_REQUEST_GET_SMSC_ADDRESS = 100;
427     int RIL_REQUEST_SET_SMSC_ADDRESS = 101;
428     int RIL_REQUEST_REPORT_SMS_MEMORY_STATUS = 102;
429     int RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING = 103;
430     int RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE = 104;
431     int RIL_REQUEST_ISIM_AUTHENTICATION = 105;
432     int RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU = 106;
433     int RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS = 107;
434     int RIL_REQUEST_VOICE_RADIO_TECH = 108;
435     int RIL_REQUEST_GET_CELL_INFO_LIST = 109;
436     int RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE = 110;
437     int RIL_REQUEST_SET_INITIAL_ATTACH_APN = 111;
438     int RIL_REQUEST_IMS_REGISTRATION_STATE = 112;
439     int RIL_REQUEST_IMS_SEND_SMS = 113;
440     int RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC = 114;
441     int RIL_REQUEST_SIM_OPEN_CHANNEL = 115;
442     int RIL_REQUEST_SIM_CLOSE_CHANNEL = 116;
443     int RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL = 117;
444     int RIL_REQUEST_NV_READ_ITEM = 118;
445     int RIL_REQUEST_NV_WRITE_ITEM = 119;
446     int RIL_REQUEST_NV_WRITE_CDMA_PRL = 120;
447     int RIL_REQUEST_NV_RESET_CONFIG = 121;
448     int RIL_REQUEST_SET_UICC_SUBSCRIPTION = 122;
449     int RIL_REQUEST_ALLOW_DATA = 123;
450     int RIL_REQUEST_GET_HARDWARE_CONFIG = 124;
451     int RIL_REQUEST_SIM_AUTHENTICATION = 125;
452     int RIL_REQUEST_GET_DC_RT_INFO = 126;
453     int RIL_REQUEST_SET_DC_RT_INFO_RATE = 127;
454     int RIL_REQUEST_SET_DATA_PROFILE = 128;
455     int RIL_REQUEST_SHUTDOWN = 129;
456     int RIL_REQUEST_GET_RADIO_CAPABILITY = 130;
457     int RIL_REQUEST_SET_RADIO_CAPABILITY = 131;
458     int RIL_REQUEST_START_LCE = 132;
459     int RIL_REQUEST_STOP_LCE = 133;
460     int RIL_REQUEST_PULL_LCEDATA = 134;
461     int RIL_REQUEST_GET_ACTIVITY_INFO = 135;
462     int RIL_REQUEST_SET_ALLOWED_CARRIERS = 136;
463     int RIL_REQUEST_GET_ALLOWED_CARRIERS = 137;
464     int RIL_REQUEST_SEND_DEVICE_STATE = 138;
465     int RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER = 139;
466     int RIL_REQUEST_SET_SIM_CARD_POWER = 140;
467     int RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION = 141;
468     int RIL_REQUEST_START_NETWORK_SCAN = 142;
469     int RIL_REQUEST_STOP_NETWORK_SCAN = 143;
470     int RIL_REQUEST_START_KEEPALIVE = 144;
471     int RIL_REQUEST_STOP_KEEPALIVE = 145;
472     int RIL_REQUEST_ENABLE_MODEM = 146;
473     int RIL_REQUEST_GET_MODEM_STATUS = 147;
474 
475     /* The following requests are not defined in RIL.h */
476     int RIL_REQUEST_HAL_NON_RIL_BASE = 200;
477     int RIL_REQUEST_GET_SLOT_STATUS = 200;
478     int RIL_REQUEST_SET_LOGICAL_TO_PHYSICAL_SLOT_MAPPING = 201;
479     int RIL_REQUEST_SET_SIGNAL_STRENGTH_REPORTING_CRITERIA = 202;
480     int RIL_REQUEST_SET_LINK_CAPACITY_REPORTING_CRITERIA = 203;
481     int RIL_REQUEST_SET_PREFERRED_DATA_MODEM = 204;
482     int RIL_REQUEST_EMERGENCY_DIAL = 205;
483     int RIL_REQUEST_GET_PHONE_CAPABILITY = 206;
484     int RIL_REQUEST_SWITCH_DUAL_SIM_CONFIG = 207;
485 
486     /* Responses begin */
487     int RIL_RESPONSE_ACKNOWLEDGEMENT = 800;
488 
489     /* Unsols begin */
490     int RIL_UNSOL_RESPONSE_BASE = 1000;
491     int RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED = 1000;
492     int RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED = 1001;
493     int RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED = 1002;
494     int RIL_UNSOL_RESPONSE_NEW_SMS = 1003;
495     int RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT = 1004;
496     int RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM = 1005;
497     int RIL_UNSOL_ON_USSD = 1006;
498     int RIL_UNSOL_ON_USSD_REQUEST = 1007;
499     int RIL_UNSOL_NITZ_TIME_RECEIVED = 1008;
500     int RIL_UNSOL_SIGNAL_STRENGTH = 1009;
501     int RIL_UNSOL_DATA_CALL_LIST_CHANGED = 1010;
502     int RIL_UNSOL_SUPP_SVC_NOTIFICATION = 1011;
503     int RIL_UNSOL_STK_SESSION_END = 1012;
504     int RIL_UNSOL_STK_PROACTIVE_COMMAND = 1013;
505     int RIL_UNSOL_STK_EVENT_NOTIFY = 1014;
506     int RIL_UNSOL_STK_CALL_SETUP = 1015;
507     int RIL_UNSOL_SIM_SMS_STORAGE_FULL = 1016;
508     int RIL_UNSOL_SIM_REFRESH = 1017;
509     int RIL_UNSOL_CALL_RING = 1018;
510     int RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED = 1019;
511     int RIL_UNSOL_RESPONSE_CDMA_NEW_SMS = 1020;
512     int RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS = 1021;
513     int RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL = 1022;
514     int RIL_UNSOL_RESTRICTED_STATE_CHANGED = 1023;
515     int RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE = 1024;
516     int RIL_UNSOL_CDMA_CALL_WAITING = 1025;
517     int RIL_UNSOL_CDMA_OTA_PROVISION_STATUS = 1026;
518     int RIL_UNSOL_CDMA_INFO_REC = 1027;
519     int RIL_UNSOL_OEM_HOOK_RAW = 1028;
520     int RIL_UNSOL_RINGBACK_TONE = 1029;
521     int RIL_UNSOL_RESEND_INCALL_MUTE = 1030;
522     int RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED = 1031;
523     int RIL_UNSOl_CDMA_PRL_CHANGED = 1032;
524     int RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE = 1033;
525     int RIL_UNSOL_RIL_CONNECTED = 1034;
526     int RIL_UNSOL_VOICE_RADIO_TECH_CHANGED = 1035;
527     int RIL_UNSOL_CELL_INFO_LIST = 1036;
528     int RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED = 1037;
529     int RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED = 1038;
530     int RIL_UNSOL_SRVCC_STATE_NOTIFY = 1039;
531     int RIL_UNSOL_HARDWARE_CONFIG_CHANGED = 1040;
532     int RIL_UNSOL_DC_RT_INFO_CHANGED = 1041;
533     int RIL_UNSOL_RADIO_CAPABILITY = 1042;
534     int RIL_UNSOL_ON_SS = 1043;
535     int RIL_UNSOL_STK_CC_ALPHA_NOTIFY = 1044;
536     int RIL_UNSOL_LCEDATA_RECV = 1045;
537     int RIL_UNSOL_PCO_DATA = 1046;
538     int RIL_UNSOL_MODEM_RESTART = 1047;
539     int RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION = 1048;
540     int RIL_UNSOL_NETWORK_SCAN_RESULT = 1049;
541     int RIL_UNSOL_KEEPALIVE_STATUS = 1050;
542 
543     /* The following unsols are not defined in RIL.h */
544     int RIL_UNSOL_HAL_NON_RIL_BASE = 1100;
545     int RIL_UNSOL_ICC_SLOT_STATUS = 1100;
546     int RIL_UNSOL_PHYSICAL_CHANNEL_CONFIG = 1101;
547     int RIL_UNSOL_EMERGENCY_NUMBER_LIST = 1102;
548 }
549