• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 relating to the Secure settings which should be backed up */
23 public class SecureSettings {
24 
25     /**
26      * NOTE: Settings are backed up and restored in the order they appear
27      *       in this array. If you have one setting depending on another,
28      *       make sure that they are ordered appropriately.
29      */
30     @UnsupportedAppUsage
31     public static final String[] SETTINGS_TO_BACKUP = {
32         Settings.Secure.BUGREPORT_IN_POWER_MENU,                            // moved to global
33         Settings.Secure.ALLOW_MOCK_LOCATION,
34         Settings.Secure.USB_MASS_STORAGE_ENABLED,                           // moved to global
35         Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED,
36         Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER,
37         Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED,
38         Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED,
39         Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED,
40         Settings.Secure.ADAPTIVE_SLEEP,
41         Settings.Secure.CAMERA_AUTOROTATE,
42         Settings.Secure.AUTOFILL_SERVICE,
43         Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
44         Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
45         Settings.Secure.ENABLED_VR_LISTENERS,
46         Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES,
47         Settings.Secure.TOUCH_EXPLORATION_ENABLED,
48         Settings.Secure.ACCESSIBILITY_ENABLED,
49         Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE,
50         Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT,
51         Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN,
52         Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN,
53         Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED,
54         Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET,
55         Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED,
56         Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE,
57         Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR,
58         Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR,
59         Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE,
60         Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR,
61         Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE,
62         Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE,
63         Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR,
64         Settings.Secure.FONT_WEIGHT_ADJUSTMENT,
65         Settings.Secure.REDUCE_BRIGHT_COLORS_LEVEL,
66         Settings.Secure.REDUCE_BRIGHT_COLORS_PERSIST_ACROSS_REBOOTS,
67         Settings.Secure.TTS_DEFAULT_RATE,
68         Settings.Secure.TTS_DEFAULT_PITCH,
69         Settings.Secure.TTS_DEFAULT_SYNTH,
70         Settings.Secure.TTS_ENABLED_PLUGINS,
71         Settings.Secure.TTS_DEFAULT_LOCALE,
72         Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD,
73         Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,            // moved to global
74         Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY,               // moved to global
75         Settings.Secure.WIFI_NUM_OPEN_NETWORKS_KEPT,                        // moved to global
76         Settings.Secure.MOUNT_PLAY_NOTIFICATION_SND,
77         Settings.Secure.MOUNT_UMS_AUTOSTART,
78         Settings.Secure.MOUNT_UMS_PROMPT,
79         Settings.Secure.MOUNT_UMS_NOTIFY_ENABLED,
80         Settings.Secure.DOUBLE_TAP_TO_WAKE,
81         Settings.Secure.WAKE_GESTURE_ENABLED,
82         Settings.Secure.LONG_PRESS_TIMEOUT,
83         Settings.Secure.CAMERA_GESTURE_DISABLED,
84         Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED,
85         Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
86         Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON,
87         Settings.Secure.PREFERRED_TTY_MODE,
88         Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED,
89         Settings.Secure.TTY_MODE_ENABLED,
90         Settings.Secure.RTT_CALLING_MODE,
91         Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
92         Settings.Secure.MINIMAL_POST_PROCESSING_ALLOWED,
93         Settings.Secure.MATCH_CONTENT_FRAME_RATE,
94         Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME,
95         Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME,
96         Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE,
97         Settings.Secure.NIGHT_DISPLAY_AUTO_MODE,
98         Settings.Secure.DISPLAY_WHITE_BALANCE_ENABLED,
99         Settings.Secure.SYNC_PARENT_SOUNDS,
100         Settings.Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
101         Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
102         Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED,
103         Settings.Secure.QS_TILES,
104         Settings.Secure.CONTROLS_ENABLED,
105         Settings.Secure.POWER_MENU_LOCKED_SHOW_CONTENT,
106         Settings.Secure.DOZE_ENABLED,
107         Settings.Secure.DOZE_ALWAYS_ON,
108         Settings.Secure.DOZE_PICK_UP_GESTURE,
109         Settings.Secure.DOZE_DOUBLE_TAP_GESTURE,
110         Settings.Secure.DOZE_TAP_SCREEN_GESTURE,
111         Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
112         Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
113         Settings.Secure.FACE_UNLOCK_KEYGUARD_ENABLED,
114         Settings.Secure.SHOW_MEDIA_WHEN_BYPASSING,
115         Settings.Secure.FACE_UNLOCK_DISMISSES_KEYGUARD,
116         Settings.Secure.FACE_UNLOCK_APP_ENABLED,
117         Settings.Secure.FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION,
118         Settings.Secure.VR_DISPLAY_MODE,
119         Settings.Secure.NOTIFICATION_BADGING,
120         Settings.Secure.NOTIFICATION_DISMISS_RTL,
121         Settings.Secure.QS_AUTO_ADDED_TILES,
122         Settings.Secure.SCREENSAVER_ENABLED,
123         Settings.Secure.SCREENSAVER_COMPONENTS,
124         Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
125         Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP,
126         Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION,
127         Settings.Secure.VOLUME_HUSH_GESTURE,
128         Settings.Secure.MANUAL_RINGER_TOGGLE_COUNT,
129         Settings.Secure.HUSH_GESTURE_USED,
130         Settings.Secure.IN_CALL_NOTIFICATION_ENABLED,
131         Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
132         Settings.Secure.LOCK_SCREEN_CUSTOM_CLOCK_FACE,
133         Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
134         Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS,
135         Settings.Secure.SHOW_NOTIFICATION_SNOOZE,
136         Settings.Secure.NOTIFICATION_HISTORY_ENABLED,
137         Settings.Secure.ZEN_DURATION,
138         Settings.Secure.SHOW_ZEN_UPGRADE_NOTIFICATION,
139         Settings.Secure.SHOW_ZEN_SETTINGS_SUGGESTION,
140         Settings.Secure.ZEN_SETTINGS_UPDATED,
141         Settings.Secure.ZEN_SETTINGS_SUGGESTION_VIEWED,
142         Settings.Secure.CHARGING_SOUNDS_ENABLED,
143         Settings.Secure.CHARGING_VIBRATION_ENABLED,
144         Settings.Secure.ACCESSIBILITY_NON_INTERACTIVE_UI_TIMEOUT_MS,
145         Settings.Secure.ACCESSIBILITY_INTERACTIVE_UI_TIMEOUT_MS,
146         Settings.Secure.TRUST_AGENTS_EXTEND_UNLOCK,
147         Settings.Secure.UI_NIGHT_MODE,
148         Settings.Secure.DARK_THEME_CUSTOM_START_TIME,
149         Settings.Secure.DARK_THEME_CUSTOM_END_TIME,
150         Settings.Secure.LOCK_SCREEN_WHEN_TRUST_LOST,
151         Settings.Secure.SKIP_DIRECTION,
152         Settings.Secure.THEME_CUSTOMIZATION_OVERLAY_PACKAGES,
153         Settings.Secure.BACK_GESTURE_INSET_SCALE_LEFT,
154         Settings.Secure.BACK_GESTURE_INSET_SCALE_RIGHT,
155         Settings.Secure.NAVIGATION_MODE,
156         Settings.Secure.SKIP_GESTURE_COUNT,
157         Settings.Secure.SKIP_TOUCH_COUNT,
158         Settings.Secure.SILENCE_ALARMS_GESTURE_COUNT,
159         Settings.Secure.SILENCE_CALL_GESTURE_COUNT,
160         Settings.Secure.SILENCE_TIMER_GESTURE_COUNT,
161         Settings.Secure.SILENCE_ALARMS_TOUCH_COUNT,
162         Settings.Secure.SILENCE_CALL_TOUCH_COUNT,
163         Settings.Secure.SILENCE_TIMER_TOUCH_COUNT,
164         Settings.Secure.DARK_MODE_DIALOG_SEEN,
165         Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED,
166         Settings.Secure.AWARE_LOCK_ENABLED,
167         Settings.Secure.AWARE_TAP_PAUSE_GESTURE_COUNT,
168         Settings.Secure.AWARE_TAP_PAUSE_TOUCH_COUNT,
169         Settings.Secure.PEOPLE_STRIP,
170         Settings.Secure.MEDIA_CONTROLS_RESUME,
171         Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION,
172         Settings.Secure.ACCESSIBILITY_MAGNIFICATION_MODE,
173         Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS,
174         Settings.Secure.ACCESSIBILITY_MAGNIFICATION_CAPABILITY,
175         Settings.Secure.ONE_HANDED_MODE_ACTIVATED,
176         Settings.Secure.ONE_HANDED_MODE_ENABLED,
177         Settings.Secure.ONE_HANDED_MODE_TIMEOUT,
178         Settings.Secure.TAPS_APP_TO_EXIT,
179         Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED,
180         Settings.Secure.EMERGENCY_GESTURE_ENABLED,
181         Settings.Secure.EMERGENCY_GESTURE_SOUND_ENABLED,
182         Settings.Secure.ADAPTIVE_CONNECTIVITY_ENABLED,
183         Settings.Secure.ASSIST_HANDLES_LEARNING_TIME_ELAPSED_MILLIS,
184         Settings.Secure.ASSIST_HANDLES_LEARNING_EVENT_COUNT,
185         Settings.Secure.ACCESSIBILITY_BUTTON_MODE,
186         Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE,
187         Settings.Secure.ACCESSIBILITY_FLOATING_MENU_ICON_TYPE,
188         Settings.Secure.ACCESSIBILITY_FLOATING_MENU_OPACITY,
189         Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED,
190         Settings.Secure.NOTIFICATION_BUBBLES,
191         Settings.Secure.LOCATION_TIME_ZONE_DETECTION_ENABLED,
192         Settings.Secure.LOCKSCREEN_SHOW_CONTROLS,
193         Settings.Secure.LOCKSCREEN_SHOW_WALLET,
194     };
195 }
196