1 /* 2 * Copyright (C) 2019 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 17 package android.provider.settings.backup; 18 19 import android.compat.annotation.UnsupportedAppUsage; 20 import android.provider.Settings; 21 22 /** Information about the system settings to back up */ 23 public class SystemSettings { 24 25 /** 26 * Settings to backup. 27 * 28 * NOTE: Settings are backed up and restored in the order they appear 29 * in this array. If you have one setting depending on another, 30 * make sure that they are ordered appropriately. 31 */ 32 @UnsupportedAppUsage 33 public static final String[] SETTINGS_TO_BACKUP = { 34 Settings.System.STAY_ON_WHILE_PLUGGED_IN, // moved to global 35 Settings.System.WIFI_USE_STATIC_IP, 36 Settings.System.WIFI_STATIC_IP, 37 Settings.System.WIFI_STATIC_GATEWAY, 38 Settings.System.WIFI_STATIC_NETMASK, 39 Settings.System.WIFI_STATIC_DNS1, 40 Settings.System.WIFI_STATIC_DNS2, 41 Settings.System.BLUETOOTH_DISCOVERABILITY, 42 Settings.System.BLUETOOTH_DISCOVERABILITY_TIMEOUT, 43 Settings.System.FONT_SCALE, 44 Settings.System.DIM_SCREEN, 45 Settings.System.SCREEN_OFF_TIMEOUT, 46 Settings.System.SCREEN_BRIGHTNESS_MODE, 47 Settings.System.ADAPTIVE_SLEEP, // moved to secure 48 Settings.System.APPLY_RAMPING_RINGER, 49 Settings.System.VIBRATE_INPUT_DEVICES, 50 Settings.System.MODE_RINGER_STREAMS_AFFECTED, 51 Settings.System.TEXT_AUTO_REPLACE, 52 Settings.System.TEXT_AUTO_CAPS, 53 Settings.System.TEXT_AUTO_PUNCTUATE, 54 Settings.System.TEXT_SHOW_PASSWORD, 55 Settings.System.AUTO_TIME, // moved to global 56 Settings.System.AUTO_TIME_ZONE, // moved to global 57 Settings.System.TIME_12_24, 58 Settings.System.DTMF_TONE_WHEN_DIALING, 59 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, 60 Settings.System.HEARING_AID, 61 Settings.System.TTY_MODE, 62 Settings.System.MASTER_MONO, 63 Settings.System.MASTER_BALANCE, 64 Settings.System.FOLD_LOCK_BEHAVIOR, 65 Settings.System.SOUND_EFFECTS_ENABLED, 66 Settings.System.HAPTIC_FEEDBACK_ENABLED, 67 Settings.System.POWER_SOUNDS_ENABLED, // moved to global 68 Settings.System.DOCK_SOUNDS_ENABLED, // moved to global 69 Settings.System.LOCKSCREEN_SOUNDS_ENABLED, 70 Settings.System.SHOW_WEB_SUGGESTIONS, 71 Settings.System.SIP_CALL_OPTIONS, 72 Settings.System.SIP_RECEIVE_CALLS, 73 Settings.System.POINTER_SPEED, 74 Settings.System.VIBRATE_ON, 75 Settings.System.VIBRATE_WHEN_RINGING, 76 Settings.System.RINGTONE, 77 Settings.System.LOCK_TO_APP_ENABLED, 78 Settings.System.NOTIFICATION_SOUND, 79 Settings.System.ACCELEROMETER_ROTATION, 80 Settings.System.SHOW_BATTERY_PERCENT, 81 Settings.System.ALARM_VIBRATION_INTENSITY, 82 Settings.System.MEDIA_VIBRATION_INTENSITY, 83 Settings.System.NOTIFICATION_VIBRATION_INTENSITY, 84 Settings.System.RING_VIBRATION_INTENSITY, 85 Settings.System.HAPTIC_FEEDBACK_INTENSITY, 86 Settings.System.HARDWARE_HAPTIC_FEEDBACK_INTENSITY, 87 Settings.System.HAPTIC_FEEDBACK_ENABLED, 88 Settings.System.DISPLAY_COLOR_MODE_VENDOR_HINT, // must precede DISPLAY_COLOR_MODE 89 Settings.System.DISPLAY_COLOR_MODE, 90 Settings.System.ALARM_ALERT, 91 Settings.System.NOTIFICATION_LIGHT_PULSE, 92 Settings.System.WEAR_ACCESSIBILITY_GESTURE_ENABLED, 93 Settings.System.CLOCKWORK_BLUETOOTH_SETTINGS_PREF, 94 Settings.System.UNREAD_NOTIFICATION_DOT_INDICATOR, 95 Settings.System.AUTO_LAUNCH_MEDIA_CONTROLS, 96 Settings.System.LOCALE_PREFERENCES, 97 Settings.System.TOUCHPAD_POINTER_SPEED, 98 Settings.System.TOUCHPAD_NATURAL_SCROLLING, 99 Settings.System.TOUCHPAD_TAP_TO_CLICK, 100 Settings.System.TOUCHPAD_RIGHT_CLICK_ZONE, 101 Settings.System.CAMERA_FLASH_NOTIFICATION, 102 Settings.System.SCREEN_FLASH_NOTIFICATION, 103 Settings.System.SCREEN_FLASH_NOTIFICATION_COLOR, 104 }; 105 } 106