update a2 overlays

copy same props from 6x, and adjust value from a2 dumps
This commit is contained in:
suwakowww 2018-10-11 12:46:31 +08:00 committed by Pierre-Hugues Husson
parent 5b28aecbec
commit 184cff460d
4 changed files with 149 additions and 0 deletions

8
Xiaomi/MiA2/Android.mk Normal file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-mia2
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.xiaomi.mia2"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.product.device"
android:requiredSystemPropertyValue="jasmine"
android:priority="16"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>4</item>
<item>6</item>
<item>12</item>
<item>18</item>
<item>40</item>
<item>85</item>
<item>120</item>
<item>145</item>
<item>160</item>
<item>185</item>
<item>205</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>10</item>
<item>40</item>
<item>50</item>
<item>100</item>
<item>160</item>
<item>300</item>
<item>480</item>
<item>800</item>
<item>1500</item>
<item>2350</item>
<item>3800</item>
</integer-array>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_supportAudioSourceUnprocessed">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_intrusiveNotificationLed">false</bool>
<bool name="config_lidControlsSleep">true</bool>
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">true</bool>
<bool name="config_wifi_disconnect_only_on_initial_ipreachability">false</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_dual_sap_mode_enabled">false</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<bool name="config_displayBlanksAfterDoze">false</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<integer name="config_autoBrightnessBrighteningLightDebounce">1500</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">3000</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_bluetooth_idle_cur_ma">1</integer>
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
<integer name="config_bluetooth_rx_cur_ma">2</integer>
<integer name="config_bluetooth_tx_cur_ma">3</integer>
<integer name="config_shutdownBatteryTemperature">610</integer>
</resources>

View file

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">95</item>
<item name="screen.full">275</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.speeds.cluster0">
<value>633000</value>
<value>902000</value>
<value>1113000</value>
<value>1401000</value>
<value>1536000</value>
<value>1747000</value>
<value>1843000</value>
</array>
<array name="cpu.active.cluster0">
<value>12</value>
<value>23</value>
<value>30</value>
<value>40</value>
<value>50</value>
<value>55</value>
<value>65</value>
</array>
<array name="cpu.speeds.cluster1">
<value>1113600</value>
<value>1401600</value>
<value>1747200</value>
<value>1958400</value>
<value>2150000</value>
<value>2208000</value>
</array>
<array name="cpu.active.cluster1">
<value>75</value>
<value>110</value>
<value>155</value>
<value>220</value>
<value>285</value>
<value>310</value>
</array>
<item name="cpu.awake">9</item>
<item name="cpu.idle">6</item>
<item name="battery.capacity">3010</item>
<item name="bluetooth.active">70</item>
<item name="bluetooth.at">2</item>
<item name="bluetooth.on">2</item>
<item name="wifi.on">2</item>
<item name="wifi.active">175</item>
<item name="wifi.scan">180</item>
<item name="dsp.audio">45</item>
<item name="dsp.video">60</item>
<item name="camera.flashlight">200</item>
<item name="camera.avg">500</item>
<item name="gps.on">100</item>
<item name="radio.active">140</item>
<item name="radio.scanning">45</item>
<array name="radio.on">
<value>8</value>
<value>6</value>
</array>
</device>