Includes: - Per-app refresh rate config - Extreme refresh rate (Force all apps to run in maximum refresh rate) - Temp refresh rate allowed (Used in MEMC) - Refresh rate QS tile Change-Id: I30024eb8ce63f00a6f2fa1ea0230b004ff93ac74 Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Create BasePerAppConfigFragment * Allow more preference types instead of only ListPreference. Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Create PerAppSwitchConfigFragment Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Add top info for per-app settings Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Don't show system apps for sensor block fragment Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Pass uid in per-app config fragment Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Allow specific allowed system app list for per-app fragment * We need to allow dialer/messages/contact for fullscreen display settings. Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Make sure per-app list has no duplicates Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Warn user app reload before switching fullscreen display Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Adapt for Android U QPR2 Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Settings: Use ArrayMap/Set instead of HashMap/Set Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> [joeyhuab: Squashed all changes by same author] Settings: Add null check for PreferenceScreen in BasePerAppConfigFragment Co-authored-by: NurKeinNeid <nurkeinneid@derpfest.org> Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
95 lines
4.3 KiB
XML
95 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
Copyright (C) 2020-2024 The LineageOS Project
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
<resources>
|
||
<!-- Indicates whether device has a front facing fingerprint sensor (not udfps). -->
|
||
<bool name="config_is_front_facing_fps" translatable="false">false</bool>
|
||
|
||
<!-- Indicates whether device has a side mounted fingerprint sensor,
|
||
but a dedicated one, i.e. not embedded in the power button. -->
|
||
<bool name="config_is_side_fps" translatable="false">false</bool>
|
||
|
||
<string-array name="config_ignored_backup_transports" translatable="false">
|
||
<item>com.android.localtransport/.LocalTransport</item>
|
||
</string-array>
|
||
|
||
<!-- Show battery information -->
|
||
<bool name="config_show_battery_info" translatable="false">true</bool>
|
||
|
||
<!-- Show battery cycle count -->
|
||
<bool name="config_show_battery_cycle_count" translatable="false">false</bool>
|
||
|
||
<!-- Show battery Design Capacity -->
|
||
<bool name="config_show_battery_design_capacity">true</bool>
|
||
|
||
<!-- Show battery Maximum Capacity -->
|
||
<bool name="config_show_battery_maximum_capacity">true</bool>
|
||
|
||
<!-- Whether to show peak refresh rate in display settings -->
|
||
<bool name="config_show_peak_refresh_rate_switch">false</bool>
|
||
|
||
<!-- Whether to show min refresh rate in display settings -->
|
||
<bool name="config_show_min_refresh_rate_switch">false</bool>
|
||
|
||
<!-- Show Now Playing -->
|
||
<bool name="config_show_now_playing">false</bool>
|
||
|
||
<!-- ComponentName to launch a vendor-specific enrollment activity if available -->
|
||
<string name="config_face_enroll">com.android.settings/com.google.android.settings.biometrics.face.FaceEnrollActivityDirector</string>
|
||
|
||
<!-- Whether or not to use traffic light enroll -->
|
||
<bool name="config_face_enroll_use_traffic_light">false</bool>
|
||
|
||
<!-- Traffic light package to use -->
|
||
<string name="config_face_enroll_traffic_light_package"></string>
|
||
|
||
<!-- Face enroll finish text -->
|
||
<string name="security_settings_face_enroll_finish_description_with_bp">Now you can use your face to unlock your phone or verify it’s you, like when you sign in to apps or approve a purchase</string>
|
||
|
||
<!-- Whether to show vendor security patch level -->
|
||
<bool name="config_show_vendor_patch_level" translatable="false">true</bool>
|
||
|
||
<!-- Battery Info: mAh divider
|
||
Some devices with prebuilt kernels report battery capacity in different units.
|
||
This value is used to convert from microampere-hours (uAh) to milliampere-hours (mAh).
|
||
Default: 1000 (converts uAh to mAh)
|
||
Example: If device reports 4000uAh instead of 4000mAh, set this to 1 -->
|
||
<integer name="config_battery_divider" translatable="false">1000</integer>
|
||
|
||
<!-- Whether to show double tap ambient settings -->
|
||
<bool name="config_supports_double_tap_ambient" translatable="false">false</bool>
|
||
|
||
<!-- Whether to show volume steps settings -->
|
||
<bool name="config_supports_volume_steps" translatable="false">true</bool>
|
||
|
||
<!-- Device specific doze package -->
|
||
<string name="config_customDozePackage" translatable="false"></string>
|
||
|
||
<!-- List of system apps that are allowed to configure per-app settings -->
|
||
<string-array name="config_perAppConfAllowedSystemApps" translatable="false">
|
||
<item>com.android.chrome</item>
|
||
<item>com.android.vending</item>
|
||
<item>com.oneplus.gallery</item>
|
||
<item>com.google.android.apps.docs</item>
|
||
<item>com.google.android.apps.nbu.files</item>
|
||
<item>com.google.android.apps.photos</item>
|
||
<item>com.google.android.apps.recorder</item>
|
||
<item>com.google.android.calculator</item>
|
||
<item>com.google.android.calendar</item>
|
||
<item>com.google.android.gm</item>
|
||
</string-array>
|
||
</resources>
|