1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18                  xmlns:settings="http://schemas.android.com/apk/res-auto"
19                  android:key="development_prefs_screen"
20                  android:title="@string/development_settings_title">
21
22    <PreferenceCategory
23        android:key="debug_misc_category"
24        android:order="100">
25
26        <Preference
27            android:key="memory"
28            android:icon="@drawable/ic_settings_memory"
29            android:title="@string/memory_settings_title"
30            android:summary="@string/summary_placeholder"
31            android:fragment="com.android.settings.applications.ProcessStatsSummary" />
32
33        <com.android.settings.BugreportPreference
34            android:key="bugreport"
35            android:title="@*android:string/bugreport_title"
36            android:dialogTitle="@*android:string/bugreport_title" />
37
38        <Preference
39            android:key="system_server_heap_dump"
40            android:title="@string/capture_system_heap_dump_title" />
41
42        <Preference
43            android:key="local_backup_password"
44            android:title="@string/local_backup_password_title"
45            android:summary="@string/local_backup_password_summary_none"
46            android:persistent="false">
47            <intent
48                android:action="android.settings.privacy.SET_FULL_BACKUP_PASSWORD"
49                android:targetPackage="com.android.settings"
50                android:targetClass="com.android.settings.SetFullBackupPassword" />
51        </Preference>
52
53        <com.android.settingslib.RestrictedSwitchPreference
54            android:key="keep_screen_on"
55            android:title="@string/keep_screen_on"
56            android:summary="@string/keep_screen_on_summary"
57            settings:useAdditionalSummary="true" />
58
59        <ListPreference
60            android:key="hdcp_checking"
61            android:title="@string/hdcp_checking_title"
62            android:dialogTitle="@string/hdcp_checking_dialog_title"
63            android:entries="@array/hdcp_checking_titles"
64            android:entryValues="@array/hdcp_checking_values" />
65
66        <ListPreference
67            android:key="bt_hci_snoop_log"
68            android:title="@string/bt_hci_snoop_log"
69            android:dialogTitle="@string/bt_hci_snoop_log_summary"
70            android:entries="@array/bt_hci_snoop_log_entries"
71            android:entryValues="@array/bt_hci_snoop_log_values" />
72
73        <com.android.settingslib.RestrictedSwitchPreference
74            android:key="oem_unlock_enable"
75            android:title="@string/oem_unlock_enable"
76            android:summary="@string/oem_unlock_enable_summary"
77            settings:useAdditionalSummary="true" />
78
79        <Preference
80            android:key="running_apps"
81            android:title="@string/runningservices_settings_title"
82            android:summary="@string/runningservices_settings_summary"
83            android:fragment="com.android.settings.applications.RunningServices" />
84
85        <Preference
86            android:key="convert_to_file_encryption"
87            android:title="@string/convert_to_file_encryption"
88            android:summary="@string/convert_to_file_encryption_enabled"
89            android:fragment="com.android.settings.applications.ConvertToFbe" />
90
91        <com.android.settings.development.ColorModePreference
92            android:key="picture_color_mode"
93            android:title="@string/picture_color_mode"
94            android:summary="@string/picture_color_mode_desc" />
95
96        <Preference android:key="select_webview_provider"
97                    android:title="@string/select_webview_provider_title"
98                    android:dialogTitle="@string/select_webview_provider_dialog_title"
99                    android:fragment="com.android.settings.webview.WebViewAppPicker" />
100
101        <SwitchPreference
102            android:key="color_temperature"
103            android:title="@string/color_temperature"
104            android:summary="@string/color_temperature_desc" />
105
106        <SwitchPreference
107            android:key="ota_disable_automatic_update"
108            android:title="@string/ota_disable_automatic_update"
109            android:summary="@string/ota_disable_automatic_update_summary" />
110
111        <Preference
112            android:key="demo_mode"
113            android:title="@string/demo_mode">
114            <intent android:action="com.android.settings.action.DEMO_MODE" />
115        </Preference>
116
117        <Preference
118            android:key="quick_settings_tiles"
119            android:title="@string/quick_settings_developer_tiles"
120            android:fragment="com.android.settings.development.qstile.DevelopmentTileConfigFragment"
121            settings:searchable="false" />
122
123    <!-- Configure trust agent behavior -->
124    <SwitchPreference
125        android:key="security_setting_trust_agents_extend_unlock"
126        android:title="@string/trust_agents_extend_unlock_title"
127        android:summary="@string/trust_agents_extend_unlock_summary" />
128
129    <SwitchPreference
130        android:key="security_setting_trust_lost_locks_screen"
131        android:title="@string/trust_lost_locks_screen_title"
132        android:summary="@string/trust_lost_locks_screen_summary" />
133    </PreferenceCategory>
134
135    <PreferenceCategory
136        android:key="debug_debugging_category"
137        android:title="@string/debug_debugging_category"
138        android:order="200">
139
140        <SwitchPreference
141            android:key="enable_adb"
142            android:title="@string/enable_adb"
143            android:summary="@string/enable_adb_summary" />
144
145        <Preference android:key="clear_adb_keys"
146                    android:title="@string/clear_adb_keys" />
147
148        <com.android.settings.widget.MasterSwitchPreference
149            android:fragment="com.android.settings.development.WirelessDebuggingFragment"
150            android:key="toggle_adb_wireless"
151            android:title="@string/enable_adb_wireless"
152            android:summary="@string/enable_adb_wireless_summary"
153            settings:keywords="@string/keywords_adb_wireless" />
154
155        <SwitchPreference
156            android:key="enable_terminal"
157            android:title="@string/enable_terminal_title"
158            android:summary="@string/enable_terminal_summary" />
159
160        <SwitchPreference
161            android:key="bugreport_in_power"
162            android:title="@string/bugreport_in_power"
163            android:summary="@string/bugreport_in_power_summary" />
164
165        <SwitchPreference
166            android:key="automatic_system_server_heap_dumps"
167            android:title="@string/automatic_system_heap_dump_title"
168            android:summary="@string/automatic_system_heap_dump_summary" />
169
170        <Preference android:key="mock_location_app"
171                    android:title="@string/mock_location_app" />
172
173        <SwitchPreference
174            android:key="enable_gnss_raw_meas_full_tracking"
175            android:title="@string/enable_gnss_raw_meas_full_tracking"
176            android:summary="@string/enable_gnss_raw_meas_full_tracking_summary" />
177
178        <SwitchPreference
179            android:key="debug_view_attributes"
180            android:title="@string/debug_view_attributes" />
181
182        <Preference android:key="debug_app"
183                    android:title="@string/debug_app" />
184
185        <SwitchPreference
186            android:key="wait_for_debugger"
187            android:title="@string/wait_for_debugger"
188            android:summary="@string/wait_for_debugger_summary" />
189
190        <com.android.settingslib.RestrictedSwitchPreference
191            android:key="verify_apps_over_usb"
192            android:title="@string/verify_apps_over_usb_title"
193            android:summary="@string/verify_apps_over_usb_summary" />
194
195        <SwitchPreference
196            android:key="art_verifier_for_debuggable"
197            android:title="@string/art_verifier_for_debuggable_title"
198            android:summary="@string/art_verifier_for_debuggable_summary" />
199
200        <ListPreference
201            android:key="select_logd_size"
202            android:title="@string/select_logd_size_title"
203            android:dialogTitle="@string/select_logd_size_dialog_title"
204            android:entries="@array/select_logd_size_titles"
205            android:entryValues="@array/select_logd_size_values" />
206
207        <ListPreference
208            android:key="select_logpersist"
209            android:title="@string/select_logpersist_title"
210            android:dialogTitle="@string/select_logpersist_dialog_title"
211            android:entries="@array/select_logpersist_titles"
212            android:entryValues="@array/select_logpersist_values" />
213
214        <SwitchPreference
215            android:key="camera_laser_sensor_switch"
216            android:title="@string/camera_laser_sensor_switch" />
217
218        <Preference
219            android:key="feature_flags_dashboard"
220            android:title="@string/feature_flags_dashboard_title"
221            android:fragment="com.android.settings.development.featureflags.FeatureFlagsDashboard"
222            settings:searchable="false" />
223
224        <SwitchPreference
225            android:key="enable_gpu_debug_layers"
226            android:title="@string/enable_gpu_debug_layers"
227            android:summary="@string/enable_gpu_debug_layers_summary" />
228
229        <Preference
230            android:key="game_driver_dashboard"
231            android:title="@string/game_driver_dashboard_title"
232            android:summary="@string/game_driver_dashboard_summary"
233            android:fragment="com.android.settings.development.gamedriver.GameDriverDashboard"
234            settings:searchable="false" />
235
236        <Preference
237            android:key="platform_compat_dashboard"
238            android:title="@string/platform_compat_dashboard_title"
239            android:summary="@string/platform_compat_dashboard_summary"
240            android:fragment="com.android.settings.development.compat.PlatformCompatDashboard"
241            />
242
243    </PreferenceCategory>
244
245    <PreferenceCategory
246        android:key="dashboard_tile_placeholder"
247        android:order="300" />
248
249    <PreferenceCategory
250        android:key="debug_networking_category"
251        android:title="@string/debug_networking_category"
252        android:order="400">
253
254        <SwitchPreference
255            android:key="wifi_display_certification"
256            android:title="@string/wifi_display_certification"
257            android:summary="@string/wifi_display_certification_summary" />
258
259        <SwitchPreference
260            android:key="wifi_verbose_logging"
261            android:title="@string/wifi_verbose_logging"
262            android:summary="@string/wifi_verbose_logging_summary" />
263
264        <SwitchPreference
265            android:key="wifi_scan_throttling"
266            android:title="@string/wifi_scan_throttling"
267            android:summary="@string/wifi_scan_throttling_summary" />
268
269        <SwitchPreference
270            android:key="mobile_data_always_on"
271            android:title="@string/mobile_data_always_on"
272            android:summary="@string/mobile_data_always_on_summary" />
273
274        <SwitchPreference
275            android:key="tethering_hardware_offload"
276            android:title="@string/tethering_hardware_offload"
277            android:summary="@string/tethering_hardware_offload_summary" />
278
279        <Preference
280            android:key="default_usb_configuration"
281            android:fragment="com.android.settings.connecteddevice.usb.UsbDefaultFragment"
282            android:icon="@drawable/ic_usb"
283            android:title="@string/usb_default_label"/>
284
285        <SwitchPreference
286            android:key="bluetooth_show_devices_without_names"
287            android:title="@string/bluetooth_show_devices_without_names"
288            android:summary="@string/bluetooth_show_devices_without_names_summary" />
289
290        <SwitchPreference
291            android:key="bluetooth_disable_absolute_volume"
292            android:title="@string/bluetooth_disable_absolute_volume"
293            android:summary="@string/bluetooth_disable_absolute_volume_summary" />
294
295        <SwitchPreference
296            android:key="bluetooth_disable_a2dp_hw_offload"
297            android:title="@string/bluetooth_disable_a2dp_hw_offload" />
298
299        <ListPreference
300            android:key="bluetooth_select_avrcp_version"
301            android:title="@string/bluetooth_select_avrcp_version_string"
302            android:dialogTitle="@string/bluetooth_select_avrcp_version_dialog_title"
303            android:entries="@array/bluetooth_avrcp_versions"
304            android:entryValues="@array/bluetooth_avrcp_version_values" />
305
306        <ListPreference
307            android:key="bluetooth_select_map_version"
308            android:title="@string/bluetooth_select_map_version_string"
309            android:dialogTitle="@string/bluetooth_select_map_version_dialog_title"
310            android:entries="@array/bluetooth_map_versions"
311            android:entryValues="@array/bluetooth_map_version_values" />
312
313        <ListPreference
314            android:key="bluetooth_select_a2dp_codec"
315            android:title="@string/bluetooth_select_a2dp_codec_type"
316            android:dialogTitle="@string/bluetooth_select_a2dp_codec_type_dialog_title"
317            android:entries="@array/bluetooth_a2dp_codec_titles"
318            android:entryValues="@array/bluetooth_a2dp_codec_values" />
319
320        <ListPreference
321            android:key="bluetooth_select_a2dp_sample_rate"
322            android:title="@string/bluetooth_select_a2dp_codec_sample_rate"
323            android:dialogTitle="@string/bluetooth_select_a2dp_codec_sample_rate_dialog_title"
324            android:entries="@array/bluetooth_a2dp_codec_sample_rate_titles"
325            android:entryValues="@array/bluetooth_a2dp_codec_sample_rate_values" />
326
327        <ListPreference
328            android:key="bluetooth_select_a2dp_bits_per_sample"
329            android:title="@string/bluetooth_select_a2dp_codec_bits_per_sample"
330            android:dialogTitle="@string/bluetooth_select_a2dp_codec_bits_per_sample_dialog_title"
331            android:entries="@array/bluetooth_a2dp_codec_bits_per_sample_titles"
332            android:entryValues="@array/bluetooth_a2dp_codec_bits_per_sample_values" />
333
334        <ListPreference
335            android:key="bluetooth_select_a2dp_channel_mode"
336            android:title="@string/bluetooth_select_a2dp_codec_channel_mode"
337            android:dialogTitle="@string/bluetooth_select_a2dp_codec_channel_mode_dialog_title"
338            android:entries="@array/bluetooth_a2dp_codec_channel_mode_titles"
339            android:entryValues="@array/bluetooth_a2dp_codec_channel_mode_values" />
340
341        <ListPreference
342            android:key="bluetooth_select_a2dp_ldac_playback_quality"
343            android:title="@string/bluetooth_select_a2dp_codec_ldac_playback_quality"
344            android:dialogTitle="@string/bluetooth_select_a2dp_codec_ldac_playback_quality_dialog_title"
345            android:entries="@array/bluetooth_a2dp_codec_ldac_playback_quality_titles"
346            android:entryValues="@array/bluetooth_a2dp_codec_ldac_playback_quality_values" />
347
348        <ListPreference
349            android:key="bluetooth_max_connected_audio_devices"
350            android:title="@string/bluetooth_max_connected_audio_devices_string"
351            android:dialogTitle="@string/bluetooth_max_connected_audio_devices_dialog_title"
352            android:entries="@array/bluetooth_max_connected_audio_devices"
353            android:entryValues="@array/bluetooth_max_connected_audio_devices_values" />
354
355    </PreferenceCategory>
356
357    <PreferenceCategory
358        android:key="debug_input_category"
359        android:title="@string/debug_input_category"
360        android:order="500">
361
362        <SwitchPreference
363            android:key="show_touches"
364            android:title="@string/show_touches"
365            android:summary="@string/show_touches_summary" />
366
367        <SwitchPreference
368            android:key="pointer_location"
369            android:title="@string/pointer_location"
370            android:summary="@string/pointer_location_summary" />
371
372    </PreferenceCategory>
373
374    <PreferenceCategory
375        android:key="debug_drawing_category"
376        android:title="@string/debug_drawing_category"
377        android:order="600">
378
379        <SwitchPreference
380            android:key="show_screen_updates"
381            android:title="@string/show_screen_updates"
382            android:summary="@string/show_screen_updates_summary" />
383
384        <SwitchPreference
385            android:key="debug_layout"
386            android:title="@string/debug_layout"
387            android:summary="@string/debug_layout_summary" />
388
389        <SwitchPreference
390            android:key="force_rtl_layout_all_locales"
391            android:title="@string/force_rtl_layout_all_locales"
392            android:summary="@string/force_rtl_layout_all_locales_summary" />
393
394        <ListPreference
395            android:key="window_animation_scale"
396            android:title="@string/window_animation_scale_title"
397            android:entries="@array/window_animation_scale_entries"
398            android:entryValues="@array/window_animation_scale_values" />
399
400        <ListPreference
401            android:key="transition_animation_scale"
402            android:title="@string/transition_animation_scale_title"
403            android:entries="@array/transition_animation_scale_entries"
404            android:entryValues="@array/transition_animation_scale_values" />
405
406        <ListPreference
407            android:key="animator_duration_scale"
408            android:title="@string/animator_duration_scale_title"
409            android:entries="@array/animator_duration_scale_entries"
410            android:entryValues="@array/animator_duration_scale_values" />
411
412        <ListPreference
413            android:key="overlay_display_devices"
414            android:title="@string/overlay_display_devices_title"
415            android:entries="@array/overlay_display_devices_entries"
416            android:entryValues="@array/overlay_display_devices_values" />
417
418        <com.android.settings.display.DensityPreference
419            android:key="density"
420            android:title="@string/developer_smallest_width" />
421
422        <ListPreference
423            android:key="display_cutout_emulation"
424            android:title="@string/display_cutout_emulation"
425            settings:keywords="@string/display_cutout_emulation_keywords" />
426
427    </PreferenceCategory>
428
429    <PreferenceCategory
430        android:key="debug_hw_drawing_category"
431        android:title="@string/debug_hw_drawing_category"
432        android:order="700">
433
434        <SwitchPreference
435            android:key="show_hw_screen_updates"
436            android:title="@string/show_hw_screen_updates"
437            android:summary="@string/show_hw_screen_updates_summary" />
438
439        <SwitchPreference
440            android:key="show_hw_layers_updates"
441            android:title="@string/show_hw_layers_updates"
442            android:summary="@string/show_hw_layers_updates_summary" />
443
444        <ListPreference
445            android:key="debug_hw_overdraw"
446            android:title="@string/debug_hw_overdraw"
447            android:entries="@array/debug_hw_overdraw_entries"
448            android:entryValues="@array/debug_hw_overdraw_values" />
449
450        <ListPreference
451            android:key="show_non_rect_clip"
452            android:title="@string/show_non_rect_clip"
453            android:entries="@array/show_non_rect_clip_entries"
454            android:entryValues="@array/show_non_rect_clip_values" />
455
456        <SwitchPreference
457            android:key="hwui_force_dark"
458            android:title="@string/hwui_force_dark_title"
459            android:summary="@string/hwui_force_dark_summary" />
460
461        <SwitchPreference
462            android:key="force_msaa"
463            android:title="@string/force_msaa"
464            android:summary="@string/force_msaa_summary" />
465
466        <SwitchPreference
467            android:key="disable_overlays"
468            android:title="@string/disable_overlays"
469            android:summary="@string/disable_overlays_summary" />
470
471        <ListPreference
472            android:entries="@array/simulate_color_space_entries"
473            android:entryValues="@array/simulate_color_space_values"
474            android:key="simulate_color_space"
475            android:summary="%s"
476            android:title="@string/simulate_color_space" />
477
478    </PreferenceCategory>
479
480    <PreferenceCategory
481        android:key="media_category"
482        android:title="@string/media_category"
483        android:order="800">
484
485        <SwitchPreference
486            android:key="usb_audio"
487            android:title="@string/usb_audio_disable_routing"
488            android:summary="@string/usb_audio_disable_routing_summary" />
489
490    </PreferenceCategory>
491
492    <PreferenceCategory
493        android:key="debug_monitoring_category"
494        android:title="@string/debug_monitoring_category"
495        android:order="900">
496
497        <SwitchPreference
498            android:key="strict_mode"
499            android:title="@string/strict_mode"
500            android:summary="@string/strict_mode_summary" />
501
502        <ListPreference
503            android:key="track_frame_time"
504            android:title="@string/track_frame_time"
505            android:entries="@array/track_frame_time_entries"
506            android:entryValues="@array/track_frame_time_values" />
507
508    </PreferenceCategory>
509
510    <PreferenceCategory
511        android:key="debug_applications_category"
512        android:title="@string/debug_applications_category"
513        android:order="1000">
514
515        <SwitchPreference
516            android:key="immediately_destroy_activities"
517            android:title="@string/immediately_destroy_activities"
518            android:summary="@string/immediately_destroy_activities_summary" />
519
520        <ListPreference
521            android:key="app_process_limit"
522            android:title="@string/app_process_limit_title"
523            android:entries="@array/app_process_limit_entries"
524            android:entryValues="@array/app_process_limit_values" />
525
526        <Preference
527            android:key="background_check"
528            android:fragment="com.android.settings.applications.appops.BackgroundCheckSummary"
529            android:title="@string/background_check_pref" />
530
531        <SwitchPreference
532            android:key="show_first_crash_dialog"
533            android:title="@string/show_first_crash_dialog"
534            android:summary="@string/show_first_crash_dialog_summary" />
535
536        <SwitchPreference
537            android:key="show_all_anrs"
538            android:title="@string/show_all_anrs"
539            android:summary="@string/show_all_anrs_summary" />
540
541        <SwitchPreference
542            android:key="show_notification_channel_warnings"
543            android:title="@string/show_notification_channel_warnings"
544            android:summary="@string/show_notification_channel_warnings_summary" />
545
546        <SwitchPreference
547            android:key="asst_capability_prioritizer"
548            android:title="@string/asst_capability_prioritizer_title"
549            settings:controller="com.android.settings.notification.AssistantCapabilityPreferenceController" />
550
551        <Preference
552            android:key="inactive_apps"
553            android:title="@string/inactive_apps_title"
554            android:fragment="com.android.settings.fuelgauge.InactiveApps" />
555
556        <SwitchPreference
557            android:key="force_allow_on_external"
558            android:title="@string/force_allow_on_external"
559            android:summary="@string/force_allow_on_external_summary" />
560
561        <SwitchPreference
562            android:key="force_resizable_activities"
563            android:title="@string/force_resizable_activities"
564            android:summary="@string/force_resizable_activities_summary" />
565
566        <SwitchPreference
567            android:key="enable_freeform_support"
568            android:title="@string/enable_freeform_support"
569            android:summary="@string/enable_freeform_support_summary" />
570
571        <SwitchPreference
572            android:key="force_desktop_mode_on_external_displays"
573            android:title="@string/force_desktop_mode"
574            android:summary="@string/force_desktop_mode_summary" />
575
576        <Preference
577            android:key="reset_shortcut_manager_throttling"
578            android:title="@string/reset_shortcut_manager_throttling" />
579
580        <SwitchPreference
581            android:key="sms_access_restriction_enabled"
582            android:title="@string/sms_access_restriction_enabled"
583            android:summary="@string/sms_access_restriction_enabled_summary" />
584
585        <SwitchPreference
586            android:key="notification_bubbles"
587            android:title="@string/notification_bubbles_title"
588            android:summary="@string/notification_bubbles_developer_setting_summary"/>
589
590    </PreferenceCategory>
591
592    <com.android.settings.development.autofill.AutofillPreferenceCategory
593        android:key="debug_autofill_category"
594        android:title="@string/debug_autofill_category"
595        android:order="1100"> <!-- Incremented by 100 from last order (i.e. 1000) -->
596
597        <ListPreference
598            android:key="autofill_logging_level"
599            android:title="@string/autofill_logging_level_title"
600            android:entries="@array/autofill_logging_level_entries"
601            android:entryValues="@array/autofill_logging_level_values" />
602
603        <com.android.settings.development.autofill.AutofillMaxPartitionsPreference
604            android:key="autofill_max_partitions"
605            android:title="@string/autofill_max_partitions" />
606
607        <com.android.settings.development.autofill.AutofillVisibleDatasetsPreference
608            android:key="autofill_visible_datasets"
609            android:title="@string/autofill_max_visible_datasets" />
610
611        <Preference
612            android:key="autofill_reset_developer_options"
613            android:title="@string/autofill_reset_developer_options" />
614
615    </com.android.settings.development.autofill.AutofillPreferenceCategory>
616</PreferenceScreen>
617