// repository.txt - used for controlling user-defined values in the RIL

// The same name must be used for each Request in the RequestTimeouts and RequestNumRetries groups.
// The request name must also match the value used in the mapping table in repository.cpp.
// <name>  = API request (please see complete list in rapid_ril/UTIL/ND/repository.cpp)
// <value> = AT command timeout (value in ms)
// If missing, default = "TimeoutAPIDefault" below (default is 10000ms)
Group RequestTimeouts
    EnterNetworkDepersonalization      40000
    Dial                               180000
    Hangup                             60000
    HangupWaitingOrBackground          60000
    HangupForegroundResumeBackground   60000
    SwitchHoldingAndActive             64000
    Conference                         60000
    UDUB                               80000
    SignalStrength                     20000
    Operator                          200000
    RadioPower                        240000
    SendSms                           360000
    SendSmsExpectMore                 360000    // network-dependent, IMC recommends 90 sec
    SetupDefaultPDP                   600000
    SendUSSD                          360000    // network-dependent, IMC recommends 90 sec
    CancelUSSD                         180000    // network-dependent, IMC recommends 90 sec
    GetCLIR                            120000
    SetCLIR                            120000
    QueryCallForwardStatus             180000    // network-dependent, IMC recommends 90 sec
    SetCallForward                     180000    // network-dependent, IMC recommends 90 sec
    QueryCallWaiting                   180000    // network-dependent, IMC recommends 90 sec
    SetCallWaiting                     180000    // network-dependent, IMC recommends 90 sec
    SmsAcknowledge                     120000
    Answer                             60000
    DeactivateDataCall                360000
    QueryFacilityLock                  60000
    SetFacilityLock                    60000
    ChangeBarringPassword              60000
    QueryNetworkSelectionMode         200000
    SetNetworkSelectionAutomatic      600000
    SetNetworkSelectionManual         600000
    QueryAvailableNetworks            600000
    RequestDtmfStart                   30000
    RequestDtmfStop                    30000
    SeperateConnection                 64000
    QueryCLIP                          120000
    SetBandMode                        120000
    QueryAvailableBandMode             120000
    StkGetProfile                      60000
    StkSetProfile                      60000
    StkSendEnvelopeCommand             60000
    StkSendTerminalResponse            60000
    ReportStkServiceIsRunning          60000
    StkSendEnvelopeWithStatus          60000
    StkHandleCallSetupRequestedFromSim 660000
    SetPreferredNetworkType           600000
    GetNeighboringCellIDs             600000
    GetCellInfoList                   600000
    ReportSmsMemoryStatus              120000
    GetIPAddress                       60000
    GetDNS                             60000
    SetInitialAttachApn               600000
    EnterSimPin                        40000
    EnterSimPin2                       40000
    ChangeSimPin                       40000
    ChangeSimPin2                      40000
    SimTransmitChannel                 60000
    SimOpenChannel                     60000
    SimCloseChannel                    60000
    SimTransmitBasic                   60000
    SimIO                              60000

Group InternalRequestTimeouts
    SilentPinEntry                     40000
    QuerySimSmsStoreStatus             60000


Group OtherTimeouts
    TimeoutCmdInit                      10000    // Value is in ms (if missing default = 5000ms)
    TimeoutAPIDefault                   20000   // Value is in ms (if missing default = 10000ms)
    TimeoutWaitForInit                  20000   // Value is in ms (if missing default = 10000ms)
    TimeoutWaitForXIREG                 400000  // Value is in ms (if missing default = 180000ms)


Group RILSettings
    TimeoutThresholdForRetry            20000   // If AT timeout <= threshold, then retry command ONCE.
                                                // Time is in ms.
                                                // A value of 0 means no retries.
                                                // (if missing default = 10000)


//   -"OpenPortRetries" is the number of attempts RIL makes to open gsmttyX ports before radio
//    reset is called.
//    Default is 30 if this setting is omitted.
//   -"OpenPortInterval" is the delay in ms between each open port attempt.
//    Default is 1000 if this setting is omitted (not defined in this file).
    OpenPortRetries                     30
    OpenPortInterval                    1000    // Value is in ms

