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.AUTOFILL_SERVICE,
42         Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
43         Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
44         Settings.Secure.ENABLED_VR_LISTENERS,
45         Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES,
46         Settings.Secure.TOUCH_EXPLORATION_ENABLED,
47         Settings.Secure.ACCESSIBILITY_ENABLED,
48         Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE,
49         Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT,
50         Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN,
51         Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN,
52         Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED,
53         Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET,
54         Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED,
55         Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE,
56         Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR,
57         Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR,
58         Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE,
59         Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR,
60         Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE,
61         Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE,
62         Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR,
63         Settings.Secure.TTS_DEFAULT_RATE,
64         Settings.Secure.TTS_DEFAULT_PITCH,
65         Settings.Secure.TTS_DEFAULT_SYNTH,
66         Settings.Secure.TTS_ENABLED_PLUGINS,
67         Settings.Secure.TTS_DEFAULT_LOCALE,
68         Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD,
69         Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,            // moved to global
70         Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY,               // moved to global
71         Settings.Secure.WIFI_NUM_OPEN_NETWORKS_KEPT,                        // moved to global
72         Settings.Secure.MOUNT_PLAY_NOTIFICATION_SND,
73         Settings.Secure.MOUNT_UMS_AUTOSTART,
74         Settings.Secure.MOUNT_UMS_PROMPT,
75         Settings.Secure.MOUNT_UMS_NOTIFY_ENABLED,
76         Settings.Secure.DOUBLE_TAP_TO_WAKE,
77         Settings.Secure.WAKE_GESTURE_ENABLED,
78         Settings.Secure.LONG_PRESS_TIMEOUT,
79         Settings.Secure.CAMERA_GESTURE_DISABLED,
80         Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED,
81         Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
82         Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON,
83         Settings.Secure.PREFERRED_TTY_MODE,
84         Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED,
85         Settings.Secure.TTY_MODE_ENABLED,
86         Settings.Secure.RTT_CALLING_MODE,
87         Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
88         Settings.Secure.MINIMAL_POST_PROCESSING_ALLOWED,
89         Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME,
90         Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME,
91         Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE,
92         Settings.Secure.NIGHT_DISPLAY_AUTO_MODE,
93         Settings.Secure.DISPLAY_WHITE_BALANCE_ENABLED,
94         Settings.Secure.SYNC_PARENT_SOUNDS,
95         Settings.Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
96         Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
97         Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED,
98         Settings.Secure.QS_TILES,
99         Settings.Secure.CONTROLS_ENABLED,
100         Settings.Secure.POWER_MENU_LOCKED_SHOW_CONTENT,
101         Settings.Secure.DOZE_ENABLED,
102         Settings.Secure.DOZE_ALWAYS_ON,
103         Settings.Secure.DOZE_PICK_UP_GESTURE,
104         Settings.Secure.DOZE_DOUBLE_TAP_GESTURE,
105         Settings.Secure.DOZE_TAP_SCREEN_GESTURE,
106         Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
107         Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
108         Settings.Secure.FACE_UNLOCK_KEYGUARD_ENABLED,
109         Settings.Secure.SHOW_MEDIA_WHEN_BYPASSING,
110         Settings.Secure.FACE_UNLOCK_DISMISSES_KEYGUARD,
111         Settings.Secure.FACE_UNLOCK_APP_ENABLED,
112         Settings.Secure.FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION,
113         Settings.Secure.VR_DISPLAY_MODE,
114         Settings.Secure.NOTIFICATION_BADGING,
115         Settings.Secure.NOTIFICATION_DISMISS_RTL,
116         Settings.Secure.QS_AUTO_ADDED_TILES,
117         Settings.Secure.SCREENSAVER_ENABLED,
118         Settings.Secure.SCREENSAVER_COMPONENTS,
119         Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
120         Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP,
121         Settings.Secure.LOCKDOWN_IN_POWER_MENU,
122         Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION,
123         Settings.Secure.VOLUME_HUSH_GESTURE,
124         Settings.Secure.MANUAL_RINGER_TOGGLE_COUNT,
125         Settings.Secure.HUSH_GESTURE_USED,
126         Settings.Secure.IN_CALL_NOTIFICATION_ENABLED,
127         Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
128         Settings.Secure.LOCK_SCREEN_CUSTOM_CLOCK_FACE,
129         Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
130         Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS,
131         Settings.Secure.SHOW_NOTIFICATION_SNOOZE,
132         Settings.Secure.NOTIFICATION_HISTORY_ENABLED,
133         Settings.Secure.ZEN_DURATION,
134         Settings.Secure.SHOW_ZEN_UPGRADE_NOTIFICATION,
135         Settings.Secure.SHOW_ZEN_SETTINGS_SUGGESTION,
136         Settings.Secure.ZEN_SETTINGS_UPDATED,
137         Settings.Secure.ZEN_SETTINGS_SUGGESTION_VIEWED,
138         Settings.Secure.CHARGING_SOUNDS_ENABLED,
139         Settings.Secure.CHARGING_VIBRATION_ENABLED,
140         Settings.Secure.ACCESSIBILITY_NON_INTERACTIVE_UI_TIMEOUT_MS,
141         Settings.Secure.ACCESSIBILITY_INTERACTIVE_UI_TIMEOUT_MS,
142         Settings.Secure.NOTIFICATION_NEW_INTERRUPTION_MODEL,
143         Settings.Secure.TRUST_AGENTS_EXTEND_UNLOCK,
144         Settings.Secure.UI_NIGHT_MODE,
145         Settings.Secure.DARK_THEME_CUSTOM_START_TIME,
146         Settings.Secure.DARK_THEME_CUSTOM_END_TIME,
147         Settings.Secure.LOCK_SCREEN_WHEN_TRUST_LOST,
148         Settings.Secure.SKIP_DIRECTION,
149         Settings.Secure.THEME_CUSTOMIZATION_OVERLAY_PACKAGES,
150         Settings.Secure.BACK_GESTURE_INSET_SCALE_LEFT,
151         Settings.Secure.BACK_GESTURE_INSET_SCALE_RIGHT,
152         Settings.Secure.NAVIGATION_MODE,
153         Settings.Secure.SKIP_GESTURE_COUNT,
154         Settings.Secure.SKIP_TOUCH_COUNT,
155         Settings.Secure.SILENCE_ALARMS_GESTURE_COUNT,
156         Settings.Secure.SILENCE_CALL_GESTURE_COUNT,
157         Settings.Secure.SILENCE_TIMER_GESTURE_COUNT,
158         Settings.Secure.SILENCE_ALARMS_TOUCH_COUNT,
159         Settings.Secure.SILENCE_CALL_TOUCH_COUNT,
160         Settings.Secure.SILENCE_TIMER_TOUCH_COUNT,
161         Settings.Secure.DARK_MODE_DIALOG_SEEN,
162         Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED,
163         Settings.Secure.AWARE_LOCK_ENABLED,
164         Settings.Secure.AWARE_TAP_PAUSE_GESTURE_COUNT,
165         Settings.Secure.AWARE_TAP_PAUSE_TOUCH_COUNT,
166         Settings.Secure.PEOPLE_STRIP,
167         Settings.Secure.MEDIA_CONTROLS_RESUME,
168         Settings.Secure.ACCESSIBILITY_MAGNIFICATION_MODE,
169         Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS
170     };
171 }
172