unicorn: overlay: Allow switching between 60Hz and 120Hz
Change-Id: I4f328dbdce50e709f30b1f098e71248d72819268
This commit is contained in:
@@ -14,6 +14,7 @@ $(call inherit-product, vendor/xiaomi/unicorn/unicorn-vendor.mk)
|
||||
PRODUCT_PACKAGES += \
|
||||
FrameworksResUnicorn \
|
||||
SettingsProviderResUnicorn \
|
||||
SettingsResUnicorn \
|
||||
SystemUIResUnicorn \
|
||||
WifiResUnicorn
|
||||
|
||||
|
||||
@@ -29,4 +29,20 @@
|
||||
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
||||
-->
|
||||
<string name="config_mainBuiltInDisplayCutout" translatable="false">M 0,0 H -42 V 108 H 42 V 0 H 0 Z</string>
|
||||
|
||||
<!-- The default refresh rate for a given device. Change this value to set a higher default
|
||||
refresh rate. If the hardware composer on the device supports display modes with a higher
|
||||
refresh rate than the default value specified here, the framework may use those higher
|
||||
refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
|
||||
setFrameRate().
|
||||
If a non-zero value is set for config_defaultPeakRefreshRate, then
|
||||
config_defaultRefreshRate may be set to 0, in which case the value set for
|
||||
config_defaultPeakRefreshRate will act as the default frame rate. -->
|
||||
<integer name="config_defaultRefreshRate">0</integer>
|
||||
|
||||
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
|
||||
the framework from using higher refresh rates, even if display modes with higher refresh
|
||||
rates are available from hardware composer. Only has an effect if the value is
|
||||
non-zero. -->
|
||||
<integer name="config_defaultPeakRefreshRate">120</integer>
|
||||
</resources>
|
||||
|
||||
10
overlay/Settings/Android.bp
Normal file
10
overlay/Settings/Android.bp
Normal file
@@ -0,0 +1,10 @@
|
||||
//
|
||||
// Copyright (C) 2022 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "SettingsResUnicorn",
|
||||
device_specific: true,
|
||||
}
|
||||
10
overlay/Settings/AndroidManifest.xml
Normal file
10
overlay/Settings/AndroidManifest.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<!--
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.settings.overlay.unicorn">
|
||||
<overlay android:targetPackage="com.android.settings"
|
||||
android:isStatic="true"
|
||||
android:priority="700"/>
|
||||
</manifest>
|
||||
9
overlay/Settings/res/values/config.xml
Normal file
9
overlay/Settings/res/values/config.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2023 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Whether to show Smooth Display feature in Settings Options -->
|
||||
<bool name="config_show_smooth_display">true</bool>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user