• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2017 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
17syntax = "proto2";
18package android.providers.settings;
19
20option java_multiple_files = true;
21
22import "frameworks/base/core/proto/android/providers/settings/common.proto";
23import "frameworks/base/core/proto/android/privacy.proto";
24
25// Note: it's a conscious decision to add each setting as a separate field. This
26// allows annotating each setting with its own privacy tag.
27message SecureSettingsProto {
28    option (android.msg_privacy).dest = DEST_EXPLICIT;
29
30    repeated SettingsOperationProto historical_operations = 1;
31
32    message Accessibility {
33        option (android.msg_privacy).dest = DEST_EXPLICIT;
34
35        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
36        // List of the enabled accessibility providers.
37        optional SettingProto enabled_accessibility_services = 2;
38        optional SettingProto autoclick_enabled = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
39        optional SettingProto autoclick_delay = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
40        // Setting specifying the accessibility service or feature to be toggled via
41        // the accessibility button in the navigation bar. This is either a
42        // flattened ComponentName or the class name of a system class implementing
43        // a supported accessibility feature.
44        optional SettingProto button_target_component = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
45        optional SettingProto captioning_enabled = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
46        optional SettingProto captioning_locale = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
47        optional SettingProto captioning_preset = 8 [ (android.privacy).dest = DEST_AUTOMATIC ];
48        optional SettingProto captioning_background_color = 9 [ (android.privacy).dest = DEST_AUTOMATIC ];
49        optional SettingProto captioning_foreground_color = 10 [ (android.privacy).dest = DEST_AUTOMATIC ];
50        optional SettingProto captioning_edge_type = 11 [ (android.privacy).dest = DEST_AUTOMATIC ];
51        optional SettingProto captioning_edge_color = 12 [ (android.privacy).dest = DEST_AUTOMATIC ];
52        optional SettingProto captioning_window_color = 13 [ (android.privacy).dest = DEST_AUTOMATIC ];
53        optional SettingProto captioning_typeface = 14 [ (android.privacy).dest = DEST_AUTOMATIC ];
54        optional SettingProto captioning_font_scale = 15 [ (android.privacy).dest = DEST_AUTOMATIC ];
55        optional SettingProto display_daltonizer_enabled = 16 [ (android.privacy).dest = DEST_AUTOMATIC ];
56        // Integer property that specifies the type of color space adjustment to perform.
57        optional SettingProto display_daltonizer = 17 [ (android.privacy).dest = DEST_AUTOMATIC ];
58        optional SettingProto display_inversion_enabled = 18 [ (android.privacy).dest = DEST_AUTOMATIC ];
59        optional SettingProto display_magnification_enabled = 19 [ (android.privacy).dest = DEST_AUTOMATIC ];
60        optional SettingProto display_magnification_navbar_enabled = 20 [ (android.privacy).dest = DEST_AUTOMATIC ];
61        optional SettingProto display_magnification_scale = 21 [ (android.privacy).dest = DEST_AUTOMATIC ];
62        optional SettingProto high_text_contrast_enabled = 22 [ (android.privacy).dest = DEST_AUTOMATIC ];
63        optional SettingProto large_pointer_icon = 23 [ (android.privacy).dest = DEST_AUTOMATIC ];
64        optional SettingProto shortcut_enabled = 24 [ (android.privacy).dest = DEST_AUTOMATIC ];
65        optional SettingProto shortcut_on_lock_screen = 25 [ (android.privacy).dest = DEST_AUTOMATIC ];
66        optional SettingProto shortcut_dialog_shown = 26 [ (android.privacy).dest = DEST_AUTOMATIC ];
67        optional SettingProto shortcut_target_service = 27 [ (android.privacy).dest = DEST_AUTOMATIC ];
68        optional SettingProto soft_keyboard_mode = 28 [ (android.privacy).dest = DEST_AUTOMATIC ];
69        // Whether to speak passwords while in accessibility mode.
70        optional SettingProto speak_password = 29 [ (android.privacy).dest = DEST_AUTOMATIC ];
71        optional SettingProto touch_exploration_enabled = 30 [ (android.privacy).dest = DEST_AUTOMATIC ];
72        // List of the accessibility services to which the user has granted
73        // permission to put the device into touch exploration mode.
74        optional SettingProto touch_exploration_granted_accessibility_services = 31;
75        // Settings for accessibility timeout
76        optional SettingProto non_interactive_ui_timeout_ms = 32 [ (android.privacy).dest = DEST_AUTOMATIC ];
77        optional SettingProto interactive_ui_timeout_ms = 33 [ (android.privacy).dest = DEST_AUTOMATIC ];
78        // Settings for accessibility magnification.
79        optional SettingProto accessibility_magnification_mode = 34 [ (android.privacy).dest = DEST_AUTOMATIC ];
80        optional SettingProto button_targets = 35 [ (android.privacy).dest = DEST_AUTOMATIC ];
81        optional SettingProto accessibility_magnification_capability = 36 [ (android.privacy).dest = DEST_AUTOMATIC ];
82        // Settings for accessibility button related config
83        optional SettingProto accessibility_button_mode = 37 [ (android.privacy).dest = DEST_AUTOMATIC ];
84        optional SettingProto accessibility_floating_menu_size = 38 [ (android.privacy).dest = DEST_AUTOMATIC ];
85        optional SettingProto accessibility_floating_menu_icon_type = 39 [ (android.privacy).dest = DEST_AUTOMATIC ];
86        optional SettingProto accessibility_floating_menu_opacity = 40 [ (android.privacy).dest = DEST_AUTOMATIC ];
87        optional SettingProto accessibility_floating_menu_fade_enabled = 41 [ (android.privacy).dest = DEST_AUTOMATIC ];
88        optional SettingProto odi_captions_volume_ui_enabled = 42 [ (android.privacy).dest = DEST_AUTOMATIC ];
89        // Setting for accessibility magnification for following typing.
90        optional SettingProto accessibility_magnification_follow_typing_enabled = 43 [ (android.privacy).dest = DEST_AUTOMATIC ];
91        optional SettingProto contrast_level = 44 [ (android.privacy).dest = DEST_AUTOMATIC ];
92        optional SettingProto accessibility_magnification_always_on_enabled = 45 [ (android.privacy).dest = DEST_AUTOMATIC ];
93        optional SettingProto hearing_aid_ringtone_routing = 46 [ (android.privacy).dest = DEST_AUTOMATIC ];
94        optional SettingProto hearing_aid_call_routing = 47 [ (android.privacy).dest = DEST_AUTOMATIC ];
95        optional SettingProto hearing_aid_media_routing = 48 [ (android.privacy).dest = DEST_AUTOMATIC ];
96        optional SettingProto hearing_aid_notification_routing = 49 [ (android.privacy).dest = DEST_AUTOMATIC ];
97        optional SettingProto accessibility_magnification_joystick_enabled = 50 [ (android.privacy).dest = DEST_AUTOMATIC ];
98        // Settings for font scaling
99        optional SettingProto accessibility_font_scaling_has_been_changed = 51 [ (android.privacy).dest = DEST_AUTOMATIC ];
100        optional SettingProto accessibility_force_invert_color_enabled = 52 [ (android.privacy).dest = DEST_AUTOMATIC ];
101        optional SettingProto accessibility_magnification_two_finger_triple_tap_enabled = 53 [ (android.privacy).dest = DEST_AUTOMATIC ];
102        optional SettingProto qs_targets = 54 [ (android.privacy).dest = DEST_AUTOMATIC ];
103        optional SettingProto accessibility_pinch_to_zoom_anywhere_enabled = 55 [ (android.privacy).dest = DEST_AUTOMATIC ];
104        optional SettingProto accessibility_single_finger_panning_enabled = 56 [ (android.privacy).dest = DEST_AUTOMATIC ];
105        optional SettingProto accessibility_gesture_targets = 57 [ (android.privacy).dest = DEST_AUTOMATIC ];
106        optional SettingProto display_daltonizer_saturation_level = 58 [ (android.privacy).dest = DEST_AUTOMATIC ];
107
108    }
109    optional Accessibility accessibility = 2;
110
111    message AdaptiveSleep {
112        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
113    }
114    optional AdaptiveSleep adaptive_sleep = 78;
115
116    // Origins for which browsers should allow geolocation by default.
117    // The value is a space-separated list of origins.
118    optional SettingProto allowed_geolocation_origins = 3;
119
120    message AlwaysOnVpn {
121        option (android.msg_privacy).dest = DEST_EXPLICIT;
122
123        optional SettingProto app = 1;
124        optional SettingProto lockdown = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
125    }
126    optional AlwaysOnVpn always_on_vpn = 4;
127
128    optional SettingProto android_id = 5;
129    optional SettingProto anr_show_background = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
130
131    message Assist {
132        option (android.msg_privacy).dest = DEST_EXPLICIT;
133
134        // The current assistant component. It could be a voice interaction service,
135        // or an activity that handles ACTION_ASSIST, or empty, which means using
136        // the default handling.
137        optional SettingProto assistant = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
138        optional SettingProto structure_enabled = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
139        optional SettingProto screenshot_enabled = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
140        optional SettingProto disclosure_enabled = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
141        optional SettingProto gesture_enabled = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
142        optional SettingProto gesture_sensitivity = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
143        optional SettingProto gesture_silence_alerts_enabled = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
144        optional SettingProto gesture_wake_enabled = 8 [ (android.privacy).dest = DEST_AUTOMATIC ];
145        optional SettingProto gesture_setup_complete = 9 [ (android.privacy).dest = DEST_AUTOMATIC ];
146        optional SettingProto touch_gesture_enabled = 10 [ (android.privacy).dest = DEST_AUTOMATIC ];
147        optional SettingProto long_press_home_enabled = 11 [ (android.privacy).dest = DEST_AUTOMATIC ];
148        // Deprecated - use search_all_entrypoints_enabled instead
149        optional SettingProto search_press_hold_nav_handle_enabled = 12 [ (android.privacy).dest = DEST_AUTOMATIC, deprecated = true  ];
150        optional SettingProto search_long_press_home_enabled = 13 [ (android.privacy).dest = DEST_AUTOMATIC, deprecated = true  ];
151        optional SettingProto visual_query_accessibility_detection_enabled = 14 [ (android.privacy).dest = DEST_AUTOMATIC ];
152        optional SettingProto search_all_entrypoints_enabled = 15 [ (android.privacy).dest = DEST_AUTOMATIC ];
153    }
154    optional Assist assist = 7;
155
156    message AssistHandles {
157        option (android.msg_privacy).dest = DEST_EXPLICIT;
158
159        optional SettingProto learning_time_elapsed_millis = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
160        optional SettingProto learning_event_count = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
161    }
162    optional AssistHandles assist_handles = 86;
163
164    message Autofill {
165        option (android.msg_privacy).dest = DEST_EXPLICIT;
166
167        // The currently selected autofill service flattened ComponentName.
168        optional SettingProto service = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
169        // Boolean indicating if Autofill supports field classification.
170        optional SettingProto feature_field_classification = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
171        optional SettingProto user_data_max_user_data_size = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
172        optional SettingProto user_data_max_field_classification_ids_size = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
173        optional SettingProto user_data_max_category_count = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
174        optional SettingProto user_data_max_value_length = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
175        optional SettingProto user_data_min_value_length = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
176        // The query URI to find an auto fill service to install.
177        optional SettingProto service_search_uri = 8 [ (android.privacy).dest = DEST_AUTOMATIC ];
178    }
179    optional Autofill autofill = 8;
180
181    message AutomaticStorageManager {
182        option (android.msg_privacy).dest = DEST_EXPLICIT;
183
184        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
185        optional SettingProto days_to_retain = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
186        optional SettingProto bytes_cleared = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
187        optional SettingProto last_run = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
188        optional SettingProto turned_off_by_policy = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
189    }
190    optional AutomaticStorageManager automatic_storage_manager = 9;
191
192    message Backup {
193        option (android.msg_privacy).dest = DEST_EXPLICIT;
194
195        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
196        optional SettingProto auto_restore = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
197        optional SettingProto provisioned = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
198        optional SettingProto transport = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
199        optional SettingProto manager_constants = 5;
200        // Local transport parameters so we can configure it for tests.
201        // This is encoded as a key=value list, separated by commas.
202        // The following keys are supported:
203        //   fake_encryption_flag  (boolean)
204        optional SettingProto local_transport_parameters = 6;
205        optional SettingProto packages_to_clear_data_before_full_restore = 7;
206    }
207    optional Backup backup = 10;
208
209    optional SettingProto bluetooth_on_while_driving = 11 [ (android.privacy).dest = DEST_AUTOMATIC ];
210    optional SettingProto bugreport_in_power_menu = 95 [ (android.privacy).dest = DEST_AUTOMATIC ];
211
212    message Camera {
213        option (android.msg_privacy).dest = DEST_EXPLICIT;
214
215        optional SettingProto gesture_disabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
216        optional SettingProto double_tap_power_gesture_disabled = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
217        optional SettingProto double_twist_to_flip_enabled = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
218        optional SettingProto lift_trigger_enabled = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
219    }
220    optional Camera camera = 12;
221
222    optional SettingProto carrier_apps_handled = 13 [ (android.privacy).dest = DEST_AUTOMATIC ];
223
224    message Clipboard {
225        optional SettingProto show_access_notifications = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
226    }
227    optional Clipboard clipboard = 89;
228
229    optional SettingProto cmas_additional_broadcast_pkg = 14 [ (android.privacy).dest = DEST_AUTOMATIC ];
230    repeated SettingProto completed_categories = 15;
231    optional SettingProto connectivity_release_pending_intent_delay_ms = 16 [ (android.privacy).dest = DEST_AUTOMATIC ];
232    optional SettingProto adaptive_connectivity_enabled = 84 [ (android.privacy).dest = DEST_AUTOMATIC ];
233
234    message Controls {
235        option (android.msg_privacy).dest = DEST_EXPLICIT;
236
237        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
238    }
239    optional Controls controls = 79;
240
241    optional SettingProto device_paired = 17 [ (android.privacy).dest = DEST_AUTOMATIC ];
242    optional SettingProto dialer_default_application = 18 [ (android.privacy).dest = DEST_AUTOMATIC ];
243    optional SettingProto display_density_forced = 19 [ (android.privacy).dest = DEST_AUTOMATIC ];
244    optional SettingProto double_tap_to_wake = 20 [ (android.privacy).dest = DEST_AUTOMATIC ];
245
246    message DateTime {
247        option (android.msg_privacy).dest = DEST_EXPLICIT;
248
249        optional SettingProto location_time_zone_detection_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
250    }
251    optional DateTime date_time = 90;
252
253    message Display {
254        optional SettingProto screen_resolution_mode = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
255    }
256    optional Display display = 100;
257
258    message Doze {
259        option (android.msg_privacy).dest = DEST_EXPLICIT;
260
261        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
262        optional SettingProto always_on = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
263        optional SettingProto pulse_on_pick_up = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
264        optional SettingProto pulse_on_long_press = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
265        optional SettingProto pulse_on_double_tap = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
266        optional SettingProto pulse_on_tap = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
267        optional SettingProto suppress = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
268    }
269    optional Doze doze = 21;
270
271    optional SettingProto emergency_assistance_application = 22 [ (android.privacy).dest = DEST_AUTOMATIC ];
272
273    message EmergencyResponse {
274        optional SettingProto emergency_gesture_enabled = 3  [ (android.privacy).dest = DEST_AUTOMATIC ];
275        optional SettingProto emergency_gesture_sound_enabled = 4  [ (android.privacy).dest = DEST_AUTOMATIC ];
276
277        reserved 1,2;
278    }
279
280    optional EmergencyResponse emergency_response = 83;
281
282    optional SettingProto enhanced_voice_privacy_enabled = 23 [ (android.privacy).dest = DEST_AUTOMATIC ];
283
284    message EvenDimmer {
285        optional SettingProto even_dimmer_activated = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
286        optional SettingProto even_dimmer_min_nits = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
287    }
288
289    optional EvenDimmer even_dimmer = 98;
290
291    optional SettingProto font_weight_adjustment = 85 [ (android.privacy).dest = DEST_AUTOMATIC ];
292
293    message Gesture {
294        optional SettingProto aware_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
295
296        optional SettingProto silence_alarms_count = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
297        optional SettingProto silence_calls_count = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
298        optional SettingProto silence_enabled = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
299        // del: silence_notification_count = 5
300        optional SettingProto silence_timer_count = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
301
302        optional SettingProto skip_count = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
303        optional SettingProto skip_enabled = 8 [ (android.privacy).dest = DEST_AUTOMATIC ];
304
305        optional SettingProto silence_alarms_touch_count = 9 [ (android.privacy).dest =
306            DEST_AUTOMATIC ];
307        optional SettingProto silence_calls_touch_count = 10 [ (android.privacy).dest =
308            DEST_AUTOMATIC ];
309        optional SettingProto silence_timer_touch_count = 11 [ (android.privacy).dest =
310            DEST_AUTOMATIC ];
311        optional SettingProto skip_touch_count = 12 [ (android.privacy).dest = DEST_AUTOMATIC ];
312        optional SettingProto aware_tap_pause_gesture_count = 13 [
313            (android.privacy).dest =
314            DEST_AUTOMATIC ];
315        optional SettingProto aware_tap_pause_touch_count = 14 [ (android.privacy).dest =
316            DEST_AUTOMATIC ];
317    }
318    optional Gesture gesture = 74;
319
320    message GestureNavigation {
321        optional SettingProto back_gesture_inset_scale_left = 1 [(android.privacy).dest = DEST_AUTOMATIC];
322        optional SettingProto back_gesture_inset_scale_right = 2 [(android.privacy).dest = DEST_AUTOMATIC];
323    }
324    optional GestureNavigation gesture_navigation = 77;
325
326    optional SettingProto immersive_mode_confirmations = 24 [ (android.privacy).dest = DEST_AUTOMATIC ];
327
328    message Incall {
329        option (android.msg_privacy).dest = DEST_EXPLICIT;
330
331        optional SettingProto power_button_behavior = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
332        optional SettingProto back_button_behavior = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
333    }
334    optional Incall incall = 25;
335
336    message InputMethods {
337        option (android.msg_privacy).dest = DEST_EXPLICIT;
338
339        optional SettingProto default_input_method = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
340        optional SettingProto disabled_system_input_methods = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
341        optional SettingProto enabled_input_methods = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
342        optional SettingProto method_selector_visibility = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
343        optional SettingProto subtype_history = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
344        optional SettingProto selected_input_method_subtype = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
345        optional SettingProto show_ime_with_hard_keyboard = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
346        optional SettingProto default_voice_input_method = 8 [ (android.privacy).dest = DEST_AUTOMATIC ];
347    }
348    optional InputMethods input_methods = 26;
349
350    optional SettingProto install_non_market_apps = 27 [ (android.privacy).dest = DEST_AUTOMATIC ];
351    optional SettingProto instant_apps_enabled = 28 [ (android.privacy).dest = DEST_AUTOMATIC ];
352    // Uri of the slice that's presented on the keyguard. Defaults to a slice
353    // with the date and next alarm.
354    optional SettingProto keyguard_slice_uri = 29;
355    optional SettingProto last_setup_shown = 30 [ (android.privacy).dest = DEST_AUTOMATIC ];
356
357    message Launcher {
358        option (android.msg_privacy).dest = DEST_EXPLICIT;
359
360        optional SettingProto swipe_up_to_switch_apps_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
361    }
362    optional Launcher launcher = 70;
363
364    message Location {
365        option (android.msg_privacy).dest = DEST_EXPLICIT;
366
367        // The degree of location access enabled by the user.
368        optional SettingProto mode = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
369        // The App or module that changes the location mode.
370        optional SettingProto changer = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
371
372        reserved 3; // used to be used for permissions_upgrade_to_q_mode
373    }
374    optional Location location = 31;
375
376    // How frequently will the user be reminded about location permission grants
377    message LocationAccessCheck {
378        option (android.msg_privacy).dest = DEST_EXPLICIT;
379
380        // Time in between periodic checks
381        optional SettingProto interval_millis = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
382
383        // Time in between the user granting a location permission and a check
384        optional SettingProto delay_millis = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
385    }
386    optional LocationAccessCheck location_access_check = 73;
387
388    message LockScreen {
389        option (android.msg_privacy).dest = DEST_EXPLICIT;
390
391        optional SettingProto lock_after_timeout = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
392        optional SettingProto allow_private_notifications = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
393        optional SettingProto allow_remote_input = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
394        optional SettingProto show_notifications = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
395    }
396    optional LockScreen lock_screen = 32;
397
398    // Whether lock-to-app will lock the keyguard when exiting.
399    optional SettingProto lock_to_app_exit_locked = 33 [ (android.privacy).dest = DEST_AUTOMATIC ];
400    optional SettingProto lockdown_in_power_menu = 34 [ (android.privacy).dest = DEST_AUTOMATIC ];
401    optional SettingProto long_press_timeout = 35 [ (android.privacy).dest = DEST_AUTOMATIC ];
402    optional SettingProto key_press_timeout_ms = 96 [ (android.privacy).dest = DEST_AUTOMATIC ];
403    optional SettingProto key_press_delay_ms = 97 [ (android.privacy).dest = DEST_AUTOMATIC ];
404
405    message ManagedProfile {
406        option (android.msg_privacy).dest = DEST_EXPLICIT;
407
408        optional SettingProto contact_remote_search = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
409    }
410    optional ManagedProfile managed_profile = 36;
411
412    message Mount {
413        option (android.msg_privacy).dest = DEST_EXPLICIT;
414
415        // Whether or not alert sounds are played on StorageManagerService events.
416        optional SettingProto play_notification_snd = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
417        optional SettingProto ums_autostart = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
418        optional SettingProto ums_prompt = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
419        optional SettingProto ums_notify_enabled = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
420    }
421    optional Mount mount = 37;
422
423    optional SettingProto multi_press_timeout = 38 [ (android.privacy).dest = DEST_AUTOMATIC ];
424
425    message NavBar {
426        option (android.msg_privacy).dest = DEST_EXPLICIT;
427
428        // Nav bar is forced to always be visible, even in immersive mode.
429        optional SettingProto nav_bar_force_visible = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
430        // Indicates whether the device is in kids nav mode.
431        optional SettingProto nav_bar_kids_mode = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
432    }
433    optional NavBar nav_bar = 92;
434    reserved 91; // Formerly nav_bar_kids_mode
435    reserved "nav_bar_kids_mode"; // Moved to message NavBar
436
437    optional SettingProto navigation_mode = 76 [ (android.privacy).dest = DEST_AUTOMATIC ];
438
439    message NfcPayment {
440        option (android.msg_privacy).dest = DEST_EXPLICIT;
441
442        optional SettingProto default_component = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
443        // Whether NFC payment is handled by the foreground application or a default.
444        optional SettingProto foreground = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
445        // The query URI to find an NFC service to install.
446        optional SettingProto payment_service_search_uri = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
447    }
448    optional NfcPayment nfc_payment = 39;
449
450    message NightDisplay {
451        option (android.msg_privacy).dest = DEST_EXPLICIT;
452
453        optional SettingProto activated = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
454        optional SettingProto auto_mode = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
455        optional SettingProto color_temperature = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
456        optional SettingProto custom_start_time = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
457        optional SettingProto custom_end_time = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
458        optional SettingProto last_activated_time = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
459    }
460    optional NightDisplay night_display = 40;
461
462    message Notification {
463        option (android.msg_privacy).dest = DEST_EXPLICIT;
464
465        // Read only list of the service components that the current user has
466        // explicitly allowed to see and assist with all of the user's
467        // notifications.
468        // "enabled_notification_assistant" in code.
469        optional SettingProto enabled_assistant = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
470        optional SettingProto enabled_listeners = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
471        optional SettingProto enabled_policy_access_packages = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
472        optional SettingProto badging = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
473        optional SettingProto show_note_about_notification_hiding = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
474        optional SettingProto in_call_notification_enabled = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
475        optional SettingProto bubbles = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
476    }
477    optional Notification notification = 41;
478
479    message OneHanded {
480        option (android.msg_privacy).dest = DEST_EXPLICIT;
481
482        optional SettingProto one_handed_mode_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
483        optional SettingProto one_handed_mode_timeout = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
484        optional SettingProto taps_app_to_exit = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
485        optional SettingProto one_handed_mode_activated = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
486    }
487    optional OneHanded onehanded = 80;
488
489    message PackageVerifier {
490        option (android.msg_privacy).dest = DEST_EXPLICIT;
491
492        optional SettingProto user_consent = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
493        optional SettingProto state = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
494    }
495    optional PackageVerifier package_verifier = 42;
496
497    message ParentalControl {
498        option (android.msg_privacy).dest = DEST_EXPLICIT;
499
500        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
501        optional SettingProto last_update = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
502        optional SettingProto redirect_url = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
503    }
504    optional ParentalControl parental_control = 43;
505
506    message PowerMenuPrivacy {
507        option (android.msg_privacy).dest = DEST_EXPLICIT;
508
509        optional SettingProto show = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
510    }
511    optional PowerMenuPrivacy power_menu_privacy = 81;
512
513    message ExtraLowPowerMode {
514        option (android.msg_privacy).dest = DEST_EXPLICIT;
515
516        optional SettingProto extra_automatic_power_save_mode = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
517    }
518    optional ExtraLowPowerMode extra_low_power_mode = 93;
519
520    message PrintService {
521        option (android.msg_privacy).dest = DEST_EXPLICIT;
522
523        // The query URI to find a print service to install.
524        optional SettingProto search_uri = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
525        optional SettingProto disabled_print_services = 2;
526        optional SettingProto enabled_print_services = 3;
527    }
528    optional PrintService print_service = 44;
529
530    message QuickSettings {
531        option (android.msg_privacy).dest = DEST_EXPLICIT;
532
533        // Holds comma-separated list of ordering of QuickSettings tiles.
534        optional SettingProto tiles = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
535        optional SettingProto auto_added_tiles = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
536    }
537    optional QuickSettings qs = 45;
538
539    message ReduceBrightColors {
540        option (android.msg_privacy).dest = DEST_EXPLICIT;
541
542        optional SettingProto activated = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
543        optional SettingProto level = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
544        optional SettingProto persist_across_reboots = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
545    }
546    optional ReduceBrightColors reduce_bright_colors = 87;
547
548    message Rotation {
549        option (android.msg_privacy).dest = DEST_EXPLICIT;
550
551        optional SettingProto show_rotation_suggestions = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
552        optional SettingProto num_rotation_suggestions_accepted = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
553    }
554    optional Rotation rotation = 46;
555
556    // User-selected RTT mode. When on, outgoing and incoming calls will be
557    // answered as RTT calls when supported by the device and carrier. Boolean
558    // value.
559    optional SettingProto rtt_calling_mode = 69 [ (android.privacy).dest = DEST_AUTOMATIC ];
560
561    message Screensaver {
562        option (android.msg_privacy).dest = DEST_EXPLICIT;
563
564        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
565        optional SettingProto components = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
566        optional SettingProto activate_on_dock = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
567        optional SettingProto activate_on_sleep = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
568        optional SettingProto default_component = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
569    }
570    optional Screensaver screensaver = 47;
571
572    message Search {
573        option (android.msg_privacy).dest = DEST_EXPLICIT;
574
575        optional SettingProto global_search_activity = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
576        optional SettingProto num_promoted_sources = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
577        optional SettingProto max_results_to_display = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
578        optional SettingProto max_results_per_source = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
579        optional SettingProto web_results_override_limit = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
580        optional SettingProto promoted_source_deadline_millis = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
581        optional SettingProto source_timeout_millis = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
582        optional SettingProto prefill_millis = 8 [ (android.privacy).dest = DEST_AUTOMATIC ];
583        optional SettingProto max_stat_age_millis = 9 [ (android.privacy).dest = DEST_AUTOMATIC ];
584        optional SettingProto max_source_event_age_millis = 10 [ (android.privacy).dest = DEST_AUTOMATIC ];
585        optional SettingProto min_impressions_for_source_ranking = 11 [ (android.privacy).dest = DEST_AUTOMATIC ];
586        optional SettingProto min_clicks_for_source_ranking = 12 [ (android.privacy).dest = DEST_AUTOMATIC ];
587        optional SettingProto max_shortcuts_returned = 13 [ (android.privacy).dest = DEST_AUTOMATIC ];
588        optional SettingProto query_thread_core_pool_size = 14 [ (android.privacy).dest = DEST_AUTOMATIC ];
589        optional SettingProto query_thread_max_pool_size = 15 [ (android.privacy).dest = DEST_AUTOMATIC ];
590        optional SettingProto shortcut_refresh_core_pool_size = 16 [ (android.privacy).dest = DEST_AUTOMATIC ];
591        optional SettingProto shortcut_refresh_max_pool_size = 17 [ (android.privacy).dest = DEST_AUTOMATIC ];
592        optional SettingProto thread_keepalive_seconds = 18 [ (android.privacy).dest = DEST_AUTOMATIC ];
593        optional SettingProto per_source_concurrent_query_limit = 19 [ (android.privacy).dest = DEST_AUTOMATIC ];
594    }
595    optional Search search = 48;
596
597    message CameraAutorotate {
598        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
599    }
600    optional CameraAutorotate camera_autorotate = 88;
601
602    message SpellChecker {
603        option (android.msg_privacy).dest = DEST_EXPLICIT;
604
605        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
606        // "selected_spell_checker" in code.
607        optional SettingProto selected = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
608        // "selected_spell_checker_subtype" in code.
609        optional SettingProto selected_subtype = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
610    }
611    optional SpellChecker spell_checker = 49;
612
613    optional SettingProto settings_classname = 50 [ (android.privacy).dest = DEST_AUTOMATIC ];
614    optional SettingProto show_first_crash_dialog_dev_option = 51 [ (android.privacy).dest = DEST_AUTOMATIC ];
615    optional SettingProto skip_first_use_hints = 52 [ (android.privacy).dest = DEST_AUTOMATIC ];
616    optional SettingProto sleep_timeout = 53 [ (android.privacy).dest = DEST_AUTOMATIC ];
617    optional SettingProto sms_default_application = 54 [ (android.privacy).dest = DEST_AUTOMATIC ];
618
619    message Sounds {
620        option (android.msg_privacy).dest = DEST_EXPLICIT;
621
622        optional SettingProto charging_sounds_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
623        optional SettingProto charging_vibration_enabled = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
624    }
625    optional Sounds sounds = 72;
626
627    optional SettingProto stylus_pointer_icon_enabled = 99 [ (android.privacy).dest = DEST_AUTOMATIC ];
628    optional SettingProto swipe_bottom_to_notification_enabled = 82 [ (android.privacy).dest = DEST_AUTOMATIC ];
629    // Defines whether managed profile ringtones should be synced from its
630    // parent profile.
631    optional SettingProto sync_parent_sounds = 55 [ (android.privacy).dest = DEST_AUTOMATIC ];
632    optional SettingProto system_navigation_keys_enabled = 56 [ (android.privacy).dest = DEST_AUTOMATIC ];
633    optional SettingProto theme_customization_overlay_packages = 75 [ (android.privacy).dest = DEST_AUTOMATIC ];
634    optional SettingProto trust_agents_initialized = 57 [ (android.privacy).dest = DEST_AUTOMATIC ];
635
636    message TrackpadGesture {
637        optional SettingProto trackpad_gesture_back_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
638        optional SettingProto trackpad_gesture_home_enabled = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
639        optional SettingProto trackpad_gesture_overview_enabled = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
640        optional SettingProto trackpad_gesture_notification_enabled = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
641        optional SettingProto trackpad_gesture_quick_switch_enabled = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
642    }
643    optional TrackpadGesture trackpad_gesture = 94;
644
645    message Tts {
646        option (android.msg_privacy).dest = DEST_EXPLICIT;
647
648        optional SettingProto default_rate = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
649        optional SettingProto default_pitch = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
650        optional SettingProto default_synth = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
651        optional SettingProto default_locale = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
652        optional SettingProto enabled_plugins = 5;
653    }
654    optional Tts tts = 58;
655
656    message Tty {
657        option (android.msg_privacy).dest = DEST_EXPLICIT;
658
659        optional SettingProto tty_mode_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
660        // The preferred TTY mode:
661        // 0 = TTy Off, CDMA default
662        // 1 = TTY Full
663        // 2 = TTY HCO
664        // 3 = TTY VCO
665        optional SettingProto preferred_tty_mode = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
666    }
667    optional Tty tty = 59;
668
669    message Tv {
670        option (android.msg_privacy).dest = DEST_EXPLICIT;
671
672        // Whether the current user has been set up via setup wizard (0 = false,
673        // 1 = true). This value differs from USER_SETUP_COMPLETE in that it can be
674        // reset back to 0 in case SetupWizard has been re-enabled on TV devices.
675        optional SettingProto user_setup_complete = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
676        optional SettingProto input_hidden_inputs = 2;
677        optional SettingProto input_custom_labels = 3;
678    }
679    optional Tv tv = 60;
680
681    optional SettingProto ui_night_mode = 61 [ (android.privacy).dest = DEST_AUTOMATIC ];
682    optional SettingProto unknown_sources_default_reversed = 62 [ (android.privacy).dest = DEST_AUTOMATIC ];
683    optional SettingProto usb_audio_automatic_routing_disabled = 63 [ (android.privacy).dest = DEST_AUTOMATIC ];
684    // Whether the current user has been set up via setup wizard (0 = false, 1 = true)
685    optional SettingProto user_setup_complete = 64 [ (android.privacy).dest = DEST_AUTOMATIC ];
686
687    message Voice {
688        option (android.msg_privacy).dest = DEST_EXPLICIT;
689
690        // The currently selected voice interaction service flattened ComponentName.
691        optional SettingProto interaction_service = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
692        // The ComponentName string of the service to be used as the voice
693        // recognition service.
694        optional SettingProto recognition_service = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
695    }
696    optional Voice voice = 65;
697
698    message Volume {
699        option (android.msg_privacy).dest = DEST_EXPLICIT;
700
701        // What behavior should be invoked when the volume hush gesture is triggered
702        // One of VOLUME_HUSH_OFF, VOLUME_HUSH_VIBRATE, VOLUME_HUSH_MUTE.
703        optional SettingProto hush_gesture = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
704        // Persisted playback time after a user confirmation of an unsafe volume level.
705        optional SettingProto unsafe_volume_music_active_ms = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
706    }
707    optional Volume volume = 66;
708
709    message Vr {
710        option (android.msg_privacy).dest = DEST_EXPLICIT;
711
712        optional SettingProto display_mode = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
713        optional SettingProto enabled_listeners = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
714    }
715    optional Vr vr = 67;
716
717    optional SettingProto wake_gesture_enabled = 68 [ (android.privacy).dest = DEST_AUTOMATIC ];
718
719    message Zen {
720        option (android.msg_privacy).dest = DEST_EXPLICIT;
721
722        // If 0, turning on dnd manually will last indefinitely. Else if
723        // non-negative, turning on dnd manually will last for this many minutes.
724        // Else (if negative), turning on dnd manually will surface a dialog that
725        // prompts user to specify a duration.
726        optional SettingProto duration = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
727        optional SettingProto show_zen_upgrade_notification = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
728        optional SettingProto show_zen_settings_suggestion = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
729        optional SettingProto settings_updated = 4 [ (android.privacy).dest = DEST_AUTOMATIC ];
730        optional SettingProto settings_suggestion_viewed = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
731    }
732    optional Zen zen = 71;
733
734    optional SettingProto charge_optimization_mode = 101 [ (android.privacy).dest = DEST_AUTOMATIC ];
735
736    // Please insert fields in alphabetical order and group them into messages
737    // if possible (to avoid reaching the method limit).
738    // Next tag = 102;
739}
740