TelephonyProperties.java revision e62dee25e50c04c235cd37df66e4ef123b761663
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    /** 'true' if device supports both LTE and CDMA mode of operation.
76     *  Availability: Set only on devices supporting LTE and CDMA.
77     */
78    static final String PROPERTY_NETWORK_LTE_ON_CDMA = "ro.telephony.lte_on_cdma";
79
80    static final String CURRENT_ACTIVE_PHONE = "gsm.current.phone-type";
81
82    //****** SIM Card
83    /**
84     * One of <code>"UNKNOWN"</code> <code>"ABSENT"</code> <code>"PIN_REQUIRED"</code>
85     * <code>"PUK_REQUIRED"</code> <code>"NETWORK_LOCKED"</code> or <code>"READY"</code>
86     */
87    static String PROPERTY_SIM_STATE = "gsm.sim.state";
88
89    /** The MCC+MNC (mobile country code+mobile network code) of the
90     *  provider of the SIM. 5 or 6 decimal digits.
91     *  Availability: SIM state must be "READY"
92     */
93    static String PROPERTY_ICC_OPERATOR_NUMERIC = "gsm.sim.operator.numeric";
94
95    /** PROPERTY_ICC_OPERATOR_ALPHA is also known as the SPN, or Service Provider Name.
96     *  Availability: SIM state must be "READY"
97     */
98    static String PROPERTY_ICC_OPERATOR_ALPHA = "gsm.sim.operator.alpha";
99
100    /** ISO country code equivalent for the SIM provider's country code*/
101    static String PROPERTY_ICC_OPERATOR_ISO_COUNTRY = "gsm.sim.operator.iso-country";
102
103    /**
104     * Indicates the available radio technology.  Values include: <code>"unknown"</code>,
105     * <code>"GPRS"</code>, <code>"EDGE"</code> and <code>"UMTS"</code>.
106     */
107    static String PROPERTY_DATA_NETWORK_TYPE = "gsm.network.type";
108
109    /** Indicate if phone is in emergency callback mode */
110    static final String PROPERTY_INECM_MODE = "ril.cdma.inecmmode";
111
112    /** Indicate the timer value for exiting emergency callback mode */
113    static final String PROPERTY_ECM_EXIT_TIMER = "ro.cdma.ecmexittimer";
114
115    /** The international dialing prefix conversion string */
116    static final String PROPERTY_IDP_STRING = "ro.cdma.idpstring";
117
118    /**
119     * Defines the schema for the carrier specified OTASP number
120     */
121    static final String PROPERTY_OTASP_NUM_SCHEMA = "ro.cdma.otaspnumschema";
122
123    /**
124     * Disable all calls including Emergency call when it set to true.
125     */
126    static final String PROPERTY_DISABLE_CALL = "ro.telephony.disable-call";
127
128    /**
129     * Set to true for vendor RIL's that send multiple UNSOL_CALL_RING notifications.
130     */
131    static final String PROPERTY_RIL_SENDS_MULTIPLE_CALL_RING =
132        "ro.telephony.call_ring.multiple";
133
134    /**
135     * The number of milliseconds between CALL_RING notifications.
136     */
137    static final String PROPERTY_CALL_RING_DELAY = "ro.telephony.call_ring.delay";
138
139    /**
140     * Track CDMA SMS message id numbers to ensure they increment
141     * monotonically, regardless of reboots.
142     */
143    static final String PROPERTY_CDMA_MSG_ID = "persist.radio.cdma.msgid";
144
145    /**
146     * Property to override DEFAULT_WAKE_LOCK_TIMEOUT
147     */
148    static final String PROPERTY_WAKE_LOCK_TIMEOUT = "ro.ril.wake_lock_timeout";
149
150    /**
151     * Set to true to indicate that the modem needs to be reset
152     * when there is a radio technology change.
153     */
154    static final String PROPERTY_RESET_ON_RADIO_TECH_CHANGE = "persist.radio.reset_on_switch";
155
156    /**
157     * Set to false to disable SMS receiving, default is
158     * the value of config_sms_capable
159     */
160    static final String PROPERTY_SMS_RECEIVE = "telephony.sms.receive";
161
162    /**
163     * Set to false to disable SMS sending, default is
164     * the value of config_sms_capable
165     */
166    static final String PROPERTY_SMS_SEND = "telephony.sms.send";
167}
168