// Pin Caching mode
// 1 - Pin caching in file system
// 2 - Pin caching in NVRAM
    PinCacheMode  2

// Settable values for the InitCmds group include:
//   PreInitCmds,  PreReinitCmds,  PreUnlockCmds,  PreSmsInitCmds
//  PostInitCmds, PostReinitCmds, PostUnlockCmds, PostSmsInitCmds
Group InitCmds


// Modem settings
Group Modem

// Possible values are: "rmnet" for MIPI HSI IPC, "usb" for USB HSIC IPC
    NetworkInterfaceNamePrefix        rmnet     // The number will be appended in RIL
                                                // Number appended = Context ID - 1
                                                // e.g. Context ID = 1, "rmnet0"
// MTU size - 1358 is the value recommended in 3GPP 23.060 for both support of IPv4 and IPv6 traffic
    MTU                         1358

// Modem resource name could be:
// - mipi_ipc for HSI (default)
// - USBHS/NCM for USB
// - USBHSIC/NCM for HSIC
    ModemDataChannelResourceName        mipi_ipc


// Minimum data channel index (number of direct channels reserved for tty in HSI)
// 2 for HSI (first channels reserved for MUX and traces)
// 0 for USB
    IpcDataChannelMin 0

// Enable modem power off in flightmode
// If set to 1 RRIL will request to power off the modem once flightmode is enabled
    EnableModemOffInFlightMode 0

// EnableCellInfo - Enable support for reporting of serving and neighbour cell info
//      If set to "1", RIL_REQUEST_GET_NEIGHBORING_CELL_IDS request is supported
//      If set to "0", RIL_REQUEST_GET_NEIGHBORING_CELL_IDS request is not supported
//      If missing, the default value will be "1" and cell info will be supported.
    EnableCellInfo              1

// EnableCipheringInd - Enable support for reporting of ciphering indication
//      If set to "1", Ciphering Indication is supported
//      If set to "0", Ciphering Indication is not supported
//      If missing, the default value will be "1" and Ciphering indication is
//      supported.
    EnableCipheringInd          1

//  Set Fast Dormancy Timer
//    "FDDelayTimer" = integer value in range of 1 to 60 (seconds)
//    "SCRITimer" = integer value in range of 1 to 120 (seconds)
//
//  Command will be sent upon device init.
//  If values are missing, then default modem values are used (default value is 0)
    FDDelayTimer                2
    SCRITimer                   30


// Fast Dormancy mode - Set Modem Autonomous Fast Dormancy (MAFD) mode
//      If set to "1", "OEM Managed": MAFD is off by default;  It can be
//          enabled/disabled by OEM middleware SW through OEM Hook command.
//      If set to "2", "Display Driven": MAFD is enabled by RIL_REQUEST_SCREEN_STATE(off)
//          and disabled by RIL_REQUEST_SCREEN_STATE(on).
//      If set to "3", "Always on": MAFD is enabled at boot time and remains on
//          during device power cycle.
//      If value is missing, default mode is "2": "Display Driven".
    FDMode                      1

// Temporary Out of Service (OoS) Notifications - Enable/disable support for
//      Temporary OoS notications.
// This setting is only supported on modems with dual-sim support (DSDS) and should
//    not be used otherwise.
//      If set to "0", Temporary OoS notifcations will not be supported
//      If set to "1", Temporary OoS notification will be supported
//      If missing, the default value will be "0" and notifications will not be
//          supported
//   TempOoSNotificationEnable    0

//Definition of the class of a apn type, as follows:
//1: always use a direct channel to the modem
//2: direct channel prefered, will fall back to a mux channel if no direct channel available
//3: always use a mux channel.
//
//Note: a 'direct channel' means a direct AP <=> modem connection without going through the GSM
//      MUX layer
   ApnTypeDefault    2
   ApnTypeDUN        2
   ApnTypeIMS        2
   ApnTypeCBS        2
   ApnTypeFOTA       2

