2 * Copyright (C) 2016 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package android.hardware.radio@1.0;
19 enum RadioConst : int32_t {
20 CDMA_ALPHA_INFO_BUFFER_LENGTH = 64,
21 CDMA_NUMBER_INFO_BUFFER_LENGTH = 81,
23 MAX_SOCKET_NAME_LENGTH = 6,
24 MAX_CLIENT_ID_LENGTH = 2,
25 MAX_DEBUG_SOCKET_NAME_LENGTH = 12,
26 MAX_QEMU_PIPE_NAME_LENGTH = 11,
29 CDMA_MAX_NUMBER_OF_INFO_RECS = 10,
31 NUM_SERVICE_CLASSES = 7,
32 NUM_TX_POWER_LEVELS = 5,
35 enum RadioCdmaSmsConst : int32_t {
38 BEARER_DATA_MAX = 255,
39 UDH_MAX_SND_SIZE = 128,
40 UDH_EO_DATA_SEGMENT_MAX = 131,
43 UDH_LARGE_PIC_SIZE = 128,
44 UDH_SMALL_PIC_SIZE = 32,
45 UDH_VAR_PIC_SIZE = 134,
46 UDH_ANIM_NUM_BITMAPS = 4,
47 UDH_LARGE_BITMAP_SIZE = 32,
48 UDH_SMALL_BITMAP_SIZE = 8,
53 enum RadioError : int32_t {
55 RADIO_NOT_AVAILABLE = 1, // If radio did not start or is resetting
57 PASSWORD_INCORRECT = 3, // for PIN/PIN2 methods only
58 SIM_PIN2 = 4, // Operation requires SIM PIN2 to be entered
59 SIM_PUK2 = 5, // Operation requires SIM PIN2 to be entered
60 REQUEST_NOT_SUPPORTED = 6,
62 OP_NOT_ALLOWED_DURING_VOICE_CALL = 8, // data ops are not allowed during voice
63 // call on a Class C GPRS device
64 OP_NOT_ALLOWED_BEFORE_REG_TO_NW = 9, // data ops are not allowed before device
65 // registers in network
66 SMS_SEND_FAIL_RETRY = 10, // fail to send sms and need retry
67 SIM_ABSENT = 11, // fail to set the location where CDMA subscription
68 // shall be retrieved because of SIM or RUIM
70 SUBSCRIPTION_NOT_AVAILABLE = 12, // fail to find CDMA subscription from specified
72 MODE_NOT_SUPPORTED = 13, // HW does not support preferred network type
73 FDN_CHECK_FAILURE = 14, // command failed because recipient is not on FDN list
74 ILLEGAL_SIM_OR_ME = 15, // network selection failed due to illegal SIM or ME
75 MISSING_RESOURCE = 16, // no logical channel available
76 NO_SUCH_ELEMENT = 17, // application not found on SIM
77 DIAL_MODIFIED_TO_USSD = 18, // DIAL request modified to USSD
78 DIAL_MODIFIED_TO_SS = 19, // DIAL request modified to SS
79 DIAL_MODIFIED_TO_DIAL = 20, // DIAL request modified to DIAL with different data
80 USSD_MODIFIED_TO_DIAL = 21, // USSD request modified to DIAL
81 USSD_MODIFIED_TO_SS = 22, // USSD request modified to SS
82 USSD_MODIFIED_TO_USSD = 23, // USSD request modified to different USSD request
83 SS_MODIFIED_TO_DIAL = 24, // SS request modified to DIAL
84 SS_MODIFIED_TO_USSD = 25, // SS request modified to USSD
85 SUBSCRIPTION_NOT_SUPPORTED = 26, // Subscription not supported by RIL
86 SS_MODIFIED_TO_SS = 27, // SS request modified to different SS request
87 LCE_NOT_SUPPORTED = 36, // LCE service not supported(36 in RILConstants.java)
88 NO_MEMORY = 37, // Not sufficient memory to process the request
89 INTERNAL_ERR = 38, // Hit unexpected vendor internal error scenario
90 SYSTEM_ERR = 39, // Hit platform or system error
91 MODEM_ERR = 40, // Hit unexpected modem error
92 INVALID_STATE = 41, // Unexpected request for the current state
93 NO_RESOURCES = 42, // Not sufficient resource to process the request
94 SIM_ERR = 43, // Received error from SIM card
95 INVALID_ARGUMENTS = 44, // Received invalid arguments in request
96 INVALID_SIM_STATE = 45, // Cannot process the request in current SIM state
97 INVALID_MODEM_STATE = 46, // Cannot process the request in current Modem state
98 INVALID_CALL_ID = 47, // Received invalid call id in request
99 NO_SMS_TO_ACK = 48, // ACK received when there is no SMS to ack
100 NETWORK_ERR = 49, // Received error from network
101 REQUEST_RATE_LIMITED = 50, // Operation denied due to overly-frequent requests
102 SIM_BUSY = 51, // SIM is busy
103 SIM_FULL = 52, // The target EF is full
104 NETWORK_REJECT = 53, // Request is rejected by network
105 OPERATION_NOT_ALLOWED = 54, // Not allowed the request now
106 EMPTY_RECORD = 55, // The request record is empty
107 INVALID_SMS_FORMAT = 56, // Invalid sms format
108 ENCODING_ERR = 57, // Message not encoded properly
109 INVALID_SMSC_ADDRESS = 58, // SMSC address specified is invalid
110 NO_SUCH_ENTRY = 59, // No such entry present to perform the request
111 NETWORK_NOT_READY = 60, // Network is not ready to perform the request
112 NOT_PROVISIONED = 61, // Device doesnot have this value provisioned
113 NO_SUBSCRIPTION = 62, // Device doesnot have subscription
114 NO_NETWORK_FOUND = 63, // Network cannot be found
115 DEVICE_IN_USE = 64, // Operation cannot be performed because the device
116 // is currently in use
117 ABORTED = 65, // Operation aborted
118 INVALID_RESPONSE = 66, // Response from vendor had invalid data
120 // TODO(May be moved to vendor HAL extension)
121 // OEM specific error codes. To be used by OEM when they don't want to reveal
122 // specific error codes which would be replaced by Generic failure.
150 enum RadioResponseType : int32_t {
156 enum RadioIndicationType : int32_t {
161 enum RestrictedState : int32_t {
169 enum CardState : int32_t {
173 RESTRICTED, // card is present but not usable due to carrier
177 enum PinState : int32_t {
179 ENABLED_NOT_VERIFIED,
183 ENABLED_PERM_BLOCKED,
186 enum AppType : int32_t {
195 enum AppState : int32_t {
198 PIN, // If PIN1 or UPin is required
199 PUK, // If PUK1 or Puk for UPin is required
200 SUBSCRIPTION_PERSO, // perso_substate must be look at when app_state is
201 // assigned to this value
205 enum PersoSubstate : int32_t {
206 UNKNOWN, // initial state
207 IN_PROGRESS, // in between each lock transition
208 READY, // when either SIM or RUIM Perso is finished since each
209 // app must only have 1 active perso involved
213 SIM_SERVICE_PROVIDER,
215 SIM_NETWORK_PUK, // The corresponding perso lock is blocked
216 SIM_NETWORK_SUBSET_PUK,
218 SIM_SERVICE_PROVIDER_PUK,
224 RUIM_SERVICE_PROVIDER,
226 RUIM_NETWORK1_PUK, // The corresponding perso lock is blocked
230 RUIM_SERVICE_PROVIDER_PUK,
234 enum RadioState : int32_t {
235 OFF = 0, // Radio explictly powered off (eg CFUN=0)
236 UNAVAILABLE = 1, // Radio unavailable (eg, resetting or not booted)
237 ON = 10, // Radio is ON
240 enum SapConnectRsp : int32_t {
245 CONNECT_OK_CALL_ONGOING
248 enum SapDisconnectType : int32_t {
253 enum SapApduType : int32_t {
258 enum SapResultCode : int32_t {
261 CARD_NOT_ACCESSSIBLE,
262 CARD_ALREADY_POWERED_OFF,
264 CARD_ALREADY_POWERED_ON,
269 enum SapStatus : int32_t {
278 enum SapTransferProtocol : int32_t {
283 enum CallState : int32_t {
286 DIALING, // MO call only
287 ALERTING, // MO call only
288 INCOMING, // MT call only
289 WAITING, // MT call only
293 * User-to-User signaling Info activation types derived from 3GPP 23.087 v8.0
295 enum UusType : int32_t {
306 * User-to-User Signaling Information data coding schemes. Possible values for
307 * Octet 3 (Protocol Discriminator field) in the UUIE. The values have been
308 * specified in section 10.5.4.25 of 3GPP TS 24.008
310 enum UusDcs : int32_t {
311 USP, // User specified protocol
312 OSIHLP, // OSI higher layer protocol
314 RMCF, // Reserved for system mangement convergence function
315 IA5C, // IA5 characters
318 enum CallPresentation : int32_t {
325 enum Clir : int32_t {
326 DEFAULT, // "use subscription default value"
327 INVOCATION, // restrict CLI presentation
328 SUPPRESSION, // allow CLI presentation
331 enum LastCallFailCause : int32_t {
332 UNOBTAINABLE_NUMBER = 1,
333 NO_ROUTE_TO_DESTINATION = 3,
334 CHANNEL_UNACCEPTABLE = 6,
335 OPERATOR_DETERMINED_BARRING = 8,
338 NO_USER_RESPONDING = 18,
339 NO_ANSWER_FROM_USER = 19,
343 DESTINATION_OUT_OF_ORDER = 27,
344 INVALID_NUMBER_FORMAT = 28,
345 FACILITY_REJECTED = 29,
346 RESP_TO_STATUS_ENQUIRY = 30,
347 NORMAL_UNSPECIFIED = 31,
349 NETWORK_OUT_OF_ORDER = 38,
350 TEMPORARY_FAILURE = 41,
351 SWITCHING_EQUIPMENT_CONGESTION = 42,
352 ACCESS_INFORMATION_DISCARDED = 43,
353 REQUESTED_CIRCUIT_OR_CHANNEL_NOT_AVAILABLE = 44,
354 RESOURCES_UNAVAILABLE_OR_UNSPECIFIED = 47,
355 QOS_UNAVAILABLE = 49,
356 REQUESTED_FACILITY_NOT_SUBSCRIBED = 50,
357 INCOMING_CALLS_BARRED_WITHIN_CUG = 55,
358 BEARER_CAPABILITY_NOT_AUTHORIZED = 57,
359 BEARER_CAPABILITY_UNAVAILABLE = 58,
360 SERVICE_OPTION_NOT_AVAILABLE = 63,
361 BEARER_SERVICE_NOT_IMPLEMENTED = 65,
362 ACM_LIMIT_EXCEEDED = 68,
363 REQUESTED_FACILITY_NOT_IMPLEMENTED = 69,
364 ONLY_DIGITAL_INFORMATION_BEARER_AVAILABLE = 70,
365 SERVICE_OR_OPTION_NOT_IMPLEMENTED = 79,
366 INVALID_TRANSACTION_IDENTIFIER = 81,
367 USER_NOT_MEMBER_OF_CUG = 87,
368 INCOMPATIBLE_DESTINATION = 88,
369 INVALID_TRANSIT_NW_SELECTION = 91,
370 SEMANTICALLY_INCORRECT_MESSAGE = 95,
371 INVALID_MANDATORY_INFORMATION = 96,
372 MESSAGE_TYPE_NON_IMPLEMENTED = 97,
373 MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98,
374 INFORMATION_ELEMENT_NON_EXISTENT = 99,
375 CONDITIONAL_IE_ERROR = 100,
376 MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101,
377 RECOVERY_ON_TIMER_EXPIRED = 102,
378 PROTOCOL_ERROR_UNSPECIFIED = 111,
379 INTERWORKING_UNSPECIFIED = 127,
382 IMSI_UNKNOWN_IN_VLR = 242,
383 IMEI_NOT_ACCEPTED = 243,
384 DIAL_MODIFIED_TO_USSD = 244, // STK Call Control
385 DIAL_MODIFIED_TO_SS = 245,
386 DIAL_MODIFIED_TO_DIAL = 246,
387 CDMA_LOCKED_UNTIL_POWER_CYCLE = 1000,
389 CDMA_INTERCEPT = 1002,
391 CDMA_SO_REJECT = 1004,
392 CDMA_RETRY_ORDER = 1005,
393 CDMA_ACCESS_FAILURE = 1006,
394 CDMA_PREEMPTED = 1007,
395 CDMA_NOT_EMERGENCY = 1008, // For non-emergency number dialed during emergency
397 CDMA_ACCESS_BLOCKED = 1009, // This error will be deprecated soon,
398 // vendor code must make sure to map error
399 // code to specific error
400 ERROR_UNSPECIFIED = 0xffff,
403 enum DataCallFailCause : int32_t {
404 NONE = 0, // an integer cause code defined in TS 24.008
405 // section 6.1.3.1.3 or TS 24.301 Release 8+ Annex B.
406 // If the implementation does not have access to the exact
407 // cause codes, then it must return one of the
408 // following values, as the UI layer needs to distinguish
409 // these cases for error notification and potential
411 OPERATOR_BARRED = 0x08, // no retry
412 NAS_SIGNALLING = 0x0E, // PDP_FAIL_LLC_SNDCP = 0x19,
413 INSUFFICIENT_RESOURCES = 0x1A,
414 MISSING_UKNOWN_APN = 0x1B, // no retry
415 UNKNOWN_PDP_ADDRESS_TYPE = 0x1C, // no retry
416 USER_AUTHENTICATION = 0x1D, // no retry
417 ACTIVATION_REJECT_GGSN = 0x1E, // no retry
418 ACTIVATION_REJECT_UNSPECIFIED = 0x1F,
419 SERVICE_OPTION_NOT_SUPPORTED = 0x20, // no retry
420 SERVICE_OPTION_NOT_SUBSCRIBED = 0x21, // no retry
421 SERVICE_OPTION_OUT_OF_ORDER = 0x22,
422 NSAPI_IN_USE = 0x23, // no retry
423 REGULAR_DEACTIVATION = 0x24, // possibly restart radio,
424 // based on framework config
425 QOS_NOT_ACCEPTED = 0x25,
426 NETWORK_FAILURE = 0x26,
427 UMTS_REACTIVATION_REQ = 0x27,
428 FEATURE_NOT_SUPP = 0x28,
429 TFT_SEMANTIC_ERROR = 0x29,
430 TFT_SYTAX_ERROR = 0x2A,
431 UNKNOWN_PDP_CONTEXT = 0x2B,
432 FILTER_SEMANTIC_ERROR = 0x2C,
433 FILTER_SYTAX_ERROR = 0x2D,
434 PDP_WITHOUT_ACTIVE_TFT = 0x2E,
435 ONLY_IPV4_ALLOWED = 0x32, // no retry
436 ONLY_IPV6_ALLOWED = 0x33, // no retry
437 ONLY_SINGLE_BEARER_ALLOWED = 0x34,
438 ESM_INFO_NOT_RECEIVED = 0x35,
439 PDN_CONN_DOES_NOT_EXIST = 0x36,
440 MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED = 0x37,
441 MAX_ACTIVE_PDP_CONTEXT_REACHED = 0x41,
442 UNSUPPORTED_APN_IN_CURRENT_PLMN = 0x42,
443 INVALID_TRANSACTION_ID = 0x51,
444 MESSAGE_INCORRECT_SEMANTIC = 0x5F,
445 INVALID_MANDATORY_INFO = 0x60,
446 MESSAGE_TYPE_UNSUPPORTED = 0x61,
447 MSG_TYPE_NONCOMPATIBLE_STATE = 0x62,
448 UNKNOWN_INFO_ELEMENT = 0x63,
449 CONDITIONAL_IE_ERROR = 0x64,
450 MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE = 0x65,
451 PROTOCOL_ERRORS = 0x6F, // no retry
452 APN_TYPE_CONFLICT = 0x70,
453 INVALID_PCSCF_ADDR = 0x71,
454 INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN = 0x72,
455 EMM_ACCESS_BARRED = 0x73,
456 EMERGENCY_IFACE_ONLY = 0x74,
457 IFACE_MISMATCH = 0x75,
458 COMPANION_IFACE_IN_USE = 0x76,
459 IP_ADDRESS_MISMATCH = 0x77,
460 IFACE_AND_POL_FAMILY_MISMATCH = 0x78,
461 EMM_ACCESS_BARRED_INFINITE_RETRY = 0x79,
462 AUTH_FAILURE_ON_EMERGENCY_CALL = 0x7A,
463 OEM_DCFAILCAUSE_1 = 0x1001,
465 // OEM specific error codes. To be used by OEMs when they don't want to
466 // reveal error code which would be replaced by PDP_FAIL_ERROR_UNSPECIFIED
467 // TODO(May be moved to vendor HAL extension)
468 OEM_DCFAILCAUSE_2 = 0x1002,
469 OEM_DCFAILCAUSE_3 = 0x1003,
470 OEM_DCFAILCAUSE_4 = 0x1004,
471 OEM_DCFAILCAUSE_5 = 0x1005,
472 OEM_DCFAILCAUSE_6 = 0x1006,
473 OEM_DCFAILCAUSE_7 = 0x1007,
474 OEM_DCFAILCAUSE_8 = 0x1008,
475 OEM_DCFAILCAUSE_9 = 0x1009,
476 OEM_DCFAILCAUSE_10 = 0x100A,
477 OEM_DCFAILCAUSE_11 = 0x100B,
478 OEM_DCFAILCAUSE_12 = 0x100C,
479 OEM_DCFAILCAUSE_13 = 0x100D,
480 OEM_DCFAILCAUSE_14 = 0x100E,
481 OEM_DCFAILCAUSE_15 = 0x100F,
483 // Not mentioned in the specification
484 VOICE_REGISTRATION_FAIL = -1,
485 DATA_REGISTRATION_FAIL = -2,
487 // reasons for data call drop - network/modem disconnect
489 PREF_RADIO_TECH_CHANGED = -4, // preferred technology has changed, must retry
490 // with parameters appropriate for new technology
491 RADIO_POWER_OFF = -5, // data call was disconnected because radio was resetting,
492 // powered off - no retry
493 TETHERED_CALL_ACTIVE = -6, // data call was disconnected by modem because tethered
494 // mode was up on same APN/data profile - no retry until
495 // tethered call is off
496 ERROR_UNSPECIFIED = 0xffff,
500 * Please note that registration state UNKNOWN is
501 * treated as "out of service" in the Android telephony.
502 * Registration state REG_DENIED must be returned if Location Update
503 * Reject (with cause 17 - Network Failure) is received
504 * repeatedly from the network, to facilitate
507 enum RegState : int32_t {
508 NOT_REG_MT_NOT_SEARCHING_OP, // Not registered, MT is not currently searching
509 // a new operator to register
510 REG_HOME, // Registered, home network
511 NOT_REG_MT_SEARCHING_OP, // Not registered, but MT is currently searching
512 // a new operator to register
513 REG_DENIED, // Registration denied
515 REG_ROAMING, // Registered, roaming
516 NOT_REG_MT_NOT_SEARCHING_OP_EM, // Same as NOT_REG_MT_NOT_SEARCHING_OP but indicates that
517 // emergency calls are enabled.
518 NOT_REG_MT_SEARCHING_OP_EM, // Same as NOT_REG_MT_SEARCHING_OP but indicates that
519 // emergency calls are enabled.
520 REG_DENIED_EM, // Same as REG_DENIED but indicates that
521 // emergency calls are enabled.
522 UNKNOWN_EM // Same as UNKNOWN but indicates that
523 // emergency calls are enabled.
526 enum RadioTechnology : int32_t {
543 GSM = 16, // Only supports voice
549 enum DataProfile : int32_t {
555 OEM_BASE = 1000, // Start of OEM-specific profiles
556 INVALID = 0xFFFFFFFF,
559 enum SmsAcknowledgeFailCause : int32_t {
560 MEMORY_CAPAPCITY_EXCEEDED = 0xD3,
561 UNSPECIFIED_ERROR = 0XFF,
564 enum CallForwardInfoStatus : int32_t {
572 enum ClipStatus : int32_t {
573 CLIP_PROVISIONED, // CLIP provisioned
574 CLIP_UNPROVISIONED, // CLIP not provisioned
575 UNKOWN, // unknown, e.g. no network etc
578 enum SmsWriteArgsStatus : int32_t {
585 enum RadioBandMode : int32_t {
586 BAND_MODE_UNSPECIFIED, // "unspecified" (selected by baseband automatically)
587 BAND_MODE_EURO, // "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000)
588 BAND_MODE_USA, // "US band"
589 // (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900)
590 BAND_MODE_JPN, // "JPN band" (WCDMA-800 / WCDMA-IMT-2000)
591 BAND_MODE_AUS, // "AUS band"
592 // (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000)
593 BAND_MODE_AUS_2, // "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850)
594 BAND_MODE_CELL_800, // "Cellular" (800-MHz Band)
595 BAND_MODE_PCS, // "PCS" (1900-MHz Band)
596 BAND_MODE_JTACS, // "Band Class 3" (JTACS Band)
597 BAND_MODE_KOREA_PCS, // "Band Class 4" (Korean PCS Band)
598 BAND_MODE_5_450M, // "Band Class 5" (450-MHz Band)
599 BAND_MODE_IMT2000, // "Band Class 6" (2-GMHz IMT2000 Band)
600 BAND_MODE_7_700M_2, // "Band Class 7" (Upper 700-MHz Band)
601 BAND_MODE_8_1800M, // "Band Class 8" (1800-MHz Band)
602 BAND_MODE_9_900M, // "Band Class 9" (900-MHz Band)
603 BAND_MODE_10_800M_2, // "Band Class 10" (Secondary 800-MHz Band)
604 BAND_MODE_EURO_PAMR_400M, // "Band Class 11" (400-MHz European PAMR Band)
605 BAND_MODE_AWS, // "Band Class 15" (AWS Band)
606 BAND_MODE_USA_2500M, // "Band Class 16" (US 2.5-GHz Band)
609 enum OperatorStatus : int32_t {
616 enum PreferredNetworkType : int32_t {
617 GSM_WCDMA, // GSM/WCDMA (WCDMA preferred)
618 GSM_ONLY, // GSM only
620 GSM_WCDMA_AUTO, // GSM/WCDMA (auto mode, according to PRL)
621 CDMA_EVDO_AUTO, // CDMA and EvDo (auto mode, according to PRL)
622 CDMA_ONLY, // CDMA only
623 EVDO_ONLY, // EvDo only
624 GSM_WCDMA_CDMA_EVDO_AUTO, // GSM/WCDMA, CDMA, and EvDo (auto mode, according to PRL)
625 LTE_CDMA_EVDO, // LTE, CDMA and EvDo
626 LTE_GSM_WCDMA, // LTE, GSM/WCDMA
627 LTE_CMDA_EVDO_GSM_WCDMA, // LTE, CDMA, EvDo, GSM/WCDMA
628 LTE_ONLY, // LTE only
629 LTE_WCDMA, // LTE/WCDMA
630 TD_SCDMA_ONLY, // TD-SCDMA only
631 TD_SCDMA_WCDMA, // TD-SCDMA and WCDMA
632 TD_SCDMA_LTE, // TD-SCDMA and LTE
633 TD_SCDMA_GSM, // TD-SCDMA and GSM
634 TD_SCDMA_GSM_LTE, // TD-SCDMA,GSM and LTE
635 TD_SCDMA_GSM_WCDMA, // TD-SCDMA, GSM/WCDMA
636 TD_SCDMA_WCDMA_LTE, // TD-SCDMA, WCDMA and LTE
637 TD_SCDMA_GSM_WCDMA_LTE, // TD-SCDMA, GSM/WCDMA and LTE
638 TD_SCDMA_GSM_WCDMA_CDMA_EVDO_AUTO, // TD-SCDMA, GSM/WCDMA, CDMA and EvDo
639 TD_SCDMA_LTE_CDMA_EVDO_GSM_WCDMA, // TD-SCDMA, LTE, CDMA, EvDo GSM/WCDMA
642 enum CdmaSubscriptionSource : int32_t {
647 enum CdmaRoamingType : int32_t {
653 enum TtyMode : int32_t {
656 HCO, // Hearing carryover
657 VCO, // Voice carryover
660 enum NvItem : int32_t {
661 // CDMA radio and account information (items 1-10)
662 CDMA_MEID = 1, // CDMA MEID (hex)
663 CDMA_MIN = 2, // CDMA MIN (MSID)
664 CDMA_MDN = 3, // CDMA MDN
665 CDMA_ACCOLC = 4, // CDMA access overload control
667 // Carrier device provisioning (items 11-30)
668 DEVICE_MSL = 11, // device MSL
669 RTN_RECONDITIONED_STATUS = 12, // RTN reconditioned status
670 RTN_ACTIVATION_DATE = 13, // RTN activation date
671 RTN_LIFE_TIMER = 14, // RTN life timer
672 RTN_LIFE_CALLS = 15, // RTN life calls
673 RTN_LIFE_DATA_TX = 16, // RTN life data TX
674 RTN_LIFE_DATA_RX = 17, // RTN life data RX
675 OMADM_HFA_LEVEL = 18, // HFA in progress
677 // Mobile IP profile information (items 31-50)
678 MIP_PROFILE_NAI = 31, // NAI realm
679 MIP_PROFILE_HOME_ADDRESS = 32, // MIP home address
680 MIP_PROFILE_AAA_AUTH = 33, // AAA auth
681 MIP_PROFILE_HA_AUTH = 34, // HA auth
682 MIP_PROFILE_PRI_HA_ADDR = 35, // primary HA address
683 MIP_PROFILE_SEC_HA_ADDR = 36, // secondary HA address
684 MIP_PROFILE_REV_TUN_PREF = 37, // reverse TUN preference
685 MIP_PROFILE_HA_SPI = 38, // HA SPI
686 MIP_PROFILE_AAA_SPI = 39, // AAA SPI
687 MIP_PROFILE_MN_HA_SS = 40, // HA shared secret
688 MIP_PROFILE_MN_AAA_SS = 41, // AAA shared secret
690 // CDMA network and band config (items 51-70)
691 CDMA_PRL_VERSION = 51, // CDMA PRL version
692 CDMA_BC10 = 52, // CDMA band class 10
693 CDMA_BC14 = 53, // CDMA band class 14
694 CDMA_SO68 = 54, // CDMA SO68
695 CDMA_SO73_COP0 = 55, // CDMA SO73 COP0
696 CDMA_SO73_COP1TO7 = 56, // CDMA SO73 COP1-7
697 CDMA_1X_ADVANCED_ENABLED = 57, // CDMA 1X Advanced enabled
698 CDMA_EHRPD_ENABLED = 58, // CDMA eHRPD enabled
699 CDMA_EHRPD_FORCED = 59, // CDMA eHRPD forced
701 // LTE network and band config (items 71-90)
702 LTE_BAND_ENABLE_25 = 71, // LTE band 25 enable
703 LTE_BAND_ENABLE_26 = 72, // LTE band 26 enable
704 LTE_BAND_ENABLE_41 = 73, // LTE band 41 enable
706 LTE_SCAN_PRIORITY_25 = 74, // LTE band 25 scan priority
707 LTE_SCAN_PRIORITY_26 = 75, // LTE band 26 scan priority
708 LTE_SCAN_PRIORITY_41 = 76, // LTE band 41 scan priority
710 LTE_HIDDEN_BAND_PRIORITY_25 = 77, // LTE hidden band 25 priority
711 LTE_HIDDEN_BAND_PRIORITY_26 = 78, // LTE hidden band 26 priority
712 LTE_HIDDEN_BAND_PRIORITY_41 = 79, // LTE hidden band 41 priority
715 enum ResetNvType : int32_t {
716 RELOAD, // reload all NV items
717 ERASE, // erase NV reset (SCRTN)
718 FACORY_RESET, // factory reset (RTN)
721 enum HardwareConfigType : int32_t {
726 enum HardwareConfigState : int32_t {
732 enum LceStatus : int32_t {
738 enum CarrierMatchType : int32_t {
739 ALL = 0, // Apply to all carriers with the same mcc/mnc
740 SPN = 1, // Use SPN and mcc/mnc to identify the carrier
741 IMSI_PREFIX = 2, // Use IMSI prefix and mcc/mnc to identify the carrier
742 GID1 = 3, // Use GID1 and mcc/mnc to identify the carrier
743 GID2 = 4, // Use GID2 and mcc/mnc to identify the carrier
746 struct NeighboringCell {
747 string cid; // Combination of LAC and Cell Id in 32 bits in GSM.
748 // Upper 16 bits is LAC and lower 16 bits
749 // is CID (as described in TS 27.005)
750 // Primary Scrambling Code (as described in TS 25.331)
752 // Valid values are hexadecimal 0x0000 - 0xffffffff.
753 int32_t rssi; // Received RSSI in GSM,
754 // Level index of CPICH Received Signal Code Power in UMTS
757 enum CdmaSmsDigitMode : int32_t {
758 FOUR_BIT, // DTMF digits
762 enum CdmaSmsNumberMode : int32_t {
767 enum CdmaSmsNumberType : int32_t {
769 INTERNATIONAL_OR_DATA_IP, // INTERNATIONAL is used when number mode is not data
771 // address. DATA_IP is used when the number mode is data
773 NATIONAL_OR_INTERNET_MAIL, // NATIONAL is used when the number mode is not data
774 // network address. INTERNET_MAIL is used when the number
775 // mode is data network address. For INTERNET_MAIL, in
776 // the address data "digits", each byte contains an ASCII
778 // Examples are "x@y.com,a@b.com - ref
779 // TIA/EIA-637A 3.4.3.3
782 ALPHANUMERIC, // GSM SMS: address value is GSM 7-bit chars
787 enum CdmaSmsNumberPlan : int32_t {
789 TELEPHONY, // CCITT E.164 and E.163, including ISDN plan
806 enum CdmaSmsSubaddressType : int32_t {
807 NSAP, // CCITT X.213 or ISO 8348 AD2
808 USER_SPECIFIED, // e.g. X.25
811 enum CdmaSmsErrorClass : int32_t {
816 enum CdmaSmsWriteArgsStatus : int32_t {
823 enum CellInfoType : int32_t {
831 enum TimeStampType : int32_t {
839 enum ApnAuthType : int32_t {
840 NO_PAP_NO_CHAP, // PAP and CHAP is never performed.
841 PAP_NO_CHAP, // PAP may be performed; CHAP is never performed.
842 NO_PAP_CHAP, // CHAP may be performed; PAP is never performed.
843 PAP_CHAP // PAP / CHAP may be performed - baseband dependent.
846 enum RadioTechnologyFamily : int32_t {
847 THREE_GPP, // 3GPP Technologies - GSM, WCDMA
848 THREE_GPP2 // 3GPP2 Technologies - CDMA
851 enum RadioCapabilityPhase : int32_t {
852 CONFIGURED = 0, // Logical Modem's (LM) initial value
853 // and value after FINISH completes
854 START = 1, // START is sent before APPLY and indicates that an
855 // APPLY is forthcoming with these same parameters
856 APPLY = 2, // APPLY is sent after all LM's receive START and returned
857 // RadioCapability.status = 0. If any START's fail, hal
858 // implementation must not send APPLY.
859 UNSOL_RSP = 3, // UNSOL_RSP is sent with unsol radioCapability()
860 FINISH = 4 // FINISH is sent after all commands have completed. If an
861 // error occurs in any previous command, the
862 // RadioAccessesFamily and logicalModemUuid fields must be
863 // the prior configuration thus restoring the configuration
864 // to the previous value. An error returned by FINISH
865 // will generally be ignored or may cause that logical
866 // modem to be removed from service.
869 enum RadioCapabilityStatus : int32_t {
870 NONE = 0, // This parameter has no meaning with
871 // RadioCapabilityPhase:START, RadioCapabilityPhase:APPLY
872 SUCCESS = 1, // Tell modem the action transaction of set radio
873 // capability was success with RadioCapabilityPhase:FINISH
874 FAIL = 2, // Tell modem the action transaction of set radio
875 // capability is fail with RadioCapabilityPhase:FINISH.
878 enum RadioAccessFamily : int32_t {
879 UNKNOWN = 1 << RadioTechnology:UNKNOWN,
880 GPRS = 1 << RadioTechnology:GPRS,
881 EDGE = 1 << RadioTechnology:EDGE,
882 UMTS = 1 << RadioTechnology:UMTS,
883 IS95A = 1 << RadioTechnology:IS95A,
884 IS95B = 1 << RadioTechnology:IS95B,
885 ONE_X_RTT = 1 << RadioTechnology:ONE_X_RTT,
886 EVDO_0 = 1 << RadioTechnology:EVDO_0,
887 EVDO_A = 1 << RadioTechnology:EVDO_A,
888 HSDPA = 1 << RadioTechnology:HSDPA,
889 HSUPA = 1 << RadioTechnology:HSUPA,
890 HSPA = 1 << RadioTechnology:HSPA,
891 EVDO_B = 1 << RadioTechnology:EVDO_B,
892 EHRPD = 1 << RadioTechnology:EHRPD,
893 LTE = 1 << RadioTechnology:LTE,
894 HSPAP = 1 << RadioTechnology:HSPAP,
895 GSM = 1 << RadioTechnology:GSM,
896 TD_SCDMA = 1 << RadioTechnology:TD_SCDMA,
897 LTE_CA = 1 << RadioTechnology:LTE_CA
900 enum UssdModeType : int32_t {
901 NOTIFY, // USSD-Notify
902 REQUEST, // USSD-Request
903 NW_RELEASE, // Session terminated by network
904 LOCAL_CLIENT, // other local client (eg, SIM Toolkit) has responded
905 NOT_SUPPORTED, // Operation not supported
906 NW_TIMEOUT, // Network timeout
909 enum SimRefreshType : int32_t {
910 SIM_FILE_UPDATE = 0, // A file on SIM has been updated.
911 SIM_INIT = 1, // SIM initialized. All files should be re-read.
912 SIM_RESET = 2 // SIM reset. SIM power required, SIM may be locked a
913 // nd all files must be re-read.
916 enum SrvccState :int32_t {
917 HANDOVER_STARTED = 0,
918 HANDOVER_COMPLETED = 1,
920 HANDOVER_CANCELED = 3
923 enum UiccSubActStatus : int32_t {
928 enum SubscriptionType : int32_t {
934 enum DataProfileInfoType : int32_t {
940 enum PhoneRestrictedState : int32_t {
941 NONE = 0x00, // No restriction at all including voice/SMS/USSD/SS/AV64
943 CS_EMERGENCY = 0x01, // Block emergency call due to restriction. But allow all
944 // normal voice/SMS/USSD/SS/AV64.
945 CS_NORMAL = 0x02, // Block all normal voice/SMS/USSD/SS/AV64 due to
946 // restriction. Only Emergency call allowed.
947 CS_ALL = 0x04, // Block all voice/SMS/USSD/SS/AV64 including emergency
948 // call due to restriction.
949 PS_ALL = 0x10 // Block packet data access due to restriction.
952 enum CdmaCallWaitingNumberPresentation : int32_t {
958 enum CdmaCallWaitingNumberType : int32_t {
962 NETWORK_SPECIFIC = 3,
966 enum CdmaCallWaitingNumberPlan : int32_t {
975 enum CdmaOtaProvisionStatus : int32_t {
977 SPC_RETRIES_EXCEEDED,
990 /* Names of the CDMA info records (C.S0005 section 3.7.5) */
991 enum CdmaInfoRecName : int32_t {
994 CALLING_PARTY_NUMBER,
1005 /* Redirecting Number Information Record as defined in C.S0005 section 3.7.5.11 */
1006 enum CdmaRedirectingReason : int32_t {
1008 CALL_FORWARDING_BUSY = 1,
1009 CALL_FORWARDING_NO_REPLY = 2,
1010 CALLED_DTE_OUT_OF_ORDER = 9,
1011 CALL_FORWARDING_BY_THE_CALLED_DTE = 10,
1012 CALL_FORWARDING_UNCONDITIONAL = 15,
1016 enum SsServiceType : int32_t {
1038 enum SsRequestType : int32_t {
1046 enum SsTeleserviceType : int32_t {
1047 ALL_TELE_AND_BEARER_SERVICES,
1050 ALL_DATA_TELESERVICES,
1052 ALL_TELESERVICES_EXCEPT_SMS
1055 enum SuppServiceClass : int32_t {
1062 DATA_ASYNC = 1 << 5,
1068 struct RadioResponseInfo {
1069 RadioResponseType type; // Response type
1070 int32_t serial; // Serial number of the request
1071 RadioError error; // Response error
1077 PersoSubstate persoSubstate; // applicable only if app_state == SUBSCRIPTION_PERSO
1078 string aidPtr; // e.g., from 0xA0, 0x00 -> 0x41,
1081 int32_t pin1Replaced; // applicable to USIM, CSIM and ISIM
1087 CardState cardState;
1088 PinState universalPinState; // applicable to USIM and CSIM
1089 int32_t gsmUmtsSubscriptionAppIndex; // value < RadioConst:CARD_MAX_APPS, -1 if none
1090 int32_t cdmaSubscriptionAppIndex; // value < RadioConst:CARD_MAX_APPS, -1 if none
1091 int32_t imsSubscriptionAppIndex; // value < RadioConst:CARD_MAX_APPS, -1 if none
1092 vec<AppStatus> applications; // size <= RadioConst:CARD_MAX_APPS
1096 * User-to-User Signaling Information defined in 3GPP 23.087 v8.0
1099 UusType uusType; // UUS Type
1100 UusDcs uusDcs; // UUS Data Coding Scheme
1101 string uusData; // UUS data
1106 int32_t index; // Connection Index for use with, eg, AT+CHLD
1107 int32_t toa; // type of address, eg 145 = intl
1108 bool isMpty; // true if is mpty call
1109 bool isMT; // true if call is mobile terminated
1110 uint8_t als; // ALS line indicator if available (0 = line 1)
1111 bool isVoice; // true if this is is a voice call
1112 bool isVoicePrivacy; // true if CDMA voice privacy mode is active
1113 string number; // Remote party number
1114 CallPresentation numberPresentation;
1115 string name; // Remote party name
1116 CallPresentation namePresentation;
1117 vec<UusInfo> uusInfo; // Vector of User-User Signaling Information
1123 vec<UusInfo> uusInfo; // Vector of User-User Signaling Information
1126 struct LastCallFailCauseInfo {
1127 LastCallFailCause causeCode;
1131 struct GsmSignalStrength {
1132 uint32_t signalStrength; // Valid values are (0-61, 99) as defined in
1134 uint32_t bitErrorRate; // bit error rate (0-7, 99) as defined in TS 27.007 8.5
1135 int32_t timingAdvance; // Timing Advance in bit periods. 1 bit period = 48/13 us.
1136 // INT_MAX denotes invalid value
1139 struct WcdmaSignalStrength{
1140 int32_t signalStrength; // Valid values are (0-96, 99) as defined in
1142 int32_t bitErrorRate; // bit error rate (0-49, 99) as defined in TS 27.007 8.69
1145 struct CdmaSignalStrength {
1146 uint32_t dbm; // This value is the actual RSSI
1147 // value multiplied by -1. Example: If the
1148 // actual RSSI is -75, then this response value will
1150 uint32_t ecio; // This value is the actual
1151 // Ec/Io multiplied by -10. Example: If the
1152 // actual Ec/Io is -12.5 dB, then this response value
1156 struct EvdoSignalStrength {
1157 uint32_t dbm; // This value is the actual
1158 // RSSI value multiplied by -1.
1159 // Example: If the actual RSSI is -75,
1160 // then this response value will be 75.
1161 uint32_t ecio; // This value is the actual
1162 // Ec/Io multiplied by -10. Example: If the
1163 // actual Ec/Io is -12.5 dB, then this response value
1165 uint32_t signalNoiseRatio; // Valid values are 0-8. 8 is the highest signal to
1169 struct LteSignalStrength {
1170 uint32_t signalStrength; // Valid values are (0-31, 99) as defined in
1172 uint32_t rsrp; // The current Reference Signal Receive Power in dBm
1174 // Range: 44 to 140 dBm
1175 // INT_MAX: 0x7FFFFFFF denotes invalid value.
1176 // Reference: 3GPP TS 36.133 9.1.4
1177 uint32_t rsrq; // The current Reference Signal Receive Quality in dB
1178 // multiplied by -1.
1179 // Range: 20 to 3 dB.
1180 // INT_MAX: 0x7FFFFFFF denotes invalid value.
1181 // Reference: 3GPP TS 36.133 9.1.7
1182 int32_t rssnr; // The current reference signal signal-to-noise ratio in
1184 // Range: -200 to +300 (-200 = -20.0 dB, +300 = 30dB).
1185 // INT_MAX : 0x7FFFFFFF denotes invalid value.
1186 // Reference: 3GPP TS 36.101 8.1.1
1187 uint32_t cqi; // The current Channel Quality Indicator.
1189 // INT_MAX : 0x7FFFFFFF denotes invalid value.
1190 // Reference: 3GPP TS 36.101 9.2, 9.3, A.4
1191 uint32_t timingAdvance; // timing advance in micro seconds for a one way trip
1192 // from cell to device.
1193 // Approximate distance is calculated using
1194 // 300m/us * timingAdvance.
1195 // Range: 0 to 0x7FFFFFFE
1196 // INT_MAX : 0x7FFFFFFF denotes invalid value.
1197 // Reference: 3GPP 36.321 section 6.1.3.5
1198 // also: http://www.cellular-planningoptimization.com/2010/02/timing-advance-with-calculation.html
1201 struct TdScdmaSignalStrength {
1202 uint32_t rscp; // The Received Signal Code Power in dBm multipled by -1.
1203 // Range : 25 to 120
1204 // INT_MAX: 0x7FFFFFFF denotes invalid value.
1205 // Reference: 3GPP TS 25.123, section 9.1.1.1
1208 struct SignalStrength {
1209 GsmSignalStrength gw;
1210 CdmaSignalStrength cdma;
1211 EvdoSignalStrength evdo;
1212 LteSignalStrength lte;
1213 TdScdmaSignalStrength tdScdma;
1216 struct SendSmsResult {
1217 int32_t messageRef; // TP-Message-Reference for GSM, and BearerData MessageId
1218 // for CDMA (See 3GPP2 C.S0015-B, v2.0, table 4.5-1)
1219 string ackPDU; // or empty string if n/a
1220 int32_t errorCode; // See 3GPP 27.005, 3.2.5 for GSM/UMTS,
1221 // 3GPP2 N.S0005 (IS-41C) Table 171 for CDMA,
1222 // -1 if unknown or not applicable
1225 struct SetupDataCallResult {
1226 int32_t status; // A RadioDataCallFailCause, 0 which is
1227 // RadioDataCallFailCause:NONE if no error
1228 int32_t suggestedRetryTime; // If status != 0, this fields indicates the suggested
1229 // retry back-off timer value RIL wants to override the
1230 // one pre-configured in FW.
1231 // The unit is miliseconds.
1232 // The value < 0 means no value is suggested.
1233 // The value 0 means retry must be done ASAP.
1234 // The value of INT_MAX(0x7fffffff) means no retry.
1235 int32_t cid; // Context ID, uniquely identifies this call
1236 int32_t active; // 0=inactive, 1=active/physical link down,
1237 // 2=active/physical link up */
1238 string type; // One of the PDP_type values in TS 27.007 section 10.1.1.
1239 // For example, "IP", "IPV6", "IPV4V6", or "PPP". If
1241 // RadioDataCallFailCause:ONLY_SINGLE_BEARER_ALLOWED this
1242 // is the type supported such as "IP" or "IPV6"
1243 string ifname; // The network interface name
1244 string addresses; // A space-delimited list of addresses with optional "/"
1245 // prefix length, e.g., "192.0.1.3" or
1246 // "192.0.1.11/16 2001:db8::1/64".
1247 // Typically 1 IPv4 or 1 IPv6 or
1248 // one of each. If the prefix length is absent the
1249 // addresses are assumed to be point to point with IPv4
1250 // having a prefix length of 32 and IPv6 128.
1251 string dnses; // A space-delimited list of DNS server addresses,
1252 // e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1".
1253 // Empty if no dns server addresses returned.
1254 string gateways; // A space-delimited list of default gateway addresses,
1255 // e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1".
1256 // When empty, the addresses represent
1257 // point to point connections.
1258 string pcscf; // the Proxy Call State Control Function address
1259 // via PCO(Protocol Configuration Option) for IMS client.
1260 int32_t mtu; // MTU received from network
1261 // Value <= 0 means network has either not sent a
1262 // value or sent an invalid value
1266 int32_t command; // one of the commands listed for TS 27.007 +CRSM
1267 int32_t fileId; // EF id
1268 string path; // "pathid" from TS 27.007 +CRSM command.
1269 // Path is in hex asciii format eg "7f205f70"
1270 // Path must always be provided.
1271 int32_t p1; // Values of p1, p2 and p3 defined as per 3GPP TS 51.011
1274 string data; // information to be written to the SIM
1276 string aid; // AID value, See ETSI 102.221 8.1 and 101.220 4, empty
1277 // string if no value.
1280 struct IccIoResult {
1283 string simResponse; // In hex string format ([a-fA-F0-9]*), except for
1284 // SIM_AUTHENTICATION response for which it is in
1285 // Base64 format, see 3GPP TS 31.102 7.1.2
1288 struct VoiceRegStateResult {
1290 int32_t lac; // LAC if registered on a GSM/WCDMA system or
1291 // -1 if not.Valid LAC are 0x0000 - 0xffff
1292 int32_t cid; // CID. if registered on a * GSM/WCDMA or -1 if not
1293 // Valid CID are 0x00000000 - 0xffffffff
1294 // In GSM, CID is Cell ID (see TS 27.007) in 16 bits
1295 // In UMTS, CID is UMTS Cell Identity (see TS 25.331)
1297 int32_t rat; // indicates the available voice radio technology,
1298 // valid values as defined by RIL_RadioTechnology.
1299 int32_t baseStationId; // Base Station ID. if registered on a CDMA
1300 // system or -1 if not. Base Station ID in decimal format
1301 int32_t baseStationLatitude; // Base Station latitude. if registered on a
1302 // CDMA system or -1 if not. Base Station latitude is a
1303 // decimal number as specified in 3GPP2 C.S0005-A v6.0.
1304 // It is represented in units of 0.25 seconds and ranges
1305 // from -1296000 to 1296000, both values inclusive
1306 // (corresponding to a range of -90 to +90 degrees).
1307 int32_t baseStationLongitude; // Base Station longitude. if registered on a
1308 // CDMA system or -1 if not. Base Station
1309 // longitude is a decimal number as specified in
1310 // 3GPP2 C.S0005-A v6.0. It is represented in
1311 // units of 0.25 seconds and ranges from -2592000
1312 // to 2592000, both values inclusive (corresponding
1313 // to a range of -180 to +180 degrees).
1314 bool cssSupported; // concurrent services support indicator. if
1315 // registered on a CDMA system.
1316 // false - Concurrent services not supported,
1317 // true - Concurrent services supported
1318 int32_t systemId; // System ID. if registered on a CDMA system or
1319 // -1 if not. Valid System ID are 0 - 32767
1320 int32_t networkId; // Network ID. if registered on a CDMA system or
1321 // -1 if not. Valid System ID are 0 - 65535
1322 int32_t roamingIndicator; // TSB-58 Roaming Indicator if registered
1323 // on a CDMA or EVDO system or -1 if not.
1324 // Valid values are 0-255.
1325 int32_t systemIsInPrl; // indicates whether the current system is in the
1326 // PRL if registered on a CDMA or EVDO system or -1 if
1327 // not. 0=not in the PRL, 1=in the PRL
1328 int32_t defaultRoamingIndicator; // default Roaming Indicator from the PRL,
1329 // if registered on a CDMA or EVDO system or -1 if not.
1330 // Valid values are 0-255.
1331 int32_t reasonForDenial; // reasonForDenial if registration state is 3
1332 // (Registration denied) this is an enumerated reason why
1333 // registration was denied. See 3GPP TS 24.008,
1334 // 10.5.3.6 and Annex G.
1336 // 1 - Authentication Failure
1337 // 2 - IMSI unknown in HLR
1340 // 5 - PLMN not allowed
1341 // 6 - Location area not allowed
1342 // 7 - Roaming not allowed
1343 // 8 - No Suitable Cells in this Location Area
1344 // 9 - Network failure
1345 // 10 - Persistent location update reject
1346 // 11 - PLMN not allowed
1347 // 12 - Location area not allowed
1348 // 13 - Roaming not allowed in this Location Area
1349 // 15 - No Suitable Cells in this Location Area
1350 // 17 - Network Failure
1352 // 21 - Sync Failure
1354 // 23 - GSM Authentication unacceptable
1355 // 25 - Not Authorized for this CSG
1356 // 32 - Service option not supported
1357 // 33 - Requested service option not subscribed
1358 // 34 - Service option temporarily out of order
1359 // 38 - Call cannot be identified
1360 // 48-63 - Retry upon entry into a new cell
1361 // 95 - Semantically incorrect message
1362 // 96 - Invalid mandatory information
1363 // 97 - Message type non-existent or not implemented
1364 // 98 - Message type not compatible with protocol state
1365 // 99 - Information element non-existent or not implemented
1366 // 100 - Conditional IE error
1367 // 101 - Message not compatible with protocol state
1368 // 111 - Protocol error, unspecified
1369 int32_t psc; // Primary Scrambling Code of the current
1370 // cell as described in TS 25.331, in hexadecimal
1371 // format, or -1 if unknown or not registered
1372 // to a UMTS network.
1375 struct DataRegStateResult {
1376 RegState regState; // Valid reg states are NOT_REG_MT_NOT_SEARCHING_OP,
1377 // REG_HOME, NOT_REG_MT_SEARCHING_OP, REG_DENIED,
1378 // UNKNOWN, REG_ROAMING defined in RegState
1379 int32_t lac; // LAC if registered or -1 if not
1380 // valid LAC are 0x0000 - 0xffff
1381 int32_t cid; // CID if registered or -1 if not
1382 // valid CID are 0x00000000 - 0x0fffffff
1383 int32_t rat; // indicates the available data radio technology,
1384 // valid values as defined by RIL_RadioTechnology.
1385 int32_t reasonDataDenied; // if registration state is 3 (Registration
1386 // denied) this is an enumerated reason why
1387 // registration was denied. See 3GPP TS 24.008,
1388 // Annex G.6 "Additonal cause codes for GMM".
1389 // 7 == GPRS services not allowed
1390 // 8 == GPRS services and non-GPRS services not allowed
1391 // 9 == MS identity cannot be derived by the network
1392 // 10 == Implicitly detached
1393 // 14 == GPRS services not allowed in this PLMN
1394 // 16 == MSC temporarily not reachable
1395 // 40 == No PDP context activated
1396 int32_t maxDataCalls; // The maximum number of simultaneous Data Calls that
1397 // must be established using setupDataCall().
1398 // The values below are optional LTE location information in decimal.
1399 // If a value is unknown that value must be -1.
1400 int32_t tac; // a 16-bit Tracking Area Code.
1401 int32_t phyCid; // a 0-503 Physical Cell Identifier.
1402 int32_t eci; // a 28-bit E-UTRAN Cell Identifier.
1403 int32_t csgid; // a 27-bit Closed Subscriber Group Identity.
1404 int32_t tadv; // a 6-bit timing advance value.
1407 // See also com.android.internal.telephony.gsm.CallForwardInfo
1408 struct CallForwardInfo {
1409 CallForwardInfoStatus status; // For queryCallForwardStatus()
1410 // status is DISABLE (Not used by vendor code currently)
1411 // For setCallForward():
1413 // DISABLE, ENABLE, INTERROGATE, REGISTRATION, ERASURE
1414 int32_t reason; // from TS 27.007 7.11 "reason"
1415 int32_t serviceClass; // From 27.007 +CCFC/+CLCK "class"
1416 // See table for Android mapping from
1418 // 0 means user doesnt input class
1419 int32_t toa; // "type" from TS 27.007 7.11
1420 string number; // "number" from TS 27.007 7.11.
1421 int32_t timeSeconds;
1424 // Response struct used in responseQueryAvailableNetworks
1425 struct OperatorInfo {
1426 string alphaLong; // long alpha ONS or EONS
1427 string alphaShort; // short alpha ONS or EONS
1428 string operatorNumeric; // 5 or 6 digit numeric code (MCC + MNC)
1429 OperatorStatus status;
1432 struct SmsWriteArgs {
1433 SmsWriteArgsStatus status; // Status of message. See TS 27.005 3.1
1434 string pdu; // PDU of message to write, as an ASCII hex string less
1435 // the SMSC address, the TP-layer length is strlen(pdu)/2.
1436 string smsc; // SMSC address in GSM BCD format prefixed by a length
1437 // byte (as expected by TS 27.005) or NULL for default
1441 struct CdmaSmsAddress {
1442 CdmaSmsDigitMode digitMode; // CdmaSmsDigitMode is of two types : 4 bit and 8 bit.
1443 // For 4-bit type, only "digits" field defined below in
1444 // this struct is used.
1445 CdmaSmsNumberMode numberMode; // Used only when digitMode is 8-bit
1446 CdmaSmsNumberType numberType; // Used only when digitMode is 8-bit.
1447 // To specify an international address, use the following:
1448 // digitMode = CdmaSmsDigitMode:EIGHT_BIT:
1449 // numberMode = CdmaSmsNumberMode:NOT_DATA_NETWORK
1450 // numberType = CdmaSmsNumberType:INTERNATIONAL_OR_DATA_IP
1451 // numberPlan = CdmaSmsNumberPlan:TELEPHONY
1452 // numberOfDigits = number of digits
1453 // digits = ASCII digits, e.g. '1', '2', '3', '4', and '5'
1454 CdmaSmsNumberPlan numberPlan; // Used only when digitMode is 8-bit
1455 vec<uint8_t> digits; // Each byte in this array represents a 4 bit or 8-bit digit
1459 struct CdmaSmsSubaddress {
1460 CdmaSmsSubaddressType subaddressType;
1461 bool odd; // true means the last byte's lower 4 bits must be ignored
1462 vec<uint8_t> digits; // Each byte respresents an 8-bit digit of subaddress data
1465 struct CdmaSmsMessage {
1466 int32_t teleserviceId;
1467 bool isServicePresent;
1468 int32_t serviceCategory;
1469 CdmaSmsAddress address;
1470 CdmaSmsSubaddress subAddress;
1471 vec<uint8_t> bearerData; // 3GPP2 C.S0015-B, v2.0,
1475 CdmaSmsErrorClass errorClass;
1476 int32_t smsCauseCode; // As defined in N.S00005, 6.5.2.125.
1477 // Currently, only 35 (resource shortage) and
1478 // 39 (other terminal problem) are reported.
1481 struct CdmaBroadcastSmsConfigInfo {
1482 int32_t serviceCategory; // serviceCategory defines a Broadcast message identifier
1483 // whose value is 0x0000 - 0xFFFF as defined in
1484 // C.R1001G 9.3.1 and 9.3.2.
1485 int32_t language; // language code of Broadcast Message
1486 // whose value is 0x00 - 0x07 as defined in C.R1001G 9.2.
1487 bool selected; // selected false means message types specified in
1488 // serviceCategory are not accepted, while true means
1492 struct CdmaSmsWriteArgs {
1493 CdmaSmsWriteArgsStatus status; // Status of message. See TS 27.005 3.1
1494 CdmaSmsMessage message;
1499 * Which types of Cell Broadcast Message (CBM) are to be received by the ME
1501 * fromServiceID - uToServiceID defines a range of CBM message identifiers
1502 * whose value is 0x0000 - 0xFFFF as defined in TS 23.041 9.4.1.2.2 for GMS
1503 * and 9.4.4.2.2 for UMTS. All other values must be treated as empty
1506 * fromCodeScheme - uToCodeScheme defines a range of CBM data coding schemes
1507 * whose value is 0x00 - 0xFF as defined in TS 23.041 9.4.1.2.3 for GMS
1508 * and 9.4.4.2.3 for UMTS.
1509 * All other values must be treated as empty CBM data coding scheme.
1511 * selected false means message types specified in <fromServiceId, toServiceId>
1512 * and <fromCodeScheme, toCodeScheme>are not accepted, while true means accepted.
1514 struct GsmBroadcastSmsConfigInfo {
1515 int32_t fromServiceId;
1516 int32_t toServiceId;
1517 int32_t fromCodeScheme;
1518 int32_t toCodeScheme;
1522 struct CellIdentityGsm {
1523 string mcc; // 3-digit Mobile Country Code, 0..999, INT_MAX if unknown
1524 string mnc; // 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if
1526 int32_t lac; // 16-bit Location Area Code, 0..65535, INT_MAX if unknown
1527 int32_t cid; // 16-bit GSM Cell Identity described in
1528 // TS 27.007, 0..65535, INT_MAX if unknown
1529 int32_t arfcn; // 16-bit GSM Absolute RF channel number, INT_MAX if
1531 uint8_t bsic; // 6-bit Base Station Identity Code, 0xFF if unknown
1534 struct CellIdentityWcdma {
1535 string mcc; // 3-digit Mobile Country Code, 0..999, INT_MAX if unknown
1536 string mnc; // 2 or 3-digit Mobile Network Code, 0..999, INT_MAX
1538 int32_t lac; // 16-bit Location Area Code, 0..65535, INT_MAX if unknown
1539 int32_t cid; // 28-bit UMTS Cell Identity described in
1540 // TS 25.331, 0..268435455, INT_MAX if unknown
1541 int32_t psc; // 9-bit UMTS Primary Scrambling Code described in
1542 // TS 25.331, 0..511, INT_MAX if unknown
1543 int32_t uarfcn; // 16-bit UMTS Absolute RF Channel Number, INT_MAX if
1547 struct CellIdentityCdma {
1548 int32_t networkId; // Network Id 0..65535, INT_MAX if unknown
1549 int32_t systemId; // CDMA System Id 0..32767, INT_MAX if unknown
1550 int32_t basestationId; // Base Station Id 0..65535, INT_MAX if unknown
1551 int32_t longitude; // Longitude is a decimal number as specified in
1552 // 3GPP2 C.S0005-A v6.0. It is represented in units of
1553 // 0.25 seconds and ranges from -2592000 to 2592000,
1554 // both values inclusive (corresponding to a range of -180
1555 // to +180 degrees). INT_MAX if unknown
1556 int32_t latitude; // Latitude is a decimal number as specified in
1557 // 3GPP2 C.S0005-A v6.0. It is represented in units of
1558 // 0.25 seconds and ranges from -1296000 to 1296000,
1559 // both values inclusive (corresponding to a range of -90
1560 // to +90 degrees). INT_MAX if unknown
1563 struct CellIdentityLte {
1564 string mcc; // 3-digit Mobile Country Code, 0..999, INT_MAX if unknown
1565 string mnc; // 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if
1567 int32_t ci; // 28-bit Cell Identity described in TS TS 27.007, INT_MAX
1569 int32_t pci; // physical cell id 0..503, INT_MAX if unknown
1570 int32_t tac; // 16-bit tracking area code, INT_MAX if unknown
1571 int32_t earfcn; // 18-bit LTE Absolute RC Channel Number, INT_MAX if
1575 struct CellIdentityTdscdma {
1576 string mcc; // 3-digit Mobile Country Code, 0..999, INT_MAX if unknown
1577 string mnc; // 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if
1579 int32_t lac; // 16-bit Location Area Code, 0..65535, INT_MAX if
1581 int32_t cid; // 28-bit UMTS Cell Identity described in
1582 // TS 25.331, 0..268435455, INT_MAX if unknown
1583 int32_t cpid; // 8-bit Cell Parameters ID described in
1584 // TS 25.331, 0..127, INT_MAX if unknown
1587 struct CellInfoGsm {
1588 CellIdentityGsm cellIdentityGsm;
1589 GsmSignalStrength signalStrengthGsm;
1592 struct CellInfoWcdma {
1593 CellIdentityWcdma cellIdentityWcdma;
1594 WcdmaSignalStrength signalStrengthWcdma;
1597 struct CellInfoCdma {
1598 CellIdentityCdma cellIdentityCdma;
1599 CdmaSignalStrength signalStrengthCdma;
1600 EvdoSignalStrength signalStrengthEvdo;
1603 struct CellInfoLte {
1604 CellIdentityLte cellIdentityLte;
1605 LteSignalStrength signalStrengthLte;
1608 struct CellInfoTdscdma {
1609 CellIdentityTdscdma cellIdentityTdscdma;
1610 TdScdmaSignalStrength signalStrengthTdscdma;
1614 CellInfoType cellInfoType; // cell type for selecting from union CellInfo
1615 bool registered; // true if this cell is registered false if not registered
1616 TimeStampType timeStampType; // type of time stamp represented by timeStamp
1617 uint64_t timeStamp; // Time in nanos as returned by ril_nano_time
1618 // Only one of the below vectors must be of size 1 based on the CellInfoType and others must be
1620 vec<CellInfoGsm> gsm; // Valid only if type = gsm and size = 1 else must be empty
1621 vec<CellInfoCdma> cdma; // Valid only if type = cdma and size = 1 else must be
1623 vec<CellInfoLte> lte; // Valid only if type = lte and size = 1 else must be
1625 vec<CellInfoWcdma> wcdma; // Valid only if type = wcdma and size = 1 else must be
1627 vec<CellInfoTdscdma> tdscdma; // Valid only if type = tdscdma and size = 1 else must be
1631 struct GsmSmsMessage {
1632 string smscPdu; // SMSC address in GSM BCD format prefixed by a length
1633 // byte (as expected by TS 27.005) or empty string for
1635 string pdu; // SMS in PDU format as an ASCII hex string less the
1636 // SMSC address. TP-Layer-Length is be "strlen(pdu)/2
1639 struct ImsSmsMessage {
1640 RadioTechnologyFamily tech;
1641 bool retry; // false == not retry, true == retry */
1642 int32_t messageRef; // Valid field if retry is set to true.
1643 // Contains messageRef from SendSmsResult stuct
1644 // corresponding to failed MO SMS.
1645 // Only one of the below vectors must be of size 1 based on the RadioTechnologyFamily and others
1646 // must be of size 0
1647 vec<CdmaSmsMessage> cdmaMessage; // Valid field if tech is 3GPP2 and size = 1 else must be
1649 vec<GsmSmsMessage> gsmMessage; // Valid field if tech is 3GPP and size = 1 else must be
1654 int32_t sessionId; // "sessionid" from TS 27.007 +CGLA command. Must be
1655 // ignored for +CSIM command.
1656 // Following fields are used to derive the APDU ("command" and "length"
1657 // values in TS 27.007 +CSIM and +CGLA commands).
1659 int32_t instruction;
1662 int32_t p3; // A negative P3 implies a 4 byte APDU.
1663 string data; // In hex string format ([a-fA-F0-9]*).
1666 struct NvWriteItem {
1671 struct SelectUiccSub {
1673 int32_t appIndex; // array subscriptor from
1674 // applications[RadioConst:CARD_MAX_APPS] in
1675 // getIccCardStatus()
1676 SubscriptionType subType;
1677 UiccSubActStatus actStatus;
1680 struct HardwareConfigModem {
1682 uint32_t rat; // bitset - ref. RadioTechnology.
1688 struct HardwareConfigSim {
1689 string modemUuid; // RadioConst:MAX_UUID_LENGTH is max length of the
1693 struct HardwareConfig {
1694 HardwareConfigType type;
1695 string uuid; // RadioConst:MAX_UUID_LENGTH is max length of the
1697 HardwareConfigState state;
1698 // Only one of the below vectors must have size = 1 based on the HardwareConfigType and other
1699 // must have size = 0.
1700 vec<HardwareConfigModem> modem; // Valid only if type is Modem and size = 1 else must be
1702 vec<HardwareConfigSim> sim; // Valid only if type is SIM or else emptyand size = 1
1703 // else must be empty
1706 struct DataProfileInfo {
1707 int32_t profileId; // id of the data profile
1708 string apn; // The APN to connect to
1709 string protocol; // One of the PDP_type values in TS 27.007 section 10.1.1.
1710 // For example, "IP", "IPV6", "IPV4V6", or "PPP".
1711 ApnAuthType authType;
1712 string user; // The username for APN, or empty string
1713 string password; // The password for APN, or empty string
1714 DataProfileInfoType type;
1715 int32_t maxConnsTime; // The period in seconds to limit the maximum connections
1716 int32_t maxConns; // The maximum connections during maxConnsTime
1717 int32_t waitTime; // The required wait time in seconds after a successful UE
1718 // initiated disconnect of a given PDN connection before
1719 // the device can send a new PDN connection request for
1721 bool enabled; // True to enable the profile, false to disable
1724 struct RadioCapability {
1725 int32_t session; // Unique session value defined by framework returned in
1726 // all "responses/unsol"
1727 RadioCapabilityPhase phase;
1728 RadioAccessFamily raf;
1729 string logicalModemUuid; // A UUID typically "com.xxxx.lmX where X is the logical
1730 // modem. RadioConst:MAX_UUID_LENGTH is the max
1732 RadioCapabilityStatus status;
1735 struct LceStatusInfo {
1736 LceStatus lceStatus;
1737 uint8_t actualIntervalMs; // actual LCE reporting interval,
1738 // meaningful only if LceStatus = ACTIVE.
1741 struct LceDataInfo {
1742 uint32_t lastHopCapacityKbps; // last-hop cellular capacity: kilobits/second.
1743 uint8_t confidenceLevel; // capacity estimate confidence: 0-100
1744 bool lceSuspended; // LCE report going to be suspended? (e.g., radio
1745 // moves to inactive state or network type change)
1746 // true = suspended;
1747 // false = not suspended.
1750 struct ActivityStatsInfo {
1751 uint32_t sleepModeTimeMs; // total time (in ms) when modem is in a low power or
1753 uint32_t idleModeTimeMs; // total time (in ms) when modem is awake but neither
1754 // the transmitter nor receiver are active/awake
1755 uint32_t[RadioConst:NUM_TX_POWER_LEVELS] txmModetimeMs;
1756 // Each index represent total time (in ms) during which
1757 // the transmitter is active/awake for a particular
1758 // power range as shown below.
1759 // index 0 = tx_power < 0dBm
1760 // index 1 = 0dBm < tx_power < 5dBm
1761 // index 2 = 5dBm < tx_power < 15dBm
1762 // index 3 = 15dBm < tx_power < 20dBm
1763 // index 4 = tx_power > 20dBm
1764 uint32_t rxModeTimeMs; // total time (in ms) for which receiver is
1765 // active/awake and the transmitter is inactive
1771 CarrierMatchType matchType; // Specify match type for the carrier.
1772 // If it’s ALL, matchData is empty string;
1773 // otherwise, matchData is the value for the match type.
1777 struct CarrierRestrictions {
1778 vec<Carrier> allowedCarriers; // whitelist for allowed carriers
1779 vec<Carrier> excludedCarriers; // blacklist for explicitly excluded carriers
1780 // which match allowed_carriers. Eg. allowedCarriers
1781 // match mcc/mnc, excludedCarriers has same mcc/mnc and
1782 // gid1 is ABCD. It means except the carrier whose gid1
1783 // is ABCD, all carriers with the same mcc/mnc are
1787 struct SuppSvcNotification {
1788 bool isMT; // notification type
1789 // false = MO intermediate result code
1790 // true = MT unsolicited result code
1791 int32_t code; // result code. See 27.007 7.17.
1792 int32_t index; // CUG index. See 27.007 7.17.
1793 int32_t type; // "type" from 27.007 7.17 (MT only).
1794 string number; // "number" from 27.007 7.17
1795 // (MT only, may be empty string).
1798 struct SimRefreshResult {
1799 SimRefreshType type;
1800 int32_t efId; // is the EFID of the updated file if the result is
1801 // SIM_FILE_UPDATE or 0 for any other result.
1802 string aid; // is AID(application ID) of the card application
1803 // See ETSI 102.221 8.1 and 101.220 4
1804 // For SIM_FILE_UPDATE result it must be set to AID of
1805 // application in which updated EF resides or it must be
1806 // empty string if EF is outside of an application.
1807 // For SIM_INIT result this field is set to AID of
1808 // application that caused REFRESH
1809 // For SIM_RESET result it is empty string.
1812 /* CDMA Signal Information Record as defined in C.S0005 section 3.7.5.5 */
1813 struct CdmaSignalInfoRecord {
1814 bool isPresent; // true if signal information record is present
1815 int8_t signalType; // as defined 3.7.5.5-1
1816 int8_t alertPitch; // as defined 3.7.5.5-2
1817 int8_t signal; // as defined 3.7.5.5-3, 3.7.5.5-4 or 3.7.5.5-5
1820 struct CdmaCallWaiting {
1821 string number; // Remote party number
1822 CdmaCallWaitingNumberPresentation numberPresentation;
1823 string name; // Remote party name
1824 CdmaSignalInfoRecord signalInfoRecord;
1825 // Number type/Number plan required to support International Call Waiting
1826 CdmaCallWaitingNumberType numbertype;
1827 CdmaCallWaitingNumberPlan numberPlan;
1831 * Display Info Rec as defined in C.S0005 section 3.7.5.1
1832 * Extended Display Info Rec as defined in C.S0005 section 3.7.5.16
1833 * Note: the Extended Display info rec contains multiple records of the
1834 * form: display_tag, display_len, and display_len occurrences of the
1835 * char field if the display_tag is not 10000000 or 10000001.
1836 * To save space, the records are stored consecutively in a byte buffer.
1837 * The display_tag, display_len and chari fields are all 1 byte.
1839 struct CdmaDisplayInfoRecord {
1840 string alphaBuf; // Max length = RadioConst:CDMA_ALPHA_INFO_BUFFER_LENGTH
1844 * Called Party Number Info Rec as defined in C.S0005 section 3.7.5.2
1845 * Calling Party Number Info Rec as defined in C.S0005 section 3.7.5.3
1846 * Connected Number Info Rec as defined in C.S0005 section 3.7.5.4
1848 struct CdmaNumberInfoRecord {
1849 string number; // Max length = RADIP_CDMA_NUMBER_INFO_BUFFER_LENGTH
1856 struct CdmaRedirectingNumberInfoRecord{
1857 CdmaNumberInfoRecord redirectingNumber;
1858 CdmaRedirectingReason redirectingReason; // redirectingReason is set to UNKNOWN if not included
1861 /* Line Control Information Record as defined in C.S0005 section 3.7.5.15 */
1862 struct CdmaLineControlInfoRecord {
1863 uint8_t lineCtrlPolarityIncluded;
1864 uint8_t lineCtrlToggle;
1865 uint8_t lineCtrlReverse;
1866 uint8_t lineCtrlPowerDenial;
1869 /* T53 CLIR Information Record */
1870 struct CdmaT53ClirInfoRecord {
1874 /* T53 Audio Control Information Record */
1875 struct CdmaT53AudioControlInfoRecord {
1880 struct CdmaInformationRecord {
1881 CdmaInfoRecName name;
1882 // Only one of the below vectors must have size = 1 based on the
1883 // CdmaInfoRecName. All other vectors must have size 0.
1884 vec<CdmaDisplayInfoRecord> display; // Display and Extended Display Info Rec
1885 vec<CdmaNumberInfoRecord> number; // Called Party Number, Calling Party Number, Connected
1887 vec<CdmaSignalInfoRecord> signal; // Signal Info Rec
1888 vec<CdmaRedirectingNumberInfoRecord> redir; // Redirecting Number Info Rec
1889 vec<CdmaLineControlInfoRecord> lineCtrl; // Line Control Info Rec
1890 vec<CdmaT53ClirInfoRecord> clir; // T53 CLIR Info Rec
1891 vec<CdmaT53AudioControlInfoRecord> audioCtrl; // T53 Audio Control Info Rec
1894 struct CdmaInformationRecords {
1895 vec<CdmaInformationRecord> infoRec; // Max length = RadioConst:CDMA_MAX_NUMBER_OF_INFO_RECS
1899 vec<CallForwardInfo> cfInfo; // This is the response data
1900 // for SS request to query call
1901 // forward status. see getCallForwardStatus()
1902 // Max size = RadioConst:NUM_SERVICE_CLASSES
1906 vec<int32_t> ssInfo; // This is the response data for all of the SS GET/SET
1907 // Radio requests. E.g. IRadio.getClir() returns
1908 // two ints, so first two values of ssInfo[] will be
1909 // used for response if serviceType is SS_CLIR and
1910 // requestType is SS_INTERROGATION
1911 // Max size = RadioConst:SS_INFO_MAX
1914 struct StkCcUnsolSsResult {
1915 SsServiceType serviceType;
1916 SsRequestType requestType;
1917 SsTeleserviceType teleserviceType;
1918 SuppServiceClass serviceClass;
1920 // Only one of the below vectors may contain values and other must be empty
1921 vec<SsInfoData> ssInfo; // Valid only for all SsserviceType except
1922 // SsServiceType:CF_* else empty.
1923 vec<CfData> cfData; // Valid for SsServiceType:CF_* else empty
1926 struct PcoDataInfo {
1927 int32_t cid; // Context ID, uniquely identifies this call
1928 string bearerProto; // One of the PDP_type values in TS 27.007 section 10.1.1.
1929 // For example, "IP", "IPV6", "IPV4V6"
1930 int32_t pcoId; // The protocol ID for this box. Note that only IDs from
1931 // FF00H - FFFFH are accepted. If more than one is
1932 // included from the network, multiple calls must be made
1933 // to send all of them.
1934 vec<uint8_t> contents; // Carrier-defined content. It is binary, opaque and
1935 // loosely defined in LTE Layer 3 spec 24.008