Add better Redmi 6A overlay

This commit is contained in:
Myst33d 2021-09-24 21:51:27 +06:00
parent 028a03deaa
commit a105fa5681
3 changed files with 403 additions and 69 deletions

View file

@ -1,5 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
/*
** Copyright 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">
<!-- 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>
<!-- 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>2</item>
<item>3</item>
<item>5</item>
<item>7</item>
<item>8</item>
<item>16</item>
<item>20</item>
<item>24</item>
<item>28</item>
<item>32</item>
<item>37</item>
<item>41</item>
<item>45</item>
<item>49</item>
<item>53</item>
<item>57</item>
<item>76</item>
<item>81</item>
<item>91</item>
<item>101</item>
<item>139</item>
<item>158</item>
<item>178</item>
<item>201</item>
<item>222</item>
<item>305</item>
<item>364</item>
<item>424</item>
<item>503</item>
<item>712</item>
<item>911</item>
<item>1113</item>
<item>1316</item>
<item>2025</item>
<item>2537</item>
<item>3039</item>
</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>1</item>
<item>4</item>
@ -39,77 +123,252 @@
<item>221</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>2</item>
<item>3</item>
<!-- 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_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>
<!-- Fast brightness animation ramp rate in brightness units per second-->
<integer name="config_brightness_ramp_rate_fast">308</integer>
<!-- Slow brightness animation ramp rate in brightness units per second-->
<integer name="config_brightness_ramp_rate_slow">246</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>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>1</item>
<item>20</item>
<item>21</item>
</integer-array>
<!-- Vibrator pattern for feedback about touching a virtual key -->
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>10</item>
<item>20</item>
<item>30</item>
</integer-array>
<!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
<integer-array name="config_keyboardTapVibePattern">
<item>40</item>
</integer-array>
<string-array name="config_mobile_tcp_buffers">
<item>lte:524288,1048576,2097152,262144,524288,1048576</item>
<item>lte_ca:524288,1048576,2097152,262144,524288,1048576</item>
<item>umts:4094,87380,524288,4096,16384,524288</item>
<item>hspa:4094,87380,524288,4096,16384,524288</item>
<item>hsupa:4094,87380,524288,4096,16384,524288</item>
<item>hsdpa:4094,87380,524288,4096,16384,524288</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>
<!-- Configure wifi tcp buffersizes in the form:
rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max -->
<string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,5505024,262144,524288,5505024</string>
<!-- Array of allowable ConnectivityManager network types for tethering -->
<!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
[0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH -->
<integer-array translatable="false" name="config_tether_upstream_types">
<item>1</item>
<item>0</item>
<item>5</item>
<item>7</item>
<item>8</item>
<item>16</item>
<item>20</item>
<item>24</item>
<item>28</item>
<item>32</item>
<item>37</item>
<item>41</item>
<item>45</item>
<item>49</item>
<item>53</item>
<item>57</item>
<item>76</item>
<item>81</item>
<item>91</item>
<item>101</item>
<item>139</item>
<item>158</item>
<item>178</item>
<item>201</item>
<item>222</item>
<item>305</item>
<item>364</item>
<item>424</item>
<item>503</item>
<item>712</item>
<item>911</item>
<item>1113</item>
<item>1316</item>
<item>2025</item>
<item>2537</item>
<item>3039</item>
</integer-array>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_setColorTransformAccelerated">false</bool>
<bool name="config_supportAudioSourceUnprocessed">false</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 translatable="false" name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,2,300000,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,-1,-1,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>bluetooth,7,7,2,-1,true</item>
<item>ethernet,9,9,4,-1,true</item>
<item>wifi_p2p,13,1,0,-1,true</item>
<item>mobile_ia,14,0,2,-1,true</item>
<item>mobile_emergency,15,0,2,-1,true</item>
<item>mobile_dm,20,0,3,60000,true</item>
<item>mobile_wap,21,0,3,60000,true</item>
<item>mobile_net,22,0,3,60000,true</item>
<item>mobile_cmmail,23,0,3,60000,true</item>
<item>mobile_rcse,24,0,3,60000,true</item>
<item>mobile_xcap,25,0,3,60000,true</item>
<item>mobile_rcs,26,0,3,60000,true</item>
<item>mobile_bip,27,0,3,60000,true</item>
<item>mobile_vsim,28,0,-1,60000,true</item>
<item>mobile_preempt,29,0,9,60000,true</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 translatable="false" name="radioAttributes">
<item>1,1</item>
<item>0,1</item>
<item>7,1</item>
<item>9,1</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
USB interfaces. If the device doesn't want to support tething over USB this should
be empty. An example would be "usb.*" -->
<string-array translatable="false" name="config_tether_usb_regexs">
<item>"rndis\\d"</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
Wifi interfaces. If the device doesn't want to support tethering over Wifi this
should be empty. An example would be "softap.*" -->
<string-array translatable="false" name="config_tether_wifi_regexs">
<item>"ap\\d"</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->
<string-array translatable="false" name="config_tether_bluetooth_regexs">
<item>"bt-pan"</item>
<item>"bt-dun"</item>
</string-array>
<!-- 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>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">false</bool>
<bool name="config_carrier_volte_available">false</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">false</bool>
<bool name="config_hotswapCapable">true</bool>
<!-- Is the device capable of hot swapping an ICC Card -->
<bool name="config_hotswapCapable">true</bool>
<!-- Default list of files pinned by the Pinner Service -->
<string-array translatable="false" name="config_defaultPinnerServiceFiles">
<item>"/system/framework/arm/boot.oat"</item>
<item>"/system/framework/oat/arm/services.odex"</item>
<item>"/system/framework/arm/boot-framework.oat"</item>
<item>"/system/framework/arm/boot-core-libart.oat"</item>
</string-array>
<!-- 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>
<!-- Enable round icons -->
<bool name="config_useRoundIcon">true</bool>
<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">true</bool>
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently in hardware. -->
<bool name="config_setColorTransformAccelerated">true</bool>
<!-- Indicate whether closing the lid causes the device to go to sleep and opening
it causes the device to wake up.
The default is false. -->
<bool name="config_lidControlsSleep">true</bool>
<bool name="config_wifiDisplaySupportsProtectedBuffers">false</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">false</bool>
<bool name="config_wifi_dual_band_support">false</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<bool name="config_displayBlanksAfterDoze">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>
<!-- Whether Multiuser UI should be shown -->
<bool name="config_enableMultiUserUI">true</bool>
<!-- Maximum number of supported users -->
<integer name="config_multiuserMaximumUsers">4</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>
<!-- ComponentName of a dream to show whenever the system would otherwise have
gone to sleep. When the PowerManager is asked to go to sleep, it will instead
try to start this dream if possible. The dream should typically call startDozing()
to put the display into a low power state and allow the application processor
to be suspended. When the dream ends, the system will go to sleep as usual.
Specify the component name or an empty string if none.
Note that doze dreams are not subject to the same start conditions as ordinary dreams.
Doze dreams will run whenever the power manager is in a dozing state. -->
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
<!-- 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>
<!-- 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">false</bool>
<dimen name="rounded_corner_radius">11.0dip</dimen>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">29.999996%</fraction>
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">1</integer>
<integer name="config_screenBrightnessDoze">1</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">8</integer>
<integer name="config_bluetooth_idle_cur_ma">1</integer>
<integer name="config_bluetooth_operating_voltage_mv">4</integer>
<integer name="config_bluetooth_rx_cur_ma">2</integer>
<integer name="config_bluetooth_tx_cur_ma">3</integer>
<integer name="config_shutdownBatteryTemperature">680</integer>
<!-- 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>
<!-- Notification LED support -->
<bool name="config_intrusiveBatteryLed">true</bool>
<bool name="config_intrusiveNotificationLed">true</bool>
<bool name="config_ledCanPulse">true</bool>
<!-- Notification LED does not support color, so we disable it. -->
<bool name="config_multiColorNotificationLed">false</bool>
<bool name="config_multiColorBatteryLed">false</bool>
<!-- Doze: does this device support STATE_DOZE? -->
<bool name="doze_display_state_supported">true</bool>
<!-- Allow devices to enforce the H265 encoder for screen recordings -->
<bool name="config_useNewScreenRecEncoder">false</bool>
<!-- FPSInfoService FPS node file path -->
<string name="config_fpsInfoSysNode" translatable="false">/sys/module/primary_display/parameters/display_framerate_main</string>
<!-- Whether to show Connected MAC Randomization in Developer Options
as not all devices can support dynamic MAC address change. -->
<bool name="config_wifi_support_connected_mac_randomization">true</bool>
<!-- Battery Health -->
<string name="config_batChargeCycle">/sys/class/power_supply/battery/cycle_count</string>
<string name="config_batDesCap">/sys/class/power_supply/battery/charge_full_design</string>
<string name="config_batCurCap">/sys/class/power_supply/battery/charge_full</string>
<bool name="config_supportBatteryHealth">true</bool>
</resources>

View file

@ -0,0 +1,22 @@
<?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="nav_content_padding">2px</dimen>
<dimen name="rounded_corner_radius">22px</dimen>
<dimen name="rounded_corner_content_padding">2px</dimen>
</resources>

View file

@ -25,6 +25,7 @@
<item name="modem.controller.voltage">700</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.speeds.cluster0">
<value>2001000</value>
@ -44,6 +45,24 @@
<value>979000</value>
<value>900000</value>
</array>
<array name="cpu.speeds.cluster1">
<value>1500000</value>
<value>1429000</value>
<value>1367000</value>
<value>1314000</value>
<value>1261000</value>
<value>1208000</value>
<value>1155000</value>
<value>1102000</value>
<value>1050000</value>
<value>948000</value>
<value>846000</value>
<value>745000</value>
<value>643000</value>
<value>542000</value>
<value>460000</value>
<value>400000</value>
</array>
<array name="cpu.active.cluster0">
<value>947</value>
<value>856</value>
@ -62,6 +81,24 @@
<value>102</value>
<value>61</value>
</array>
<array name="cpu.active.cluster1">
<value>576</value>
<value>510</value>
<value>444</value>
<value>379</value>
<value>337</value>
<value>296</value>
<value>255</value>
<value>223</value>
<value>192</value>
<value>160</value>
<value>135</value>
<value>110</value>
<value>85</value>
<value>64</value>
<value>43</value>
<value>22</value>
</array>
<item name="cpu.idle">2.3</item>
<array name="memory.bandwidths">
<value>45</value>
@ -73,10 +110,26 @@
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">2550</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
<item name="modem.controller.sleep">0</item>
<item name="modem.controller.idle">0</item>
<item name="modem.controller.rx">0</item>
<array name="modem.controller.tx">
<value>0</value>
<value>0</value>
<value>0</value>
<value>0</value>
<value>0</value>
</array>
</device>
<item name="modem.controller.voltage">0</item>
<array name="gps.signalqualitybased">
<value>0</value>
<value>0</value>
</array>
<item name="gps.voltage">0</item>
</device>