From 7847b69d594d8d74022c775e2d17efae4e625634 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 26 Feb 2025 09:09:27 +0200 Subject: [PATCH] dubai: Cleanup overlays * Correct pixel_pitch * Make AndroidManifest consistent * Fix spacing and newlines * Correct comments * Sort as per AOSP order * Correct array types * Remove overlays that no longer exist: config_scrollBarrierVibePattern physical_volume_up_button_center_screen_location_y physical_volume_down_button_center_screen_location_y system_icons_keyguard_padding_end * Remove overlays that are the same as defaults: config_deviceHardwareKeys config_deviceHardwareWakeKeys config_udfpsColor * Remove overlays that shouldn't be overlaid anymore: quick_qs_offset_height * Move config_showUsbPortAlarm to common Change-Id: I504039ea2646b12a5af6f3c040236459ee7ac772 --- resource-overlay/device/Frameworks/Android.bp | 2 +- .../device/Frameworks/AndroidManifest.xml | 6 +- .../device/Frameworks/res/values/config.xml | 276 +++++++++--------- .../device/Frameworks/res/values/dimens.xml | 22 +- .../Frameworks/res/xml/power_profile.xml | 2 +- .../LineageSystemUI/res/values/config.xml | 43 --- .../res/values/lineage_config.xml | 12 + resource-overlay/device/Settings/Android.bp | 2 +- .../device/Settings/AndroidManifest.xml | 7 +- .../device/Settings/res/values/config.xml | 6 +- .../SettingsProvider/AndroidManifest.xml | 6 +- .../res/values/{config.xml => defaults.xml} | 2 +- resource-overlay/device/SystemUI/Android.bp | 2 +- .../device/SystemUI/AndroidManifest.xml | 6 +- .../device/SystemUI/res/values/config.xml | 24 +- .../device/SystemUI/res/values/dimens.xml | 24 +- .../device/SystemUI/res/values/integers.xml | 8 - .../device/Wifi/res/values/config.xml | 6 +- 18 files changed, 204 insertions(+), 252 deletions(-) delete mode 100644 resource-overlay/device/LineageSystemUI/res/values/config.xml create mode 100644 resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml rename resource-overlay/device/SettingsProvider/res/values/{config.xml => defaults.xml} (79%) delete mode 100644 resource-overlay/device/SystemUI/res/values/integers.xml diff --git a/resource-overlay/device/Frameworks/Android.bp b/resource-overlay/device/Frameworks/Android.bp index fc051ed..5020c59 100644 --- a/resource-overlay/device/Frameworks/Android.bp +++ b/resource-overlay/device/Frameworks/Android.bp @@ -5,5 +5,5 @@ runtime_resource_overlay { name: "FrameworksResDubai", - vendor: true + vendor: true, } diff --git a/resource-overlay/device/Frameworks/AndroidManifest.xml b/resource-overlay/device/Frameworks/AndroidManifest.xml index 57b8091..fce8651 100644 --- a/resource-overlay/device/Frameworks/AndroidManifest.xml +++ b/resource-overlay/device/Frameworks/AndroidManifest.xml @@ -5,5 +5,9 @@ --> - + + diff --git a/resource-overlay/device/Frameworks/res/values/config.xml b/resource-overlay/device/Frameworks/res/values/config.xml index cddf01c..4392fb0 100644 --- a/resource-overlay/device/Frameworks/res/values/config.xml +++ b/resource-overlay/device/Frameworks/res/values/config.xml @@ -1,10 +1,53 @@ - + true + + + + 0 + 67 + + + + + 0 + 67 + + + + + 0 + 0 + 94 + + + + 2 + + + 500 + 500 + + + 2 + + - + 2 4 5 @@ -35,11 +78,10 @@ 1250 3500 5500 - + - + 2 7 10 @@ -62,13 +104,13 @@ 192 252 500 - + - + 0 1 4 @@ -81,7 +123,7 @@ 98 129 255 - + - + 0 2 7 @@ -103,15 +145,82 @@ 192 252 500 - + - - 500 - 500 + + motorolaedge30 + + + http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf + + + com.android.systemui/com.android.systemui.doze.DozeService + + + true + + + org.lineageos.sensor.double_tap + + + org.lineageos.sensor.udfps + + + true + + + false + + + true + + + true true - - true - - - true - - + 0:2:15 - - - - true + - + 540 2164 91 - - 2 - - - 2 - - - - 0 - 67 - - - - - 0 - 67 - - - - - 0 - 0 - 94 - - - - - 0 - 15 - 30 - 15 - - - - com.android.systemui/com.android.systemui.doze.DozeService - - - true - - - true - - - false - - - motorolaedge30 - - http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf - - - org.lineageos.sensor.double_tap - - - org.lineageos.sensor.udfps - true diff --git a/resource-overlay/device/Frameworks/res/values/dimens.xml b/resource-overlay/device/Frameworks/res/values/dimens.xml index 00038c9..1da54dd 100644 --- a/resource-overlay/device/Frameworks/res/values/dimens.xml +++ b/resource-overlay/device/Frameworks/res/values/dimens.xml @@ -1,21 +1,16 @@ - - 95.0px - - - 14dp - 28dp - + 130px 28dp - - @dimen/status_bar_height_default + + 95.0px + + + 14dp diff --git a/resource-overlay/device/Frameworks/res/xml/power_profile.xml b/resource-overlay/device/Frameworks/res/xml/power_profile.xml index 765f43c..80e3f24 100644 --- a/resource-overlay/device/Frameworks/res/xml/power_profile.xml +++ b/resource-overlay/device/Frameworks/res/xml/power_profile.xml @@ -114,4 +114,4 @@ 17 - \ No newline at end of file + diff --git a/resource-overlay/device/LineageSystemUI/res/values/config.xml b/resource-overlay/device/LineageSystemUI/res/values/config.xml deleted file mode 100644 index 75ce35b..0000000 --- a/resource-overlay/device/LineageSystemUI/res/values/config.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - 64 - - - 64 - - - #ffffff - - - true - - - true - diff --git a/resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml b/resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml new file mode 100644 index 0000000..d169418 --- /dev/null +++ b/resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml @@ -0,0 +1,12 @@ + + + + + true + + + true + diff --git a/resource-overlay/device/Settings/Android.bp b/resource-overlay/device/Settings/Android.bp index 7c223b8..aad1e6d 100644 --- a/resource-overlay/device/Settings/Android.bp +++ b/resource-overlay/device/Settings/Android.bp @@ -5,5 +5,5 @@ runtime_resource_overlay { name: "SettingsResDubai", - vendor: true + vendor: true, } diff --git a/resource-overlay/device/Settings/AndroidManifest.xml b/resource-overlay/device/Settings/AndroidManifest.xml index bd80a38..1eeface 100644 --- a/resource-overlay/device/Settings/AndroidManifest.xml +++ b/resource-overlay/device/Settings/AndroidManifest.xml @@ -4,7 +4,10 @@ SPDX-License-Identifier: Apache-2.0 --> - + + diff --git a/resource-overlay/device/Settings/res/values/config.xml b/resource-overlay/device/Settings/res/values/config.xml index 8e9ad40..662c6bc 100644 --- a/resource-overlay/device/Settings/res/values/config.xml +++ b/resource-overlay/device/Settings/res/values/config.xml @@ -1,14 +1,12 @@ - - + true 65 - diff --git a/resource-overlay/device/SettingsProvider/AndroidManifest.xml b/resource-overlay/device/SettingsProvider/AndroidManifest.xml index afd18cd..150ecdd 100644 --- a/resource-overlay/device/SettingsProvider/AndroidManifest.xml +++ b/resource-overlay/device/SettingsProvider/AndroidManifest.xml @@ -4,7 +4,9 @@ SPDX-License-Identifier: Apache-2.0 --> - + + diff --git a/resource-overlay/device/SettingsProvider/res/values/config.xml b/resource-overlay/device/SettingsProvider/res/values/defaults.xml similarity index 79% rename from resource-overlay/device/SettingsProvider/res/values/config.xml rename to resource-overlay/device/SettingsProvider/res/values/defaults.xml index b37116d..c551f65 100644 --- a/resource-overlay/device/SettingsProvider/res/values/config.xml +++ b/resource-overlay/device/SettingsProvider/res/values/defaults.xml @@ -1,6 +1,6 @@ diff --git a/resource-overlay/device/SystemUI/Android.bp b/resource-overlay/device/SystemUI/Android.bp index 1a84f35..c6163f0 100644 --- a/resource-overlay/device/SystemUI/Android.bp +++ b/resource-overlay/device/SystemUI/Android.bp @@ -5,5 +5,5 @@ runtime_resource_overlay { name: "SystemUIResDubai", - vendor: true + vendor: true, } diff --git a/resource-overlay/device/SystemUI/AndroidManifest.xml b/resource-overlay/device/SystemUI/AndroidManifest.xml index 9e97151..9ab5c1e 100644 --- a/resource-overlay/device/SystemUI/AndroidManifest.xml +++ b/resource-overlay/device/SystemUI/AndroidManifest.xml @@ -4,7 +4,9 @@ SPDX-License-Identifier: Apache-2.0 --> - + + diff --git a/resource-overlay/device/SystemUI/res/values/config.xml b/resource-overlay/device/SystemUI/res/values/config.xml index 094d01a..b70aeed 100644 --- a/resource-overlay/device/SystemUI/res/values/config.xml +++ b/resource-overlay/device/SystemUI/res/values/config.xml @@ -1,34 +1,28 @@ - - + - + M 498.5,65 a 41.5,41.5 0 1 0 83,0 a 41.5,41.5 0 1 0 -83,0 Z - - 1 + + 1 true - - - 48.3 - diff --git a/resource-overlay/device/SystemUI/res/values/dimens.xml b/resource-overlay/device/SystemUI/res/values/dimens.xml index ff28c20..6f81360 100644 --- a/resource-overlay/device/SystemUI/res/values/dimens.xml +++ b/resource-overlay/device/SystemUI/res/values/dimens.xml @@ -1,16 +1,16 @@ 20.0dip - + 7.0dip - + 20.0px @@ -19,19 +19,17 @@ 4dp - - 10.0px - 15dp - - 1000.0px - - - 600.0px - 760.0px - 14dp + + + 1000.0px + + + 62.73 diff --git a/resource-overlay/device/SystemUI/res/values/integers.xml b/resource-overlay/device/SystemUI/res/values/integers.xml deleted file mode 100644 index e4ae05c..0000000 --- a/resource-overlay/device/SystemUI/res/values/integers.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - 1 - diff --git a/resource-overlay/device/Wifi/res/values/config.xml b/resource-overlay/device/Wifi/res/values/config.xml index cadafbe..8be82fc 100644 --- a/resource-overlay/device/Wifi/res/values/config.xml +++ b/resource-overlay/device/Wifi/res/values/config.xml @@ -1,11 +1,9 @@ - - + motorola edge 30 -