Add overlays for POCO F4 / Redmi K40s (munch)
This commit is contained in:
parent
a369405f67
commit
74a18ae1d2
8
Xiaomi/PocoF4-SystemUI/Android.mk
Executable file
8
Xiaomi/PocoF4-SystemUI/Android.mk
Executable file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-pocof4-systemui
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Xiaomi/PocoF4-SystemUI/AndroidManifest.xml
Executable file
10
Xiaomi/PocoF4-SystemUI/AndroidManifest.xml
Executable file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.xiaomi.pocof4.systemui"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="com.android.systemui"
|
||||
android:requiredSystemPropertyName="ro.product.vendor.device"
|
||||
android:requiredSystemPropertyValue="munch"
|
||||
android:priority="556"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
22
Xiaomi/PocoF4-SystemUI/res/drawable/rounded.xml
Executable file
22
Xiaomi/PocoF4-SystemUI/res/drawable/rounded.xml
Executable file
|
@ -0,0 +1,22 @@
|
|||
<!-- Copyright (C) 2021 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="8dp"
|
||||
android:height="8dp"
|
||||
android:viewportWidth="21"
|
||||
android:viewportHeight="21">
|
||||
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M0,0L25,0C22.74,0 21.99,0 21.31,0C19.94,0.01 18.83,0.04 17.73,0.11C16.91,0.17 16.09,0.25 15.3,0.36C14.5,0.48 13.72,0.62 12.95,0.81C11.42,1.19 9.97,1.72 8.65,2.43C7.32,3.14 6.12,4.02 5.08,5.07C4.04,6.11 3.15,7.31 2.44,8.64C1.73,9.97 1.19,11.42 0.82,12.94C0.63,13.7 0.48,14.49 0.37,15.29C0.25,16.09 0.17,16.9 0.12,17.72C0.05,18.82 0.02,19.93 0.01,21.55C0.01,22.36 0.01,23.3 0.01,25.56L0,0Z"/>
|
||||
</vector>
|
56
Xiaomi/PocoF4-SystemUI/res/values/config.xml
Executable file
56
Xiaomi/PocoF4-SystemUI/res/values/config.xml
Executable file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2017, 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. -->
|
||||
<resources>
|
||||
<!-- A path similar to frameworks/base/core/res/res/values/config.xml
|
||||
config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a display
|
||||
cutout. If present as well as config_enableDisplayCutoutProtection is set to true, then
|
||||
SystemUI will draw this "protection path" instead of the display cutout path that is normally
|
||||
used for anti-aliasing.
|
||||
This path will only be drawn when the front-facing camera turns on, otherwise the main
|
||||
DisplayCutout path will be rendered
|
||||
-->
|
||||
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
|
||||
M 500,52
|
||||
a 35,35 0 1 0 82,0 35,35 0 1 0 -82,0
|
||||
Z
|
||||
</string>
|
||||
|
||||
<!-- Flag to turn on the rendering of the above path or not -->
|
||||
<bool name="config_enableDisplayCutoutProtection">true</bool>
|
||||
|
||||
<!-- Doze: check proximity sensor before pulsing? -->
|
||||
<bool name="doze_proximity_check_before_pulse">false</bool>
|
||||
|
||||
<!-- The battery current divider, some kernel report current value in mA other in µA.
|
||||
Leave 1 if you have mA, put 1000 if you have µA-->
|
||||
<integer name="config_battCurrentDivider" translatable="false">1000</integer>
|
||||
|
||||
<!-- If not zero, limits the internal screen recorder's framerate to the set value. -->
|
||||
<integer name="config_screenRecorderMaxFramerate">120</integer>
|
||||
|
||||
<!-- Default rounded corner curve (a Bezier). Must match (the curved path in) rounded.xml.
|
||||
Note that while rounded.xml includes the entire path (including the horizontal and vertical
|
||||
corner edges), this pulls out just the curve.
|
||||
-->
|
||||
<string name="config_rounded_mask" translatable="false">M22,0C19.94,0.01 18.83,0.04 17.73,0.11C16.91,0.17 16.09,0.25 15.3,0.36C14.5,0.48 13.72,0.62 12.95,0.81C11.42,1.19 9.97,1.72 8.65,2.43C7.32,3.14 6.12,4.02 5.08,5.07C4.04,6.11 3.15,7.31 2.44,8.64C1.73,9.97 1.19,11.42 0.82,12.94C0.63,13.7 0.48,14.49 0.37,15.29C0.25,16.09 0.17,16.9 0.12,17.72C0.05,18.82 0.02,19.93 0.01,21.55</string>
|
||||
|
||||
</resources>
|
38
Xiaomi/PocoF4-SystemUI/res/values/dimens.xml
Executable file
38
Xiaomi/PocoF4-SystemUI/res/values/dimens.xml
Executable file
|
@ -0,0 +1,38 @@
|
|||
<?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>
|
||||
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
|
||||
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
|
||||
For devices with sensors on the back of the device, this corresponds to the location on the
|
||||
screen directly in front of the sensor.
|
||||
By default, this is set to @null to use the horizontal center of the screen. -->
|
||||
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
|
||||
|
||||
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
|
||||
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
|
||||
For devices with sensors on the back of the device, this corresponds to the location on the
|
||||
screen directly in front of the sensor. -->
|
||||
<dimen name="physical_fingerprint_sensor_center_screen_location_y">960px</dimen>
|
||||
|
||||
<!-- Location on the screen of the center of the physical power button. This is a reasonable
|
||||
default that should be overridden by device-specific overlays. -->
|
||||
<dimen name="physical_power_button_center_screen_location_y">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>
|
||||
|
||||
<!-- for 20dp of padding at 3.5px/dp at default density -->
|
||||
<dimen name="rounded_corner_content_padding">55px</dimen>
|
||||
</resources>
|
8
Xiaomi/PocoF4/Android.mk
Normal file
8
Xiaomi/PocoF4/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-pocof4
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Xiaomi/PocoF4/AndroidManifest.xml
Normal file
10
Xiaomi/PocoF4/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.xiaomi.pocof4"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
android:requiredSystemPropertyName="ro.product.vendor.device"
|
||||
android:requiredSystemPropertyValue="munch"
|
||||
android:priority="500"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
7
Xiaomi/PocoF4/res/values-land/notch.xml
Normal file
7
Xiaomi/PocoF4/res/values-land/notch.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height">28dp</dimen>
|
||||
<dimen name="status_bar_height_default">28dp</dimen>
|
||||
<dimen name="status_bar_height_portrait">94px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
</resources>
|
61
Xiaomi/PocoF4/res/values/arrays.xml
Normal file
61
Xiaomi/PocoF4/res/values/arrays.xml
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer-array name="config_autoRotationTiltTolerance">
|
||||
<item>-25</item>
|
||||
<item>70</item>
|
||||
<item>-25</item>
|
||||
<item>65</item>
|
||||
<item>-25</item>
|
||||
<item>60</item>
|
||||
<item>-25</item>
|
||||
<item>65</item>
|
||||
</integer-array>
|
||||
<array name="config_ambientThresholdLevels" />
|
||||
<integer-array name="config_ambientBrighteningThresholds">
|
||||
<item>100</item>
|
||||
</integer-array>
|
||||
<integer-array name="config_ambientDarkeningThresholds">
|
||||
<item>200</item>
|
||||
</integer-array>
|
||||
<array name="config_autoBrightnessDisplayValuesNits" />
|
||||
<array name="config_autoBrightnessLcdBacklightValues" />
|
||||
<array name="config_autoBrightnessLevels" />
|
||||
<string-array name="config_biometric_sensors">
|
||||
<item>0:2:15</item>
|
||||
</string-array>
|
||||
<integer-array name="config_screenBrighteningThresholds">
|
||||
<item>100</item>
|
||||
</integer-array>
|
||||
<integer-array name="config_screenDarkeningThresholds">
|
||||
<item>200</item>
|
||||
</integer-array>
|
||||
<integer-array name="low_lux_level">
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>4</item>
|
||||
<item>6</item>
|
||||
<item>8</item>
|
||||
<item>10</item>
|
||||
<item>15</item>
|
||||
<item>20</item>
|
||||
</integer-array>
|
||||
<string-array name="networkAttributes">
|
||||
<item>wifi,1,1,1,-1,true</item>
|
||||
<item>mobile,0,0,0,-1,true</item>
|
||||
<item>mobile_mms,2,0,4,300000,true</item>
|
||||
<item>mobile_supl,3,0,2,300000,true</item>
|
||||
<item>mobile_dun,4,0,2,300000,true</item>
|
||||
<item>mobile_hipri,5,0,3,300000,true</item>
|
||||
<item>mobile_fota,10,0,2,300000,true</item>
|
||||
<item>mobile_ims,11,0,2,300000,true</item>
|
||||
<item>mobile_cbs,12,0,2,300000,true</item>
|
||||
<item>bluetooth,7,7,2,-1,true</item>
|
||||
<item>ethernet,9,9,4,-1,true</item>
|
||||
</string-array>
|
||||
<string-array name="radioAttributes">
|
||||
<item>1,1</item>
|
||||
<item>0,1</item>
|
||||
<item>7,1</item>
|
||||
<item>9,1</item>
|
||||
</string-array>
|
||||
</resources>
|
7
Xiaomi/PocoF4/res/values/bools.xml
Normal file
7
Xiaomi/PocoF4/res/values/bools.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
||||
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||
<bool name="config_showNavigationBar">false</bool>
|
||||
<bool name="config_useDevInputEventForAudioJack">false</bool>
|
||||
</resources>
|
67
Xiaomi/PocoF4/res/values/config.xml
Normal file
67
Xiaomi/PocoF4/res/values/config.xml
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="config_defaultRefreshRate">1</integer>
|
||||
<integer name="config_defaultPeakRefreshRate">120</integer>
|
||||
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
|
||||
<bool name="config_enableBurnInProtection">true</bool>
|
||||
<integer name="config_defaultRefreshRateInZone">120</integer>
|
||||
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
|
||||
<!-- Array of hysteresis constraint values for darkening, represented as tenths of a
|
||||
percent. The length of this array is assumed to be one greater than
|
||||
config_screenThresholdLevels. The darkening threshold is calculated as
|
||||
screenBrightness * (1.0f - CONSTRAINT_VALUE). When the new screen brightness is lower than
|
||||
this threshold, it is applied. See the config_screenThresholdLevels description for how
|
||||
the constraint value is chosen. -->
|
||||
<integer-array name="config_screenBrightnessBacklight">
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>10</item>
|
||||
<item>15</item>
|
||||
<item>30</item>
|
||||
<item>45</item>
|
||||
<item>60</item>
|
||||
<item>75</item>
|
||||
<item>90</item>
|
||||
<item>105</item>
|
||||
<item>120</item>
|
||||
<item>135</item>
|
||||
<item>150</item>
|
||||
<item>165</item>
|
||||
<item>180</item>
|
||||
<item>195</item>
|
||||
<item>210</item>
|
||||
<item>225</item>
|
||||
<item>240</item>
|
||||
<item>255</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- An array of floats describing the screen brightness in nits corresponding to the backlight
|
||||
values in the config_screenBrightnessBacklight array. On OLED displays these values
|
||||
should be measured with an all white image while the display is in the fully on state.
|
||||
Note that this value should *not* reflect the maximum brightness value for any high
|
||||
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
|
||||
This array should be equal in size to config_screenBrightnessBacklight -->
|
||||
<integer-array name="config_screenBrightnessNits">
|
||||
<item>2</item>
|
||||
<item>4</item>
|
||||
<item>22</item>
|
||||
<item>30</item>
|
||||
<item>68</item>
|
||||
<item>95</item>
|
||||
<item>133</item>
|
||||
<item>165</item>
|
||||
<item>192</item>
|
||||
<item>218</item>
|
||||
<item>255</item>
|
||||
<item>290</item>
|
||||
<item>326</item>
|
||||
<item>352</item>
|
||||
<item>384</item>
|
||||
<item>399</item>
|
||||
<item>422</item>
|
||||
<item>432</item>
|
||||
<item>442</item>
|
||||
<item>455</item>
|
||||
</integer-array>
|
||||
|
||||
</resources>
|
5
Xiaomi/PocoF4/res/values/dimens.xml
Normal file
5
Xiaomi/PocoF4/res/values/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="rounded_corner_radius">126px</dimen>
|
||||
<dimen name="rounded_corner_radius_adjustment">22px</dimen>
|
||||
</resources>
|
30
Xiaomi/PocoF4/res/values/notch.xml
Normal file
30
Xiaomi/PocoF4/res/values/notch.xml
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
||||
M -23,52
|
||||
M 23,52
|
||||
A 23,23 0 1,0 -23,52
|
||||
A 23,23 0 1,0 23,52
|
||||
Z
|
||||
</string>
|
||||
|
||||
<!-- Like config_mainBuiltInDisplayCutout, but this path is used to report the
|
||||
one single bounding rect per device edge to the app via
|
||||
{@link DisplayCutout#getBoundingRect}. Note that this path should try to match the visual
|
||||
appearance of the cutout as much as possible, and may be smaller than
|
||||
config_mainBuiltInDisplayCutout
|
||||
-->
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
|
||||
M 0,0
|
||||
H -23
|
||||
V 75
|
||||
H 23
|
||||
V 0
|
||||
H 0
|
||||
Z
|
||||
</string>
|
||||
<dimen name="status_bar_height">28dp</dimen>
|
||||
<dimen name="status_bar_height_default">28dp</dimen>
|
||||
<dimen name="status_bar_height_portrait">94px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
</resources>
|
240
Xiaomi/PocoF4/res/xml/power_profile.xml
Normal file
240
Xiaomi/PocoF4/res/xml/power_profile.xml
Normal file
|
@ -0,0 +1,240 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2018, 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.
|
||||
*/
|
||||
-->
|
||||
<device name="Android">
|
||||
<!-- All values are in mA except as noted -->
|
||||
<item name="battery.capacity">4520</item>
|
||||
|
||||
<!-- Number of cores each CPU cluster contains -->
|
||||
<array name="cpu.clusters.cores">
|
||||
<value>4</value> <!-- Cluster 0 has 4 cores (cpu0, cpu1, cpu2, cpu3) -->
|
||||
<value>3</value> <!-- Cluster 1 has 3 cores (cpu4, cpu5, cpu6) -->
|
||||
<value>1</value> <!-- Cluster 2 has 1 cores (cpu7) -->
|
||||
</array>
|
||||
|
||||
<!-- Power consumption when CPU is suspended -->
|
||||
<item name="cpu.suspend">5.6</item>
|
||||
<!-- Additional power consumption when CPU is in a kernel idle loop -->
|
||||
<item name="cpu.idle">5.4</item>
|
||||
|
||||
<!-- Additional power consumption by CPU excluding cluster and core when
|
||||
running -->
|
||||
<item name="cpu.active">8.4</item>
|
||||
|
||||
<!-- Additional power consumption by CPU cluster0 itself when running
|
||||
excluding cores in it -->
|
||||
<item name="cpu.cluster_power.cluster0">2</item>
|
||||
<!-- Additional power consumption by CPU cluster1 itself when running
|
||||
excluding cores in it -->
|
||||
<item name="cpu.cluster_power.cluster1">2.2</item>
|
||||
<!-- Additional power consumption by CPU cluster2 itself when running
|
||||
excluding cores in it -->
|
||||
<item name="cpu.cluster_power.cluster2">2.6</item>
|
||||
|
||||
<!-- Different CPU speeds as reported in
|
||||
/sys/devices/system/cpu/cpufreq/ploicy0/scaling_available_frequencies -->
|
||||
<array name="cpu.core_speeds.cluster0">
|
||||
<value>691200</value> <!-- 691 MHz CPU speed -->
|
||||
<value>787200</value> <!-- 787 MHz CPU speed -->
|
||||
<value>883200</value> <!-- 883 MHz CPU speed -->
|
||||
<value>979200</value> <!-- 979 MHz CPU speed -->
|
||||
<value>1075200</value> <!-- 1075 MHz CPU speed -->
|
||||
<value>1171200</value> <!-- 1171 MHz CPU speed -->
|
||||
<value>1248000</value> <!-- 1248 MHz CPU speed -->
|
||||
<value>1344000</value> <!-- 1344 MHz CPU speed -->
|
||||
<value>1420800</value> <!-- 1420 MHz CPU speed -->
|
||||
<value>1516800</value> <!-- 1516 MHz CPU speed -->
|
||||
<value>1612800</value> <!-- 1612 MHz CPU speed -->
|
||||
<value>1708800</value> <!-- 1708 MHz CPU speed -->
|
||||
<value>1804800</value> <!-- 1804 MHz CPU speed -->
|
||||
</array>
|
||||
<!-- Different CPU speeds as reported in
|
||||
/sys/devices/system/cpu/cpufreq/ploicy4/scaling_available_frequencies -->
|
||||
<array name="cpu.core_speeds.cluster1">
|
||||
<value>710400</value> <!-- 710 MHz CPU speed -->
|
||||
<value>825600</value> <!-- 825 MHz CPU speed -->
|
||||
<value>940800</value> <!-- 940 MHz CPU speed -->
|
||||
<value>1056000</value> <!-- 1056 MHz CPU speed -->
|
||||
<value>1171200</value> <!-- 1171 MHz CPU speed -->
|
||||
<value>1286400</value> <!-- 1286 MHz CPU speed -->
|
||||
<value>1382400</value> <!-- 1382 MHz CPU speed -->
|
||||
<value>1478400</value> <!-- 1478 MHz CPU speed -->
|
||||
<value>1574400</value> <!-- 1574 MHz CPU speed -->
|
||||
<value>1670400</value> <!-- 1670 MHz CPU speed -->
|
||||
<value>1766400</value> <!-- 1766 MHz CPU speed -->
|
||||
<value>1862400</value> <!-- 1862 MHz CPU speed -->
|
||||
<value>1958400</value> <!-- 1958 MHz CPU speed -->
|
||||
<value>2054400</value> <!-- 2054 MHz CPU speed -->
|
||||
<value>2150400</value> <!-- 2150 MHz CPU speed -->
|
||||
<value>2246400</value> <!-- 2246 MHz CPU speed -->
|
||||
<value>2342400</value> <!-- 2342 MHz CPU speed -->
|
||||
<value>2419200</value> <!-- 2419 MHz CPU speed -->
|
||||
</array>
|
||||
<!-- Different CPU speeds as reported in
|
||||
/sys/devices/system/cpu/cpufreq/ploicy7/scaling_available_frequencies -->
|
||||
<array name="cpu.core_speeds.cluster2">
|
||||
<value>844800</value> <!-- 844 MHz CPU speed -->
|
||||
<value>960000</value> <!-- 960 MHz CPU speed -->
|
||||
<value>1075200</value> <!-- 1075 MHz CPU speed -->
|
||||
<value>1190400</value> <!-- 1190 MHz CPU speed -->
|
||||
<value>1305600</value> <!-- 1305 MHz CPU speed -->
|
||||
<value>1401600</value> <!-- 1401 MHz CPU speed -->
|
||||
<value>1516800</value> <!-- 1516 MHz CPU speed -->
|
||||
<value>1632000</value> <!-- 1632 MHz CPU speed -->
|
||||
<value>1747200</value> <!-- 1747 MHz CPU speed -->
|
||||
<value>1862400</value> <!-- 1862 MHz CPU speed -->
|
||||
<value>1977600</value> <!-- 1977 MHz CPU speed -->
|
||||
<value>2073600</value> <!-- 2073 MHz CPU speed -->
|
||||
<value>2169600</value> <!-- 2169 MHz CPU speed -->
|
||||
<value>2265600</value> <!-- 2265 MHz CPU speed -->
|
||||
<value>2361600</value> <!-- 2361 MHz CPU speed -->
|
||||
<value>2457600</value> <!-- 2557 MHz CPU speed -->
|
||||
<value>2553600</value> <!-- 2553 MHz CPU speed -->
|
||||
<value>2649660</value> <!-- 2649 MHz CPU speed -->
|
||||
<value>2745600</value> <!-- 2745 MHz CPU speed -->
|
||||
<value>2841600</value> <!-- 2841 MHz CPU speed -->
|
||||
<value>3187200</value> <!-- 3187 MHz CPU speed -->
|
||||
</array>
|
||||
|
||||
<!-- Additional power used by a CPU core from cluster 0 when running at
|
||||
different speeds, excluding cluster and active cost -->
|
||||
<array name="cpu.core_power.cluster0">
|
||||
<value>28.50</value> <!-- 691 MHz CPU speed -->
|
||||
<value>29.64</value> <!-- 787 MHz CPU speed -->
|
||||
<value>30.78</value> <!-- 883 MHz CPU speed -->
|
||||
<value>31.73</value> <!-- 979 MHz CPU speed -->
|
||||
<value>33.25</value> <!-- 1075 MHz CPU speed -->
|
||||
<value>34.30</value> <!-- 1171 MHz CPU speed -->
|
||||
<value>36.10</value> <!-- 1248 MHz CPU speed -->
|
||||
<value>38.45</value> <!-- 1344 MHz CPU speed -->
|
||||
<value>39.52</value> <!-- 1420 MHz CPU speed -->
|
||||
<value>43.13</value> <!-- 1516 MHz CPU speed -->
|
||||
<value>44.25</value> <!-- 1612 MHz CPU speed -->
|
||||
<value>46.55</value> <!-- 1708 MHz CPU speed -->
|
||||
<value>49.40</value> <!-- 1804 MHz CPU speed -->
|
||||
</array>
|
||||
<!-- Additional power used by a CPU core from cluster 1 when running at
|
||||
different speeds, excluding cluster and active cost -->
|
||||
<array name="cpu.core_power.cluster1">
|
||||
<value>57.19</value> <!-- 710 MHz CPU speed -->
|
||||
<value>64.43</value> <!-- 825 MHz CPU speed -->
|
||||
<value>73.74</value> <!-- 940 MHz CPU speed -->
|
||||
<value>80.56</value> <!-- 1056 MHz CPU speed -->
|
||||
<value>89.60</value> <!-- 1171 MHz CPU speed -->
|
||||
<value>97.87</value> <!-- 1286 MHz CPU speed -->
|
||||
<value>104.79</value> <!-- 1382 MHz CPU speed -->
|
||||
<value>113.90</value> <!-- 1478 MHz CPU speed -->
|
||||
<value>123.15</value> <!-- 1574 MHz CPU speed -->
|
||||
<value>133.00</value> <!-- 1670 MHz CPU speed -->
|
||||
<value>145.40</value> <!-- 1766 MHz CPU speed -->
|
||||
<value>161.14</value> <!-- 1862 MHz CPU speed -->
|
||||
<value>190.97</value> <!-- 1958 MHz CPU speed -->
|
||||
<value>206.38</value> <!-- 2054 MHz CPU speed -->
|
||||
<value>225.44</value> <!-- 2150 MHz CPU speed -->
|
||||
<value>246.22</value> <!-- 2246 MHz CPU speed -->
|
||||
<value>267.43</value> <!-- 2342 MHz CPU speed -->
|
||||
<value>284.60</value> <!-- 2419 MHz CPU speed -->
|
||||
</array>
|
||||
<!-- Additional power used by a CPU core from cluster 2 when running at
|
||||
different speeds, excluding cluster and active cost -->
|
||||
<array name="cpu.core_power.cluster2">
|
||||
<value>67.98</value> <!-- 844 MHz CPU speed -->
|
||||
<value>76.55</value> <!-- 960 MHz CPU speed -->
|
||||
<value>83.99</value> <!-- 1075 MHz CPU speed -->
|
||||
<value>92.45</value> <!-- 1190 MHz CPU speed -->
|
||||
<value>101.94</value> <!-- 1305 MHz CPU speed -->
|
||||
<value>109.67</value> <!-- 1401 MHz CPU speed -->
|
||||
<value>122.22</value> <!-- 1516 MHz CPU speed -->
|
||||
<value>135.75</value> <!-- 1632 MHz CPU speed -->
|
||||
<value>150.24</value> <!-- 1747 MHz CPU speed -->
|
||||
<value>165.13</value> <!-- 1862 MHz CPU speed -->
|
||||
<value>196.44</value> <!-- 1977 MHz CPU speed -->
|
||||
<value>211.24</value> <!-- 2073 MHz CPU speed -->
|
||||
<value>232.84</value> <!-- 2169 MHz CPU speed -->
|
||||
<value>258.84</value> <!-- 2265 MHz CPU speed -->
|
||||
<value>287.68</value> <!-- 2361 MHz CPU speed -->
|
||||
<value>322.64</value> <!-- 2457 MHz CPU speed -->
|
||||
<value>370.37</value> <!-- 2553 MHz CPU speed -->
|
||||
<value>406.47</value> <!-- 2649 MHz CPU speed -->
|
||||
<value>457.40</value> <!-- 2745 MHz CPU speed -->
|
||||
<value>547.75</value> <!-- 2841 MHz CPU speed -->
|
||||
<value>638.17</value> <!-- 3187 MHz CPU speed -->
|
||||
</array>
|
||||
|
||||
<!-- Additional power used when screen is ambient mode -->
|
||||
<item name="ambient.on">32</item>
|
||||
|
||||
<!-- Additional power used when screen is turned on at minimum brightness -->
|
||||
<item name="screen.on">98</item>
|
||||
<!-- Additional power used when screen is at maximum brightness, compared to
|
||||
screen at minimum brightness -->
|
||||
<item name="screen.full">470</item>
|
||||
|
||||
<!-- Average power used by the camera flash module when on -->
|
||||
<item name="camera.flashlight">240.47</item>
|
||||
<!-- Average power use by the camera subsystem for a typical camera
|
||||
application. Intended as a rough estimate for an application running a
|
||||
preview and capturing approximately 10 full-resolution pictures per
|
||||
minute. -->
|
||||
<item name="camera.avg">900</item>
|
||||
|
||||
<!-- Additional power used when video is playing -->
|
||||
<item name="video">25</item>
|
||||
<!-- Additional power used when audio is playing -->
|
||||
<item name="audio">75</item>
|
||||
|
||||
<!-- Cellular modem related values.-->
|
||||
<item name="modem.controller.sleep">0</item>
|
||||
<item name="modem.controller.idle">100</item>
|
||||
<item name="modem.controller.rx">91</item>
|
||||
<array name="modem.controller.tx"> <!-- Strength 0 to 4 -->
|
||||
<value>96</value>
|
||||
<value>133</value>
|
||||
<value>183</value>
|
||||
<value>225</value>
|
||||
<value>295</value>
|
||||
</array>
|
||||
<item name="modem.controller.voltage">3700</item>
|
||||
|
||||
<!-- GPS related values.-->
|
||||
<array name="gps.signalqualitybased"> <!-- Strength 0 to 1 -->
|
||||
<value>24</value>
|
||||
<value>6</value>
|
||||
</array>
|
||||
<item name="gps.voltage">3700</item>
|
||||
|
||||
<!-- Idle Receive current for wifi radio in mA.-->
|
||||
<item name="wifi.controller.idle">82</item>
|
||||
<!-- Rx current for wifi radio in mA.-->
|
||||
<item name="wifi.controller.rx">125</item>
|
||||
<!-- Tx current for wifi radio in mA-->
|
||||
<item name="wifi.controller.tx">351</item>
|
||||
<!-- Operating volatage for wifi radio in mV.-->
|
||||
<item name="wifi.controller.voltage">3700</item>
|
||||
|
||||
<!-- Idle current for bluetooth in mA.-->
|
||||
<item name="bluetooth.controller.idle">0.01</item>
|
||||
<!-- Rx current for bluetooth in mA.-->
|
||||
<item name="bluetooth.controller.rx">9</item>
|
||||
<!-- Tx current for bluetooth in mA-->
|
||||
<item name="bluetooth.controller.tx">7</item>
|
||||
<!-- Operating voltage for bluetooth in mV.-->
|
||||
<item name="bluetooth.controller.voltage">3300</item>
|
||||
<allow-in-power-save package="com.google.android.gms" />
|
||||
<allow-in-data-usage-save package="com.google.android.gms" />
|
||||
</device>
|
|
@ -253,6 +253,8 @@ PRODUCT_PACKAGES += \
|
|||
treble-overlay-xiaomi-mipad5pro5g \
|
||||
treble-overlay-xiaomi-miplay \
|
||||
treble-overlay-xiaomi-pocof1 \
|
||||
treble-overlay-xiaomi-pocof4 \
|
||||
treble-overlay-xiaomi-pocof4-systemui \
|
||||
treble-overlay-xiaomi-pocom4pro5g \
|
||||
treble-overlay-xiaomi-redmi10x5g \
|
||||
treble-overlay-xiaomi-redmi6 \
|
||||
|
|
Loading…
Reference in a new issue