diff --git a/device.mk b/device.mk index 570144cb43dd4b4ba6b4fd126dddb376c4b304ef..17ad769a2a600a1641f0de245188d431b0da9828 100644 --- a/device.mk +++ b/device.mk @@ -320,13 +320,12 @@ PRODUCT_PACKAGES += \ libstagefrighthw # Overlay -DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage - PRODUCT_PACKAGES += \ CarrierConfigResCommon \ eCameraTarget \ FrameworksResCommon \ FrameworksResTarget \ + SettingsResCommon \ SystemUIResCommon \ SystemUIResTarget \ TelephonyResCommon \ diff --git a/overlay-lineage/packages/apps/Settings/res/values/config.xml b/overlay-lineage/packages/apps/Settings/res/values/config.xml deleted file mode 100644 index 7050a9828f2e91d66f6537c492c1784bb7612804..0000000000000000000000000000000000000000 --- a/overlay-lineage/packages/apps/Settings/res/values/config.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - true - diff --git a/overlay/FrameworksResCommon/res/values/config.xml b/overlay/FrameworksResCommon/res/values/config.xml index 3e117ff55a195c91cc216f0355ab2cbb8f16c15d..d37afc88db8208a744559904d57e85816dfb0c48 100644 --- a/overlay/FrameworksResCommon/res/values/config.xml +++ b/overlay/FrameworksResCommon/res/values/config.xml @@ -94,11 +94,25 @@ the restoring is handled by modem if it is true --> true - - 60 + + 240 + + + 0 4 diff --git a/overlay/SettingsResCommon/Android.bp b/overlay/SettingsResCommon/Android.bp new file mode 100644 index 0000000000000000000000000000000000000000..e007bd62825d18d2fb080df26f0427907227ff27 --- /dev/null +++ b/overlay/SettingsResCommon/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2022 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsResCommon", + vendor: true, +} diff --git a/overlay/SettingsResCommon/AndroidManifest.xml b/overlay/SettingsResCommon/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..c36f6855924c5dc8384bd5f06d903037563e946a --- /dev/null +++ b/overlay/SettingsResCommon/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/overlay/SettingsResCommon/res/values/config.xml b/overlay/SettingsResCommon/res/values/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..bc7b11a80419f09e5fd6acc85fc916031bcfdff1 --- /dev/null +++ b/overlay/SettingsResCommon/res/values/config.xml @@ -0,0 +1,4 @@ + + + true + diff --git a/vendor.prop b/vendor.prop index 8469cd79a44f1cbb0c609b101fde0061f5f38d41..1ebd817ea7b75d8edc991e7372cb19d35bbc485a 100644 --- a/vendor.prop +++ b/vendor.prop @@ -134,6 +134,7 @@ ro.surface_flinger.max_frame_buffer_acquired_buffers=3 ro.surface_flinger.max_virtual_display_dimension=4096 ro.surface_flinger.protected_contents=true ro.surface_flinger.use_color_management=true +ro.surface_flinger.use_content_detection_for_refresh_rate=true ro.surface_flinger.wcg_composition_dataspace=143261696 # Incremental FS