diff options
author | Inseob Kim <inseob@google.com> | 2018-12-13 17:20:34 +0900 |
---|---|---|
committer | Inseob Kim <inseob@google.com> | 2019-12-17 13:58:03 +0900 |
commit | 939d099145e95183f90ecb157387ea7a285322ee (patch) | |
tree | 8546bf0eeeac664676dc3b8b83030f5064fd9e9b | |
parent | dedc5c8a07ed1ec11b8726b995283194b3cc4266 (diff) | |
download | libsysprop-939d099145e95183f90ecb157387ea7a285322ee.tar.gz |
Add More Telephony Properties to libsysprop
Bug: 117924132
Bug: 141246285
Test: lunch blueline-userdebug; m checkbuild
Change-Id: I06fe8d13ffde19fea4a89465a8e1f929f0435ca6
Merged-In: I06fe8d13ffde19fea4a89465a8e1f929f0435ca6
(cherry picked from commit 81d0f70151be9aa15444cbd057f183edeac362d7)
-rw-r--r-- | srcs/android/sysprop/TelephonyProperties.sysprop | 431 | ||||
-rw-r--r-- | srcs/api/PlatformProperties-current.txt | 232 |
2 files changed, 663 insertions, 0 deletions
diff --git a/srcs/android/sysprop/TelephonyProperties.sysprop b/srcs/android/sysprop/TelephonyProperties.sysprop index 0daf467..858f70e 100644 --- a/srcs/android/sysprop/TelephonyProperties.sysprop +++ b/srcs/android/sysprop/TelephonyProperties.sysprop @@ -22,3 +22,434 @@ prop { prop_name: "persist.radio.airplane_mode_on" integer_as_bool : true } + +######## Baseband and Radio Interface version + +# TODO T: property strings do not have to be gsm specific +# change gsm.*operator.*" properties to "operator.*" properties + +# +# Baseband version. Indexed by phone ID +# +# Availability: property is available any time radio is on +# +prop { + api_name: "baseband_version" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.version.baseband" +} + +# Radio Interface Layer (RIL) library implementation. +prop { + api_name: "ril_impl" + type: String + scope: Internal + access: Readonly + prop_name: "gsm.version.ril-impl" +} + +######## Current Network + +# +# Alpha name of current registered operator. Indexed by phone ID +# +# Availability: when registered to a network. Result may be unreliable on +# CDMA networks. +# +prop { + api_name: "operator_alpha" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.operator.alpha" +} + +# +# true if the device is on a manually selected network. Indexed by phone ID +# +# Availability: when registered to a network +# +prop { + api_name: "operator_numeric" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.operator.numeric" +} + +# +# true if the device is on a manually selected network +# +# Availability: when registered to a network +# +prop { + api_name: "operator_is_manual" + type: Boolean + scope: Internal + access: Readonly + prop_name: "operator.ismanual" +} + +# +# true if the device is considered roaming on this network for GSM purposes. +# Indexed by phone ID +# +# Availability: when registered to a network +# +prop { + api_name: "operator_is_roaming" + type: BooleanList + scope: Internal + access: ReadWrite + prop_name: "gsm.operator.isroaming" +} + +# +# The ISO country code equivalent of the current registered operator's MCC +# (Mobile Country Code). Indexed by phone ID +# +# Availability: when registered to a network. Result may be unreliable on +# CDMA networks. +# +prop { + api_name: "operator_iso_country" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.operator.iso-country" +} + +# +# The contents of this property is the value of the kernel command line +# product_type variable that corresponds to a product that supports LTE on +# CDMA. +# +prop { + api_name: "lte_on_cdma_product_type" + type: String + scope: Internal + access: Readonly + prop_name: "telephony.lteOnCdmaProductType" +} + +# +# The contents of this property is the one of LTE_ON_CDMA_TRUE or +# LTE_ON_CDMA_FALSE. If absent the value will assumed to be false and the +# PROPERTY_LTE_ON_CDMA_PRODUCT_TYPE will be used to determine its final +# value which could also be LTE_ON_CDMA_FALSE. +# +prop { + api_name: "lte_on_cdma_device" + type: Integer + scope: Internal + access: Readonly + prop_name: "telephony.lteOnCdmaDevice" +} + +prop { + api_name: "current_active_phone" + type: IntegerList + scope: Internal + access: ReadWrite + prop_name: "gsm.current.phone-type" +} + +######## SIM Card. Indexed by phone ID +# "UNKNOWN|ABSENT|PIN_REQUIRED|PUK_REQUIRED|NETWORK_LOCKED|READY" + +prop { + api_name: "sim_state" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.sim.state" +} + +# +# The MCC+MNC (mobile country code+mobile network code) of the provider +# of the SIM. 5 or 6 decimal digits. Indexed by phone ID +# +# Availability: SIM state must be READY +# +prop { + api_name: "icc_operator_numeric" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.sim.operator.numeric" +} + +# +# also known as the SPN, or Service Provider Name. Indexed by phone ID +# +# Availability: SIM state must be "READY" +# +prop { + api_name: "icc_operator_alpha" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.sim.operator.alpha" +} + +# ISO country code equivalent for the SIM provider's country code. +# Indexed by phone ID +prop { + api_name: "icc_operator_iso_country" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.sim.operator.iso-country" +} + +# Indicates the available radio technology. Indexed by phone ID +prop { + api_name: "data_network_type" + type: StringList + scope: Internal + access: ReadWrite + prop_name: "gsm.network.type" +} + +# Indicate if phone is in emergency callback mode +prop { + api_name: "in_ecm_mode" + type: Boolean + scope: Internal + access: ReadWrite + prop_name: "ril.cdma.inecmmode" +} + +# Indicate the timer value for exiting emergency callback mode +prop { + api_name: "ecm_exit_timer" + type: Long + scope: Internal + access: Readonly + prop_name: "ro.cdma.ecmexittimer" +} + +# the international dialing prefix of current operator network +prop { + api_name: "operator_idp_string" + type: String + scope: Internal + access: ReadWrite + prop_name: "gsm.operator.idpstring" +} + +# Defines the schema for the carrier specified OTASP number. +# Indexed by phone ID +prop { + api_name: "otasp_num_schema" + type: StringList + scope: Internal + access: Readonly + prop_name: "ro.cdma.otaspnumschema" +} + +# Disable all calls including Emergency call when it set to true. +prop { + api_name: "disable_call" + type: Boolean + scope: Internal + access: Readonly + prop_name: "ro.telephony.disable-call" +} + +# Set to true for vendor RIL's that send multiple UNSOL_CALL_RING notifications. +prop { + api_name: "ril_sends_multiple_call_ring" + type: Boolean + scope: Internal + access: Readonly + prop_name: "ro.telephony.call_ring.multiple" +} + +# The number of milliseconds between CALL_RING notifications. +prop { + api_name: "call_ring_delay" + type: Integer + scope: Internal + access: Readonly + prop_name: "ro.telephony.call_ring.delay" +} + +# +# Track CDMA SMS message id numbers to ensure they increment +# monotonically, regardless of reboots. +# +prop { + api_name: "cdma_msg_id" + type: Integer + scope: Internal + access: ReadWrite + prop_name: "persist.radio.cdma.msgid" +} + +# Property to override DEFAULT_WAKE_LOCK_TIMEOUT +prop { + api_name: "wake_lock_timeout" + type: Integer + scope: Internal + access: Readonly + prop_name: "ro.ril.wake_lock_timeout" +} + +# +# Set to true to indicate that the modem needs to be reset +# when there is a radio technology change. +# +prop { + api_name: "reset_on_radio_tech_change" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.radio.reset_on_switch" +} + +# +# Set to false to disable SMS receiving, default is +# the value of config_sms_capable +# Indexed by phone ID +# +prop { + api_name: "sms_receive" + type: BooleanList + scope: Internal + access: Readonly + prop_name: "telephony.sms.receive" +} + +# +# Set to false to disable SMS sending, default is +# the value of config_sms_capable +# Indexed by phone ID +# +prop { + api_name: "sms_send" + type: BooleanList + scope: Internal + access: Readonly + prop_name: "telephony.sms.send" +} + +# +# Set to true to indicate a test CSIM card is used in the device. +# This property is for testing purpose only. This should not be defined +# in commercial configuration. +# +prop { + api_name: "test_csim" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.radio.test-csim" +} + +# +# Ignore RIL_UNSOL_NITZ_TIME_RECEIVED completely, used for debugging/testing. +# +prop { + api_name: "ignore_nitz" + type: Boolean + scope: Internal + access: Readonly + prop_name: "telephony.test.ignore.nitz" +} + +# +# Property to set multi sim feature. +# +prop { + api_name: "multi_sim_config" + type: String + scope: Internal + access: ReadWrite + prop_name: "persist.radio.multisim.config" +} + +# +# Property to indicate if reboot is required when changing modems configurations +# Default is false; most devices don't need reboot +# +prop { + api_name: "reboot_on_modem_change" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.radio.reboot_on_modem_change" +} + +# +# Controls audio route for video calls. +# false - Use the default audio routing strategy. +# true - Disable the speaker. Route the audio to Headset or Bluetooth +# or Earpiece, based on the default audio routing strategy. +# +prop { + api_name: "videocall_audio_output" + type: Integer + scope: Internal + access: Readonly + prop_name: "persist.radio.call.audio.output" +} + +# +# System Property which is used to decide whether the default eSIM UI will be shown, +# the default value is false. +# +prop { + api_name: "enable_esim_ui_by_default" + type: Boolean + scope: Internal + access: Readonly + prop_name: "esim.enable_esim_system_ui_by_default" +} + +prop { + api_name: "default_network" + type: IntegerList + scope: Internal + access: Readonly + prop_name: "ro.telephony.default_network" +} + +prop { + api_name: "data_roaming" + type: Boolean + scope: Internal + access: Readonly + prop_name: "ro.com.android.dataroaming" +} + +prop { + api_name: "mobile_data" + type: Boolean + scope: Internal + access: Readonly + prop_name: "ro.com.android.mobiledata" +} + +prop { + api_name: "wps_info" + type: Integer + scope: Internal + access: Readonly + prop_name: "wifidirect.wps" +} + +# +# How many logical modems can be active simultaneously. For example, if a device is dual-SIM +# capable but currently only one SIM slot and one logical modem is active, this value is still +# two. +# +prop { + api_name: "max_active_modems" + type: Integer + scope: Internal + access: Readonly + prop_name: "ro.telephony.max.active.modems" +} diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index 751b19b..17b6129 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -156,6 +156,238 @@ props { prop_name: "persist.radio.airplane_mode_on" integer_as_bool: true } + prop { + api_name: "baseband_version" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.version.baseband" + } + prop { + api_name: "call_ring_delay" + type: Integer + scope: Internal + prop_name: "ro.telephony.call_ring.delay" + } + prop { + api_name: "cdma_msg_id" + type: Integer + access: ReadWrite + scope: Internal + prop_name: "persist.radio.cdma.msgid" + } + prop { + api_name: "current_active_phone" + type: IntegerList + access: ReadWrite + scope: Internal + prop_name: "gsm.current.phone-type" + } + prop { + api_name: "data_network_type" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.network.type" + } + prop { + api_name: "data_roaming" + scope: Internal + prop_name: "ro.com.android.dataroaming" + } + prop { + api_name: "default_network" + type: IntegerList + scope: Internal + prop_name: "ro.telephony.default_network" + } + prop { + api_name: "disable_call" + scope: Internal + prop_name: "ro.telephony.disable-call" + } + prop { + api_name: "ecm_exit_timer" + type: Long + scope: Internal + prop_name: "ro.cdma.ecmexittimer" + } + prop { + api_name: "enable_esim_ui_by_default" + scope: Internal + prop_name: "esim.enable_esim_system_ui_by_default" + } + prop { + api_name: "icc_operator_alpha" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.sim.operator.alpha" + } + prop { + api_name: "icc_operator_iso_country" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.sim.operator.iso-country" + } + prop { + api_name: "icc_operator_numeric" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.sim.operator.numeric" + } + prop { + api_name: "ignore_nitz" + scope: Internal + prop_name: "telephony.test.ignore.nitz" + } + prop { + api_name: "in_ecm_mode" + access: ReadWrite + scope: Internal + prop_name: "ril.cdma.inecmmode" + } + prop { + api_name: "lte_on_cdma_device" + type: Integer + scope: Internal + prop_name: "telephony.lteOnCdmaDevice" + } + prop { + api_name: "lte_on_cdma_product_type" + type: String + scope: Internal + prop_name: "telephony.lteOnCdmaProductType" + } + prop { + api_name: "max_active_modems" + type: Integer + scope: Internal + prop_name: "ro.telephony.max.active.modems" + } + prop { + api_name: "mobile_data" + scope: Internal + prop_name: "ro.com.android.mobiledata" + } + prop { + api_name: "multi_sim_config" + type: String + access: ReadWrite + scope: Internal + prop_name: "persist.radio.multisim.config" + } + prop { + api_name: "operator_alpha" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.operator.alpha" + } + prop { + api_name: "operator_idp_string" + type: String + access: ReadWrite + scope: Internal + prop_name: "gsm.operator.idpstring" + } + prop { + api_name: "operator_is_manual" + scope: Internal + prop_name: "operator.ismanual" + } + prop { + api_name: "operator_is_roaming" + type: BooleanList + access: ReadWrite + scope: Internal + prop_name: "gsm.operator.isroaming" + } + prop { + api_name: "operator_iso_country" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.operator.iso-country" + } + prop { + api_name: "operator_numeric" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.operator.numeric" + } + prop { + api_name: "otasp_num_schema" + type: StringList + scope: Internal + prop_name: "ro.cdma.otaspnumschema" + } + prop { + api_name: "reboot_on_modem_change" + scope: Internal + prop_name: "persist.radio.reboot_on_modem_change" + } + prop { + api_name: "reset_on_radio_tech_change" + scope: Internal + prop_name: "persist.radio.reset_on_switch" + } + prop { + api_name: "ril_impl" + type: String + scope: Internal + prop_name: "gsm.version.ril-impl" + } + prop { + api_name: "ril_sends_multiple_call_ring" + scope: Internal + prop_name: "ro.telephony.call_ring.multiple" + } + prop { + api_name: "sim_state" + type: StringList + access: ReadWrite + scope: Internal + prop_name: "gsm.sim.state" + } + prop { + api_name: "sms_receive" + type: BooleanList + scope: Internal + prop_name: "telephony.sms.receive" + } + prop { + api_name: "sms_send" + type: BooleanList + scope: Internal + prop_name: "telephony.sms.send" + } + prop { + api_name: "test_csim" + scope: Internal + prop_name: "persist.radio.test-csim" + } + prop { + api_name: "videocall_audio_output" + type: Integer + scope: Internal + prop_name: "persist.radio.call.audio.output" + } + prop { + api_name: "wake_lock_timeout" + type: Integer + scope: Internal + prop_name: "ro.ril.wake_lock_timeout" + } + prop { + api_name: "wps_info" + type: Integer + scope: Internal + prop_name: "wifidirect.wps" + } } props { module: "android.sysprop.TraceProperties" |