//Total of direct channels reserved for data. The class 1 and class 2 apns
//should be defined accordingly.
   HsiDataDirect    5


// USSD - Enable/Disable support for Unstructured Supplementary Service Data
// DisableUSSD
//      If set to "1", USSD will be disabled, else if "0" enable
//      If missing, the default value will be "0" and USSD will be enabled
//   DisableUSSD      0

// Custom APN configuration
// These parameters are used to define the apn sent in the modem init command at startup
// When attaching LTE, the apn is sent to the network before receiving the CGCONTRDP
// APN type is mandatory and value should be "IP", "IPV6" or "IPV4V6"
// APN Name is optional
//   customAPNName    apn.example.com
//   customAPNType    IPV4V6

// System Capability settings - Set a modem's capabilities using various flags
//  These flags control the sending of init commands to a channel during initialization.
//      "VoiceCapable" - Set to "0" to disable voice calls, otherwise enabled by default.
//      "DataCapable" - Set to "0" to disable data calls, otherwise enabled by default.
//      "SmsOverCSCapable" - Set to "0" to disable SMS over CS, otherwise enabled by default.
//      "SmsOverPSCapable" - Set to "0" to disable SMS over PS, otherwise enabled by default.
//      "StkCapable" - Set to "0" to disable STK support, otherwise enabled by default.
//      "EnableXDATASTATReporting" - Set to "1" to enable data call status reporting, otherwise
//                                  disabled by default.
//      "IMSCapable" - Set to "1" to enable IMS support, otherwise disabled by default.
//      "SMSOverIPCapable" - Set to "1" to enable SMS over IP, otherwise disabled by default.
//      "SupportCGPIAF" - Set to "1" to support new implementation based on +CGPIAF direct format
//                        (for IMC IPV6 AT commands), or set to "0" to keep the current behavior.
//      "EnableSignalStrengthReporting" - Set to "1" configures the modem to report signal strength
//                          changes via an URC.
//    VoiceCapable                0
      DataCapable                 0
//    SmsOverCSCapable            0
//    SmsOverPSCapable            0
//    StkCapable                  0
//    EnableXDATASTATReporting    1
//    IMSCapable                  1
//    EnableSMSOverIP             1
//    SMSOverIPCapable            1
    SupportCGPIAF               0
    EnableSignalStrengthReporting 1

// IMEI blacklist - A list of default IMEIs which could be flashed to the device.  The device
//      will not register on a live network if any of these IMEIs are used.
//      IMEIs listed below must be separated by spaces.
    ImeiBlackList       000000000000000 004999010640000 // default IMEIs for IMC


// Log levels
Group Logging
    CallDropReporting           1    // 0: disable (default), 1: enable
    LogLevel                    2    // 4: Critical, 3: Warning, 2: Info, 1: Verbose


// Silo Configuration - A bitmask of the silos assigned for each channel.
// Setting the appropriate bit in the mask adds the silo to the channel:
//      bit 11: Common silo       1000 0000 0000
//      bit 8-10: Reserved for new silos
//      bit 7: IMS silo          1000 0000
//      bit 6: Misc silo         0100 0000
//      bit 5: Phonebook silo    0010 0000
//      bit 4: Network silo      0001 0000
//      bit 3: Data silo         0000 1000
//      bit 2: SMS silo          0000 0100
//      bit 1: SIM silo          0000 0010
//      bit 0: Voice silo        0000 0001
//
Group ChannelSiloConfiguration
    SilosATCmdChannel       0x840    // Misc and common silo (2)
    SilosDLC2Channel        0x810    // Network and common silo (2)
    SilosDLC6Channel        0x801    // Voice and common silo (2)
    SilosDLC8Channel        0x802    // SIM and common silo (2)
    SilosSmsChannel         0x804    // SMS and common silo (2)
    SilosURCChannel         0x8F7    // All silos except data
    SilosOEMChannel         0x800    // common silo only (1)
    SilosDataChannel        0x808    // Data and common silo (2)
