Android Settings和SettingsProvider原始碼分析與修改
阿新 • • 發佈:2019-02-19
StringACCESSIBILITY_DISPLAY_INVERSION_ENABLEDSetting that specifies whether display color inversion is enabled.
StringACCESSIBILITY_ENABLEDIf accessibility is enabled.StringACCESSIBILITY_SPEAK_PASSWORDWhether to speak passwords while in accessibility mode.
StringADB_ENABLEDThis constant was deprecated in API level 17. Use ADB_ENABLED instead
StringALLOWED_GEOLOCATION_ORIGINSOrigins for which browsers should allow geolocation by default.
StringALLOW_MOCK_LOCATIONSetting to allow mock locations and location provider status to be injected into the LocationManager service for testing purposes during application development.
StringANDROID_IDA 64-bit number (as a hex string) that is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device.
StringBACKGROUND_DATAThis constant was deprecated in API level 14. As of ICE_CREAM_SANDWICH, availability of background data depends on several combined factors. When background data is unavailable, getActiveNetworkInfo() will now appear disconnected.
StringBLUETOOTH_ONThis constant was deprecated in API level 17. Use BLUETOOTH_ON instead
StringDATA_ROAMINGThis constant was deprecated in API level 17. Use DATA_ROAMING instead
StringDEFAULT_INPUT_METHODSetting to record the input method used by default, holding the ID of the desired method.
StringDEVELOPMENT_SETTINGS_ENABLEDThis constant was deprecated in API level 17. Use DEVELOPMENT_SETTINGS_ENABLED instead
StringDEVICE_PROVISIONEDThis constant was deprecated in API level 17. Use DEVICE_PROVISIONED instead
StringENABLED_ACCESSIBILITY_SERVICESList of the enabled accessibility providers.
StringENABLED_INPUT_METHODSList of input methods that are currently enabled.
StringHTTP_PROXYThis constant was deprecated in API level 17. Use HTTP_PROXY
StringINPUT_METHOD_SELECTOR_VISIBILITYSetting to record the visibility of input method selector
StringINSTALL_NON_MARKET_APPSWhether applications can be installed for this user via the system's ACTION_INSTALL_PACKAGE mechanism.
StringLOCATION_MODEThe degree of location access enabled by the user.
intLOCATION_MODE_BATTERY_SAVINGReduced power usage, such as limiting the number of GPS updates per hour.
intLOCATION_MODE_HIGH_ACCURACYBest-effort location computation allowed.
intLOCATION_MODE_OFFLocation access disabled.
intLOCATION_MODE_SENSORS_ONLYNetwork Location Provider disabled, but GPS and other sensors enabled.
StringLOCATION_PROVIDERS_ALLOWEDThis constant was deprecated in API level 19. use LOCATION_MODE and MODE_CHANGED_ACTION (or PROVIDERS_CHANGED_ACTION)
StringLOCK_PATTERN_ENABLEDWhether autolock is enabled (0 = false, 1 = true)
StringLOCK_PATTERN_TACTILE_FEEDBACK_ENABLEDThis constant was deprecated in API level 17. Starting in JELLY_BEAN_MR1 the lockscreen uses HAPTIC_FEEDBACK_ENABLED.
StringLOCK_PATTERN_VISIBLEWhether lock pattern is visible as user enters (0 = false, 1 = true)
StringLOGGING_IDThis constant was deprecated in API level 3. This identifier is poorly initialized and has many collisions. It should not be used.
StringNETWORK_PREFERENCEThis constant was deprecated in API level 17. Use NETWORK_PREFERENCE instead
StringPARENTAL_CONTROL_ENABLEDNo longer supported.
StringPARENTAL_CONTROL_LAST_UPDATENo longer supported.
StringPARENTAL_CONTROL_REDIRECT_URLNo longer supported.
StringSELECTED_INPUT_METHOD_SUBTYPESetting to record the input method subtype used by default, holding the ID of the desired method.
StringSETTINGS_CLASSNAMESettings classname to launch when Settings is clicked from All Applications.
StringSYS_PROP_SETTING_VERSION
StringTOUCH_EXPLORATION_ENABLEDIf touch exploration is enabled.
StringTTS_DEFAULT_COUNTRYThis constant was deprecated in API level 14. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the default locale. getLanguage().
StringTTS_DEFAULT_LANGThis constant was deprecated in API level 14. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the default locale. getLanguage().
StringTTS_DEFAULT_PITCHDefault text-to-speech engine pitch.
StringTTS_DEFAULT_RATEDefault text-to-speech engine speech rate.
StringTTS_DEFAULT_SYNTHDefault text-to-speech engine.
StringTTS_DEFAULT_VARIANTThis constant was deprecated in API level 14. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the locale that is in use getLanguage().
StringTTS_ENABLED_PLUGINSSpace delimited list of plugin packages that are enabled.
StringTTS_USE_DEFAULTSThis constant was deprecated in API level 14. The value of this setting is no longer respected by the framework text to speech APIs as of the Ice Cream Sandwich release.
StringUSB_MASS_STORAGE_ENABLEDThis constant was deprecated in API level 17. Use USB_MASS_STORAGE_ENABLED instead
StringUSE_GOOGLE_MAILThis constant was deprecated in API level 17. Use USE_GOOGLE_MAIL instead
StringWIFI_MAX_DHCP_RETRY_COUNTThis constant was deprecated in API level 17. Use WIFI_MAX_DHCP_RETRY_COUNT instead
StringWIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MSThis constant was deprecated in API level 17. Use WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS instead
StringWIFI_NETWORKS_AVAILABLE_NOTIFICATION_ONThis constant was deprecated in API level 17. Use WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON instead.
StringWIFI_NETWORKS_AVAILABLE_REPEAT_DELAYThis constant was deprecated in API level 17. Use WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY instead.
StringWIFI_NUM_OPEN_NETWORKS_KEPTThis constant was deprecated in API level 17. Use WIFI_NUM_OPEN_NETWORKS_KEPT instead.
StringWIFI_ONThis constant was deprecated in API level 17. Use WIFI_ON instead.
StringWIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGEThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_AP_COUNTThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MSThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_BACKGROUND_CHECK_ENABLEDThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MSThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNTThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_MAX_AP_CHECKSThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_ONThis constant was deprecated in API level 17. Use WIFI_WATCHDOG_ON instead
StringWIFI_WATCHDOG_PING_COUNTThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_PING_DELAY_MSThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_PING_TIMEOUT_MSThis constant was deprecated in API level 14. This setting is not used.
StringWIFI_WATCHDOG_WATCH_LISTThis constant was deprecated in API level 14. This setting is not used.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
StringACCELEROMETER_ROTATIONControl
whether the accelerometer will be used to change screen orientation.
StringADB_ENABLED
StringAIRPLANE_MODE_ONThis constant was deprecated in API level 17. Use AIRPLANE_MODE_ON instead
StringAIRPLANE_MODE_RADIOSThis constant was deprecated in API level 17. Use AIRPLANE_MODE_RADIOS instead
StringALARM_ALERTPersistent store for the system-wide default alarm alert.
StringALWAYS_FINISH_ACTIVITIESThis constant was deprecated in API level 17. Use ALWAYS_FINISH_ACTIVITIES instead
StringANDROID_IDThis constant was deprecated in API level 3. Use ANDROID_ID instead
StringANIMATOR_DURATION_SCALEThis constant was deprecated in API level 17. Use ANIMATOR_DURATION_SCALE instead
StringAPPEND_FOR_LAST_AUDIBLEAppended to various volume related settings to record the previous values before they the settings were affected by a silent/vibrate ringer mode change.
StringAUTO_TIMEThis constant was deprecated in API level 17. Use AUTO_TIME instead
StringAUTO_TIME_ZONEThis constant was deprecated in API level 17. Use AUTO_TIME_ZONE instead
StringBLUETOOTH_DISCOVERABILITYDetermines whether remote devices may discover and/or connect to this device.
StringBLUETOOTH_DISCOVERABILITY_TIMEOUTBluetooth discoverability timeout.
StringBLUETOOTH_ONThis constant was deprecated in API level 3. Use BLUETOOTH_ON instead
StringDATA_ROAMINGThis constant was deprecated in API level 3. Use DATA_ROAMING instead
StringDATE_FORMATDate format string mm/dd/yyyy dd/mm/yyyy yyyy/mm/dd
StringDEBUG_APPThis constant was deprecated in API level 17. Use DEBUG_APP instead
StringDEVICE_PROVISIONEDThis constant was deprecated in API level 3. Use DEVICE_PROVISIONED instead
StringDIM_SCREENThis constant was deprecated in API level 17. This setting is no longer used.
StringDTMF_TONE_WHEN_DIALINGWhether the audible DTMF tones are played by the dialer when dialing.
StringEND_BUTTON_BEHAVIORWhat happens when the user presses the end call button if they're not on a call.
StringFONT_SCALEScaling factor for fonts, float.
StringHAPTIC_FEEDBACK_ENABLEDWhether the haptic feedback (long presses, ...) are enabled.
StringHTTP_PROXYThis constant was deprecated in API level 3. Use HTTP_PROXY instead
StringINSTALL_NON_MARKET_APPSThis constant was deprecated in API level 3. Use INSTALL_NON_MARKET_APPS instead
StringLOCATION_PROVIDERS_ALLOWEDThis constant was deprecated in API level 3. Use LOCATION_PROVIDERS_ALLOWED instead
StringLOCK_PATTERN_ENABLEDThis constant was deprecated in API level 8. Use LOCK_PATTERN_ENABLED instead
StringLOCK_PATTERN_TACTILE_FEEDBACK_ENABLEDThis constant was deprecated in API level 8. Use LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED instead
StringLOCK_PATTERN_VISIBLEThis constant was deprecated in API level 8. Use LOCK_PATTERN_VISIBLE instead
StringLOGGING_IDThis constant was deprecated in API level 3. Use LOGGING_ID instead
StringMODE_RINGERThis constant was deprecated in API level 17. Use MODE_RINGER instead
StringMODE_RINGER_STREAMS_AFFECTEDDetermines which streams are affected by ringer mode changes.
StringMUTE_STREAMS_AFFECTEDDetermines which streams are affected by mute.
StringNETWORK_PREFERENCEThis constant was deprecated in API level 3. Use NETWORK_PREFERENCE instead
StringNEXT_ALARM_FORMATTEDA formatted string of the next alarm that is set, or the empty string if there is no alarm set.
StringNOTIFICATION_SOUNDPersistent store for the system-wide default notification sound.
StringPARENTAL_CONTROL_ENABLEDThis constant was deprecated in API level 3. Use PARENTAL_CONTROL_ENABLED instead
StringPARENTAL_CONTROL_LAST_UPDATEThis constant was deprecated in API level 3. Use PARENTAL_CONTROL_LAST_UPDATE instead
StringPARENTAL_CONTROL_REDIRECT_URLThis constant was deprecated in API level 3. Use PARENTAL_CONTROL_REDIRECT_URL instead
StringRADIO_BLUETOOTHThis constant was deprecated in API level 17. Use RADIO_BLUETOOTH instead
StringRADIO_CELLThis constant was deprecated in API level 17. Use RADIO_CELL instead
StringRADIO_NFCThis constant was deprecated in API level 17. Use RADIO_NFC instead
StringRADIO_WIFIThis constant was deprecated in API level 17. Use RADIO_WIFI instead
StringRINGTONEPersistent store for the system-wide default ringtone URI.
StringSCREEN_BRIGHTNESSThe screen backlight brightness between 0 and 255.
StringSCREEN_BRIGHTNESS_MODEControl whether to enable automatic brightness mode.
intSCREEN_BRIGHTNESS_MODE_AUTOMATICSCREEN_BRIGHTNESS_MODE value for automatic mode.
intSCREEN_BRIGHTNESS_MODE_MANUALSCREEN_BRIGHTNESS_MODE value for manual mode.
StringSCREEN_OFF_TIMEOUTThe timeout before the screen turns off.
StringSETTINGS_CLASSNAMEThis constant was deprecated in API level 3. Use SETTINGS_CLASSNAME instead
StringSETUP_WIZARD_HAS_RUNWhether the setup wizard has been run before (on first boot), or if it still needs to be run.
StringSHOW_GTALK_SERVICE_STATUS
StringSHOW_PROCESSESThis constant was deprecated in API level 17. Use SHOW_PROCESSES instead
StringSHOW_WEB_SUGGESTIONSThis constant was deprecated in API level 11. Each application that shows web suggestions should have its own setting for this.
StringSOUND_EFFECTS_ENABLEDWhether the sounds effects (key clicks, lid open ...) are enabled.
StringSTAY_ON_WHILE_PLUGGED_INThis constant was deprecated in API level 17. Use STAY_ON_WHILE_PLUGGED_IN instead
StringSYS_PROP_SETTING_VERSION
StringTEXT_AUTO_CAPSSetting to enable Auto Caps in text editors.
StringTEXT_AUTO_PUNCTUATESetting to enable Auto Punctuate in text editors.
StringTEXT_AUTO_REPLACESetting to enable Auto Replace (AutoText) in text editors.
StringTEXT_SHOW_PASSWORDSetting to showing password characters in text editors.
StringTIME_12_24Display times as 12 or 24 hours 12 24
StringTRANSITION_ANIMATION_SCALEThis constant was deprecated in API level 17. Use TRANSITION_ANIMATION_SCALE instead
StringUSB_MASS_STORAGE_ENABLEDThis constant was deprecated in API level 3. Use USB_MASS_STORAGE_ENABLED instead
StringUSER_ROTATIONDefault screen rotation when no other policy applies.
StringUSE_GOOGLE_MAILThis constant was deprecated in API level 3. Use USE_GOOGLE_MAIL instead
StringVIBRATE_ONWhether vibrate is on for different events.
StringVOLUME_ALARMAlarm volume.
StringVOLUME_BLUETOOTH_SCOBluetooth Headset volume.
StringVOLUME_MUSICMusic/media/gaming volume.
StringVOLUME_NOTIFICATIONNotification volume.
StringVOLUME_RINGRinger volume.
StringVOLUME_SYSTEMSystem/notifications volume.
StringVOLUME_VOICEVoice call volume.
StringWAIT_FOR_DEBUGGERThis constant was deprecated in API level 17. Use WAIT_FOR_DEBUGGER instead
StringWALLPAPER_ACTIVITYThis constant was deprecated in API level 17. Use WallpaperManager instead.
StringWIFI_MAX_DHCP_RETRY_COUNTThis constant was deprecated in API level 3. Use WIFI_MAX_DHCP_RETRY_COUNT instead
StringWIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MSThis constant was deprecated in API level 3. Use WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS instead
StringWIFI_NETWORKS_AVAILABLE_NOTIFICATION_ONThis constant was deprecated in API level 3. Use WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON instead
StringWIFI_NETWORKS_AVAILABLE_REPEAT_DELAYThis constant was deprecated in API level 3. Use WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY instead
StringWIFI_NUM_OPEN_NETWORKS_KEPTThis constant was deprecated in API level 3. Use WIFI_NUM_OPEN_NETWORKS_KEPT instead
StringWIFI_ONThis constant was deprecated in API level 3. Use WIFI_ON instead
StringWIFI_SLEEP_POLICYThis constant was deprecated in API level 17. Use WIFI_SLEEP_POLICY instead
intWIFI_SLEEP_POLICY_DEFAULTThis constant was deprecated in API level 17. Use WIFI_SLEEP_POLICY_DEFAULT instead
intWIFI_SLEEP_POLICY_NEVERThis constant was deprecated in API level 17. Use WIFI_SLEEP_POLICY_NEVER instead
intWIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGEDThis constant was deprecated in API level 17. Use WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED instead
StringWIFI_STATIC_DNS1This constant was deprecated in API level 17. Use WifiManager instead
StringWIFI_STATIC_DNS2This constant was deprecated in API level 17. Use WifiManager instead
StringWIFI_STATIC_GATEWAYThis constant was deprecated in API level 17. Use WifiManager instead
StringWIFI_STATIC_IPThis constant was deprecated in API level 17. Use WifiManager instead
StringWIFI_STATIC_NETMASKThis constant was deprecated in API level 17. Use WifiManager instead
StringWIFI_USE_STATIC_IPThis constant was deprecated in API level 17. Use WifiManager instead
StringWIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGEThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE instead
StringWIFI_WATCHDOG_AP_COUNTThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_AP_COUNT instead
StringWIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MSThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS instead
StringWIFI_WATCHDOG_BACKGROUND_CHECK_ENABLEDThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED instead
StringWIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MSThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS instead
StringWIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNTThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT instead
StringWIFI_WATCHDOG_MAX_AP_CHECKSThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_MAX_AP_CHECKS instead
StringWIFI_WATCHDOG_ONThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_ON instead
StringWIFI_WATCHDOG_PING_COUNTThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_PING_COUNT instead
StringWIFI_WATCHDOG_PING_DELAY_MSThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_PING_DELAY_MS instead
StringWIFI_WATCHDOG_PING_TIMEOUT_MSThis constant was deprecated in API level 3. Use WIFI_WATCHDOG_PING_TIMEOUT_MS instead
StringWINDOW_ANIMATION_SCALEThis constant was deprecated in API level 17. Use WINDOW_ANIMATION_SCALE instead