Simplify Xiaomi Mi 11 Lite 5G overlay

This commit is contained in:
Alberto Ponces 2022-03-22 21:12:44 +00:00
parent 91a34b0e51
commit 44ce085273
2 changed files with 238 additions and 397 deletions

View file

@ -1,268 +1,22 @@
<?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.
*/
-->
<resources>
<!-- 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 name="config_mainBuiltInDisplayCutout">M 0,0 H 144 V 104 H 0 V 0 Z @left</string>
<!-- Height of the status bar in portrait. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height_portrait">104px</dimen>
<!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
autodetected from the Configuration. -->
<bool name="config_showNavigationBar">true</bool>
<!-- This string array should be overridden by the device to present a list of network
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
[associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
<!-- the 5th element "resore-time" indicates the number of milliseconds to delay
before automatically restore the default connection. Set -1 if the connection
does not require auto-restore. -->
<!-- the 6th element indicates boot-time dependency-met value. -->
<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,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,2,60000,true</item>
<item>mobile_hipri,5,0,3,60000,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,2,60000,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>bluetooth,7,7,2,-1,true</item>
<item>mobile_emergency,15,0,5,-1,true</item>
<item>ethernet,9,9,9,-1,true</item>
<item>wifi_slave,30,1,1,-1,true</item>
</string-array>
<!-- Configure mobile tcp buffer sizes in the form:
rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
If no value is found for the rat-name in use, the system default will be applied. -->
<string-array name="config_mobile_tcp_buffers">
<item>5gnr:2097152,6291456,16777216,512000,2097152,8388608</item>
<item>lte:2097152,4194304,8388608,262144,524288,1048576</item>
<item>lte_ca:4096,6291456,12582912,4096,1048576,2097152</item>
<item>umts:4094,87380,1220608,4096,16384,1220608</item>
<item>hspa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsupa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsdpa:4094,87380,1220608,4096,16384,1220608</item>
<item>hspap:4094,87380,1220608,4096,16384,1220608</item>
<item>edge:4093,26280,35040,4096,16384,35040</item>
<item>gprs:4092,8760,11680,4096,8760,11680</item>
<item>evdo:4094,87380,524288,4096,16384,262144</item>
</string-array>
<!-- This string array should be overridden by the device to present a list of radio
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[ConnectivityManager connectionType],
[# simultaneous connection types]" -->
<string-array name="radioAttributes">
<item>"1,1"</item>
<item>"0,1"</item>
<item>"7,1"</item>
</string-array>
<!-- String indicating the package name of the device ImsService implementation for RCS. -->
<string name="config_ims_package">org.codeaurora.ims</string>
<!-- Flag specifying whether or not IMS will use the ImsResolver dynamically -->
<bool name="config_dynamic_bind_ims">true</bool>
<!-- Flag specifying whether VoLTE should be available for carrier: independent of
carrier provisioning. If false: hard disabled. If true: then depends on carrier
provisioning, availability etc -->
<bool name="config_carrier_volte_available">true</bool>
<!-- Flag specifying whether VoLTE is available on device -->
<bool name="config_device_volte_available">true</bool>
<!-- Flag specifying whether VoLTE is available on device -->
<bool name="config_device_vt_available">true</bool>
<!-- Flag specifying whether WFC over IMS is available on device -->
<bool name="config_device_wfc_ims_available">true</bool>
<!-- Flag specifying whether WFC over IMS should be available for carrier: independent of
carrier provisioning. If false: hard disabled. If true: then depends on carrier
provisioning, availability etc -->
<bool name="config_carrier_wfc_ims_available">true</bool>
<!-- Boolean indicating if restoring network selection should be skipped -->
<!-- The restoring is handled by modem if it is true-->
<bool name="skip_restoring_network_selection">true</bool>
<!-- Config determines whether to update phone object when voice registration
state changes. Voice radio tech change will always trigger an update of
phone object irrespective of this config -->
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<!-- Is the device capable of hot swapping an ICC Card -->
<bool name="config_hotswapCapable">true</bool>
<!-- If true, the display will be shifted around in ambient mode. -->
<bool name="config_enableBurnInProtection">true</bool>
<!-- When true use the linux /dev/input/event subsystem to detect the switch changes
on the headphone/microphone jack. When false use the older uevent framework. -->
<bool name="config_useDevInputEventForAudioJack">true</bool>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- Whether the Unprocessed audio source supports the required frequency range and level -->
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<!-- Idle current for bluetooth controller. 0 by default-->
<integer name="config_bluetooth_idle_cur_ma">6</integer>
<!-- Rx current for bluetooth controller. 0 by default-->
<integer name="config_bluetooth_rx_cur_ma">28</integer>
<!-- Tx current for bluetooth controller. 0 by default-->
<integer name="config_bluetooth_tx_cur_ma">36</integer>
<!-- Operating voltage for bluetooth controller. 0 by default-->
<integer name="config_bluetooth_operating_voltage_mv">3700</integer>
<!-- Should the pinner service pin the Camera application? -->
<bool name="config_pinnerCameraApp">true</bool>
<!-- Should the pinner service pin the Home application? -->
<bool name="config_pinnerHomeApp">true</bool>
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
and Strength as defined in Authenticators.java -->
<string-array name="config_biometric_sensors" translatable="false" >
<!-- ID0:Fingerprint:Strong -->
<item>0:2:15</item>
</string-array>
<!-- 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">90</integer>
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
in hardware. -->
<bool name="config_showNavigationBar">true</bool>
<bool name="config_enableBurnInProtection">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<!-- Power Management: Specifies whether to decouple the auto-suspend state of the
device from the display on/off state.
When false, autosuspend_disable() will be called before the display is turned on
and autosuspend_enable() will be called after the display is turned off.
This mode provides best compatibility for devices using legacy power management
features such as early suspend / late resume.
When true, autosuspend_display() and autosuspend_enable() will be called
independently of whether the display is being turned on or off. This mode
enables the power manager to suspend the application processor while the
display is on.
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to autosuspend.h for details.
-->
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<!-- Power Management: Specifies whether to decouple the interactive state of the
device from the display on/off state.
When false, setInteractive(..., true) will be called before the display is turned on
and setInteractive(..., false) will be called after the display is turned off.
This mode provides best compatibility for devices that expect the interactive
state to be tied to the display state.
When true, setInteractive(...) will be called independently of whether the display
is being turned on or off. This mode enables the power manager to reduce
clocks and disable the touch controller while the display is on.
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to power.h for details. -->
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<!-- If true, the doze component is not started until after the screen has been
turned off and the screen off animation has been performed. -->
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<!-- Enable doze alwaysOn Display -->
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<!-- Doze: should the TYPE_PICK_UP_GESTURE sensor be used as a pulse signal. -->
<bool name="config_dozePulsePickup">true</bool>
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDoze">17</integer>
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
<bool name="config_automatic_brightness_available">true</bool>
<!-- True if the display hardware only has brightness buckets rather than a full range of
backlight values -->
<bool name="config_displayBrightnessBucketsInDoze">true</bool>
<!-- The maximum range of gamma adjustment possible using the screen
auto-brightness adjustment setting. -->
<fraction name="config_autoBrightnessAdjustmentMaxGamma">100%</fraction>
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
for debouncing the light sensor. Different constants are used to debounce the light sensor
when adapting to brighter or darker environments. This parameter controls how quickly
brightness changes occur in response to an observed change in light level that exceeds the
hysteresis threshold. -->
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
<!-- 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 -->
<array name="config_autoBrightnessLevels">
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
<item>4</item>
@ -370,19 +124,117 @@
<item>90000</item>
<item>95000</item>
<item>100000</item>
</array>
<!-- Array of desired screen brightness in nits corresponding to the lux values
in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
config_screenBrightnessMaximumNits, the display brightness is defined as the measured
brightness of an all-white image.
If this is defined then:
- config_autoBrightnessLcdBacklightValues should not be defined
- config_screenBrightnessNits must be defined
- config_screenBrightnessBacklight must be defined
This array should have size one greater than the size of the config_autoBrightnessLevels
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>17</item>
<item>26</item>
<item>32</item>
<item>81</item>
<item>99</item>
<item>121</item>
<item>138</item>
<item>187</item>
<item>241</item>
<item>310</item>
<item>331</item>
<item>335</item>
<item>335</item>
<item>335</item>
<item>339</item>
<item>339</item>
<item>339</item>
<item>343</item>
<item>343</item>
<item>347</item>
<item>347</item>
<item>347</item>
<item>347</item>
<item>351</item>
<item>351</item>
<item>355</item>
<item>363</item>
<item>368</item>
<item>372</item>
<item>380</item>
<item>384</item>
<item>392</item>
<item>396</item>
<item>404</item>
<item>409</item>
<item>413</item>
<item>425</item>
<item>429</item>
<item>433</item>
<item>441</item>
<item>445</item>
<item>454</item>
<item>458</item>
<item>466</item>
<item>474</item>
<item>560</item>
<item>642</item>
<item>736</item>
<item>838</item>
<item>924</item>
<item>1051</item>
<item>1146</item>
<item>1207</item>
<item>1510</item>
<item>1637</item>
<item>1705</item>
<item>1774</item>
<item>1842</item>
<item>1910</item>
<item>1978</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
<item>2047</item>
</integer-array>
<array name="config_autoBrightnessDisplayValuesNits">
<item>4.5</item>
<item>6.6</item>
@ -493,21 +345,10 @@
<item>985.7</item>
<item>1000.0</item>
</array>
<!-- An array describing the screen's backlight values corresponding to the brightness
values in the config_screenBrightnessNits array.
This array should be equal in size to config_screenBrightnessBacklight. -->
<array name="config_screenBrightnessBacklight">
<item>1</item>
<item>255</item>
</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 -->
<array name="config_screenBrightnessNits">
<item>4.5</item>
<item>1000</item>

View file

@ -1,123 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">103.76</item>
<item name="screen.full">448.43</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>3</value>
<value>1</value>
</array>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>576000</value>
<value>691200</value>
<value>806400</value>
<value>940800</value>
<value>1171200</value>
<value>1324800</value>
<value>1516800</value>
<value>1670400</value>
<value>1804800</value>
<value>1900800</value>
</array>
<array name="cpu.core_power.cluster0">
<value>33.41</value>
<value>35.96</value>
<value>36.91</value>
<value>38.5</value>
<value>40.16</value>
<value>43.95</value>
<value>46.72</value>
<value>55.69</value>
<value>69.07</value>
<value>76.5</value>
<value>78.65</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>691200</value>
<value>940800</value>
<value>1209600</value>
<value>1344000</value>
<value>1497600</value>
<value>1651200</value>
<value>1900800</value>
<value>2131200</value>
<value>2208000</value>
</array>
<array name="cpu.core_power.cluster1">
<value>70.66</value>
<value>88.43</value>
<value>112.19</value>
<value>135.48</value>
<value>153.64</value>
<value>176.07</value>
<value>249.96</value>
<value>329.66</value>
<value>357.27</value>
</array>
<array name="cpu.core_speeds.cluster2">
<value>806400</value>
<value>1094400</value>
<value>1267200</value>
<value>1516800</value>
<value>1766400</value>
<value>1862400</value>
<value>2035200</value>
<value>2169600</value>
<value>2361600</value>
<value>2400000</value>
</array>
<array name="cpu.core_power.cluster2">
<value>85.09</value>
<value>106.46</value>
<value>121.37</value>
<value>150.8</value>
<value>184.33</value>
<value>201.27</value>
<value>275.3</value>
<value>291.09</value>
<value>348.8</value>
<value>420.74</value>
</array>
<item name="cpu.active">11.86</item>
<item name="cpu.idle">5.37</item>
<item name="cpu.suspend">0</item>
<item name="battery.capacity">4250</item>
<item name="wifi.on">2.47</item>
<item name="wifi.active">266.5</item>
<item name="wifi.scan">34.36</item>
<item name="dsp.audio">26.75</item>
<item name="dsp.video">37.04</item>
<item name="camera.flashlight">108.77</item>
<item name="camera.avg">890.77</item>
<item name="gps.on">73.3</item>
<item name="radio.active">206.15</item>
<item name="radio.scanning">65</item>
<array name="radio.on">
<value>1.41</value>
<value>1.41</value>
</array>
<item name="modem.controller.idle">6</item>
<item name="modem.controller.rx">180</item>
<item name="modem.controller.tx">186</item>
<item name="modem.controller.voltage">3700</item>
<array name="memory.bandwidths">
<value>17</value>
</array>
<item name="wifi.controller.idle">1</item>
<item name="wifi.controller.rx">152</item>
<item name="wifi.controller.tx">190</item>
<array name="wifi.controller.tx_levels">1 </array>
<item name="wifi.controller.voltage">3700</item>
<array name="wifi.batchedscan">
<value>.0001</value>
<value>.001</value>
<value>.01</value>
<value>.1</value>
<value>1</value>
</array>
<item name="bluetooth.active">23.97</item>
<item name="bluetooth.on">1.39</item>
<item name="bluetooth.controller.voltage">3700</item>
</device>
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">103.76</item>
<item name="screen.full">448.43</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>3</value>
<value>1</value>
</array>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>576000</value>
<value>691200</value>
<value>806400</value>
<value>940800</value>
<value>1171200</value>
<value>1324800</value>
<value>1516800</value>
<value>1670400</value>
<value>1804800</value>
<value>1900800</value>
</array>
<array name="cpu.core_power.cluster0">
<value>33.41</value>
<value>35.96</value>
<value>36.91</value>
<value>38.5</value>
<value>40.16</value>
<value>43.95</value>
<value>46.72</value>
<value>55.69</value>
<value>69.07</value>
<value>76.5</value>
<value>78.65</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>691200</value>
<value>940800</value>
<value>1209600</value>
<value>1344000</value>
<value>1497600</value>
<value>1651200</value>
<value>1900800</value>
<value>2131200</value>
<value>2208000</value>
</array>
<array name="cpu.core_power.cluster1">
<value>70.66</value>
<value>88.43</value>
<value>112.19</value>
<value>135.48</value>
<value>153.64</value>
<value>176.07</value>
<value>249.96</value>
<value>329.66</value>
<value>357.27</value>
</array>
<array name="cpu.core_speeds.cluster2">
<value>806400</value>
<value>1094400</value>
<value>1267200</value>
<value>1516800</value>
<value>1766400</value>
<value>1862400</value>
<value>2035200</value>
<value>2169600</value>
<value>2361600</value>
<value>2400000</value>
</array>
<array name="cpu.core_power.cluster2">
<value>85.09</value>
<value>106.46</value>
<value>121.37</value>
<value>150.8</value>
<value>184.33</value>
<value>201.27</value>
<value>275.3</value>
<value>291.09</value>
<value>348.8</value>
<value>420.74</value>
</array>
<item name="cpu.active">11.86</item>
<item name="cpu.idle">5.37</item>
<item name="cpu.suspend">0</item>
<item name="battery.capacity">4250</item>
<item name="wifi.on">2.47</item>
<item name="wifi.active">266.5</item>
<item name="wifi.scan">34.36</item>
<item name="dsp.audio">26.75</item>
<item name="dsp.video">37.04</item>
<item name="camera.flashlight">108.77</item>
<item name="camera.avg">890.77</item>
<item name="gps.on">73.3</item>
<item name="radio.active">206.15</item>
<item name="radio.scanning">65</item>
<array name="radio.on">
<value>1.41</value>
<value>1.41</value>
</array>
<item name="modem.controller.idle">6</item>
<item name="modem.controller.rx">180</item>
<item name="modem.controller.tx">186</item>
<item name="modem.controller.voltage">3700</item>
<array name="memory.bandwidths">
<value>17</value>
</array>
<item name="wifi.controller.idle">1</item>
<item name="wifi.controller.rx">152</item>
<item name="wifi.controller.tx">190</item>
<array name="wifi.controller.tx_levels">1 </array>
<item name="wifi.controller.voltage">3700</item>
<array name="wifi.batchedscan">
<value>.0001</value>
<value>.001</value>
<value>.01</value>
<value>.1</value>
<value>1</value>
</array>
<item name="bluetooth.active">23.97</item>
<item name="bluetooth.on">1.39</item>
<item name="bluetooth.controller.voltage">3700</item>
</device>