TelephonyProperties.java revision e5d891e84e7ac3bfd56258e37e3f8b77f24d3045
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
17package com.android.internal.telephony;
18
19/**
20 * Contains a list of string constants used to get or set telephone properties
21 * in the system. You can use {@link android.os.SystemProperties os.SystemProperties}
22 * to get and set these values.
23 * @hide
24 */
25public interface TelephonyProperties
26{
27    //****** Baseband and Radio Interface version
28
29    //TODO T: property strings do not have to be gsm specific
30    //        change gsm.*operator.*" properties to "operator.*" properties
31
32    /**
33     * Baseband version
34     * Availability: property is available any time radio is on
35     */
36    static final String PROPERTY_BASEBAND_VERSION = "gsm.version.baseband";
37
38    /** Radio Interface Layer (RIL) library implementation. */
39    static final String PROPERTY_RIL_IMPL = "gsm.version.ril-impl";
40
41    //****** Current Network
42
43    /** Alpha name of current registered operator.<p>
44     *  Availability: when registered to a network. Result may be unreliable on
45     *  CDMA networks.
46     */
47    static final String PROPERTY_OPERATOR_ALPHA = "gsm.operator.alpha";
48    //TODO: most of these properties are generic, substitute gsm. with phone. bug 1856959
49
50    /** Numeric name (MCC+MNC) of current registered operator.<p>
51     *  Availability: when registered to a network. Result may be unreliable on
52     *  CDMA networks.
53     */
54    static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric";
55
56    /** 'true' if the device is on a manually selected network
57     *
58     *  Availability: when registered to a network
59     */
60    static final String PROPERTY_OPERATOR_ISMANUAL = "operator.ismanual";
61
62    /** 'true' if the device is considered roaming on this network for GSM
63     *  purposes.
64     *  Availability: when registered to a network
65     */
66    static final String PROPERTY_OPERATOR_ISROAMING = "gsm.operator.isroaming";
67
68    /** The ISO country code equivalent of the current registered operator's
69     *  MCC (Mobile Country Code)<p>
70     *  Availability: when registered to a network. Result may be unreliable on
71     *  CDMA networks.
72     */
73    static final String PROPERTY_OPERATOR_ISO_COUNTRY = "gsm.operator.iso-country";
74
75    /**
76     * The contents of this property is the value of the kernel command line
77     * product_type variable that corresponds to a product that supports LTE on CDMA.
78     * {@see BaseCommands#getLteOnCdmaMode()}
79     */
80    static final String PROPERTY_LTE_ON_CDMA_PRODUCT_TYPE = "telephony.lteOnCdmaProductType";
81
82    static final String CURRENT_ACTIVE_PHONE = "gsm.current.phone-type";
83
84    //****** SIM Card
85    /**
86     * One of <code>"UNKNOWN"</code> <code>"ABSENT"</code> <code>"PIN_REQUIRED"</code>
87     * <code>"PUK_REQUIRED"</code> <code>"NETWORK_LOCKED"</code> or <code>"READY"</code>
88     */
89    static String PROPERTY_SIM_STATE = "gsm.sim.state";
90
91    /** The MCC+MNC (mobile country code+mobile network code) of the
92     *  provider of the SIM. 5 or 6 decimal digits.
93     *  Availability: SIM state must be "READY"
94     */
95    static String PROPERTY_ICC_OPERATOR_NUMERIC = "gsm.sim.operator.numeric";
96
97    /** PROPERTY_ICC_OPERATOR_ALPHA is also known as the SPN, or Service Provider Name.
98     *  Availability: SIM state must be "READY"
99     */
100    static String PROPERTY_ICC_OPERATOR_ALPHA = "gsm.sim.operator.alpha";
101
102    /** ISO country code equivalent for the SIM provider's country code*/
103    static String PROPERTY_ICC_OPERATOR_ISO_COUNTRY = "gsm.sim.operator.iso-country";
104
105    /**
106     * Indicates the available radio technology.  Values include: <code>"unknown"</code>,
107     * <code>"GPRS"</code>, <code>"EDGE"</code> and <code>"UMTS"</code>.
108     */
109    static String PROPERTY_DATA_NETWORK_TYPE = "gsm.network.type";
110
111    /** Indicate if phone is in emergency callback mode */
112    static final String PROPERTY_INECM_MODE = "ril.cdma.inecmmode";
113
114    /** Indicate the timer value for exiting emergency callback mode */
115    static final String PROPERTY_ECM_EXIT_TIMER = "ro.cdma.ecmexittimer";
116
117    /** The international dialing prefix conversion string */
118    static final String PROPERTY_IDP_STRING = "ro.cdma.idpstring";
119
120    /**
121     * Defines the schema for the carrier specified OTASP number
122     */
123    static final String PROPERTY_OTASP_NUM_SCHEMA = "ro.cdma.otaspnumschema";
124
125    /**
126     * Disable all calls including Emergency call when it set to true.
127     */
128    static final String PROPERTY_DISABLE_CALL = "ro.telephony.disable-call";
129
130    /**
131     * Set to true for vendor RIL's that send multiple UNSOL_CALL_RING notifications.
132     */
133    static final String PROPERTY_RIL_SENDS_MULTIPLE_CALL_RING =
134        "ro.telephony.call_ring.multiple";
135
136    /**
137     * The number of milliseconds between CALL_RING notifications.
138     */
139    static final String PROPERTY_CALL_RING_DELAY = "ro.telephony.call_ring.delay";
140
141    /**
142     * Track CDMA SMS message id numbers to ensure they increment
143     * monotonically, regardless of reboots.
144     */
145    static final String PROPERTY_CDMA_MSG_ID = "persist.radio.cdma.msgid";
146
147    /**
148     * Property to override DEFAULT_WAKE_LOCK_TIMEOUT
149     */
150    static final String PROPERTY_WAKE_LOCK_TIMEOUT = "ro.ril.wake_lock_timeout";
151
152    /**
153     * Set to true to indicate that the modem needs to be reset
154     * when there is a radio technology change.
155     */
156    static final String PROPERTY_RESET_ON_RADIO_TECH_CHANGE = "persist.radio.reset_on_switch";
157
158    /**
159     * Set to false to disable SMS receiving, default is
160     * the value of config_sms_capable
161     */
162    static final String PROPERTY_SMS_RECEIVE = "telephony.sms.receive";
163
164    /**
165     * Set to false to disable SMS sending, default is
166     * the value of config_sms_capable
167     */
168    static final String PROPERTY_SMS_SEND = "telephony.sms.send";
169
170    /**
171     * Set to true to indicate a test CSIM card is used in the device.
172     * This property is for testing purpose only. This should not be defined
173     * in commercial configuration.
174     */
175    static final String PROPERTY_TEST_CSIM = "persist.radio.test-csim";
176}
177