ginkgo: Import overlays

From https://github.com/LineageOS/android_device_xiaomi_ginkgo/tree/lineage-20/

Change-Id: I5253ac2521d897ebf4fdfb0d1c625338a36d8ee3
Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
This commit is contained in:
Skyblueborb
2025-03-27 17:15:42 +01:00
parent 8cac0d28c5
commit 9a0aab7f01
7 changed files with 285 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
$(DEVICE_PATH)/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(DEVICE_PATH)/overlay \
$(DEVICE_PATH)/overlay-lineage
# Shipping API level
PRODUCT_SHIPPING_API_LEVEL := 28

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 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>
<!-- Whether device has screen with higher aspect ratio -->
<bool name="config_haveHigherAspectRatioScreen">true</bool>
</resources>

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2009, The Android Open Source 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.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N + 1 control points as follows:
(1-based arrays)
Point 1: (0, value[1]): lux <= 0
Point 2: (level[1], value[2]): 0 < lux <= level[1]
Point 3: (level[2], value[3]): level[2] < lux <= level[3]
...
Point N+1: (level[N], value[N+1]): level[N] < lux
The control points must be strictly increasing. Each control point
corresponds to an entry in the brightness backlight values arrays.
For example, if LUX == level[1] (first element of the levels array)
then the brightness will be determined by value[2] (second element
of the brightness values array).
Spline interpolation is used to determine the auto-brightness
backlight values for LUX levels between these control points.
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>1</item> <!-- pitch black -->
<item>5</item> <!-- dark indoor -->
<item>10</item> <!-- twilight -->
<item>50</item> <!-- dim indoor -->
<item>100</item> <!-- home -->
<item>300</item> <!-- office -->
<item>500</item> <!-- sunrise -->
<item>1000</item> <!-- overcast -->
<item>3000</item> <!-- indirect sun -->
<item>10000</item> <!-- daylight -->
</integer-array>
<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
The brightness values must be between 0 and 255 and be non-decreasing.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>16</item>
<item>20</item>
<item>24</item>
<item>31</item>
<item>48</item>
<item>74</item>
<item>107</item>
<item>152</item>
<item>194</item>
<item>254</item>
<item>255</item>
</integer-array>
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">10</integer>
<!-- Default screen brightness setting.
Must be in the range specified by minimum and maximum. -->
<integer name="config_screenBrightnessSettingDefault">128</integer>
<!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. -->
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by
{@link android.util.PathParser}.
The path is assumed to be specified in display coordinates with pixel units and in
the display's native orientation, with the origin of the coordinate system at the
center top of the display.
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
appended after the path string to interpret coordinates in dp instead of px units.
Note that a physical cutout should be configured in pixels for the best results.
Example for a 10px x 10px square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
Example for a 10dp x 10dp square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">
M -80,0 L -80,80 L 80,80 L 80,0 Z
</string>
<!-- Height of the status bar -->
<dimen name="status_bar_height_portrait">80px</dimen>
<dimen name="status_bar_height_landscape">24dp</dimen>
<dimen name="rounded_corner_radius_top">106.0px</dimen>
<dimen name="rounded_corner_radius_bottom">108.0px</dimen>
<!-- List supported color modes. -->
<integer-array name="config_availableColorModes">
<item>0</item> <!-- COLOR_MODE_NATURAL -->
<item>1</item> <!-- COLOR_MODE_BOOSTED -->
<item>2</item> <!-- COLOR_MODE_SATURATED -->
</integer-array>
</resources>

View File

@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="battery.capacity">4000</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<item name="cpu.suspend">4.65</item>
<item name="cpu.idle">0.52</item>
<item name="cpu.active">1</item>
<item name="cpu.cluster_power.cluster0">12.10</item>
<item name="cpu.cluster_power.cluster1">16.43</item>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>614400</value>
<value>864000</value>
<value>1017600</value>
<value>1305600</value>
<value>1420800</value>
<value>1612800</value>
<value>1804800</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>300000</value>
<value>652800</value>
<value>902400</value>
<value>1056000</value>
<value>1401600</value>
<value>1536000</value>
<value>1804800</value>
<value>2016000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>4.2</value>
<value>8.28</value>
<value>11.99</value>
<value>15.06</value>
<value>23.81</value>
<value>27.99</value>
<value>38.22</value>
<value>51.99</value>
</array>
<array name="cpu.core_power.cluster1">
<value>11.06</value>
<value>23.81</value>
<value>35.09</value>
<value>44.08</value>
<value>73.08</value>
<value>87.18</value>
<value>134.31</value>
<value>192.47</value>
</array>
<item name="screen.on">82.45</item>
<item name="screen.full">242.93</item>
<item name="camera.flashlight">245.859</item>
<item name="camera.avg">500</item>
<item name="video">83.29</item>
<item name="audio">37.41</item>
<item name="wifi.controller.idle">2</item>
<item name="wifi.controller.rx">220</item>
<item name="wifi.controller.tx">150</item>
<item name="wifi.controller.voltage">3700</item>
<item name="modem.controller.sleep">1</item>
<item name="modem.controller.idle">1</item>
<item name="modem.controller.rx">100</item>
<array name="modem.controller.tx">
<value>90</value>
<value>100</value>
<value>110</value>
<value>120</value>
<value>130</value>
</array>
<item name="modem.controller.voltage">3700</item>
<array name="gps.signalqualitybased">
<value>100</value>
<value>110</value>
</array>
<item name="gps.voltage">3700</item>
<item name="bluetooth.controller.idle">1</item>
<item name="bluetooth.controller.rx">50</item>
<item name="bluetooth.controller.tx">50</item>
<item name="bluetooth.controller.voltage">3300</item>
<item name="radio.active">100</item>
<item name="radio.scanning">95</item>
<array name="radio.on">
<value>7</value>
<value>5</value>
</array>
</device>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, The Android Open Source 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>
<dimen name="rounded_corner_radius">4dp</dimen>
<dimen name="rounded_corner_content_padding">10dp</dimen>
</resources>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2019, The Android Open Source 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>
<!-- Padding for the lock icon on the keyguard. In pixels - should not scale with display size. -->
<dimen name="lock_icon_padding">30px</dimen>
<!-- Microns/ums (1000 um = 1mm) per pixel for the given device. If unspecified, UI that
relies on this value will not be sized correctly. -->
<item name="pixel_pitch" format="float" type="dimen">62.09</item>
</resources>

View File

@@ -0,0 +1,11 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!-- This is a place for vendor-specific config values. The format and
filtering rules are the same as those in carrier_config*.xml files. This
file is read after any specific config file from the assets folder, so it
must use explicit filters for MCC ad MNC if that is desired. -->
<carrier_config_list>
<carrier_config>
<boolean name="show_4g_for_lte_data_icon_bool" value="true"/>
</carrier_config>
</carrier_config_list>