Add Overlay for Infinix ZERO 6 (X620)

This commit is contained in:
dmurimi14 2019-07-28 17:38:33 +03:00
parent 716d3735bd
commit 04668b81f4
6 changed files with 216 additions and 0 deletions

8
Infinix/Zero6/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-infinix-zero6
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.infinix.zero6"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*Infinix/Q6361A/Infinix-X620*"
android:priority="98"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +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>
<!-- Height of the status bar -->
<dimen name="status_bar_height">24dp</dimen>
</resources>

View file

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_auto_attach_data_on_creation">false</bool>
<bool name="config_nightDisplayAvailable">true</bool>
<bool name="config_lidControlsSleep">true</bool>
<bool name="config_dozePulsePickup">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingDefault">66</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>
<integer name="config_multiuserMaximumUsers">5</integer>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">299.9939%</fraction>
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
<item>4</item>
<item>5</item>
<item>8</item>
<item>13</item>
<item>17</item>
<item>21</item>
<item>26</item>
<item>30</item>
<item>34</item>
<item>39</item>
<item>60</item>
<item>140</item>
<item>310</item>
<item>400</item>
<item>500</item>
<item>600</item>
<item>1000</item>
<item>1200</item>
<item>1500</item>
<item>3000</item>
<item>3500</item>
<item>4000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>2</item>
<item>2</item>
<item>3</item>
<item>3</item>
<item>8</item>
<item>10</item>
<item>12</item>
<item>15</item>
<item>17</item>
<item>24</item>
<item>30</item>
<item>30</item>
<item>44</item>
<item>45</item>
<item>48</item>
<item>55</item>
<item>64</item>
<item>66</item>
<item>69</item>
<item>84</item>
<item>93</item>
<item>105</item>
<item>200</item>
<item>240</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
</resources>

View file

@ -0,0 +1,28 @@
<?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>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">86.0px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">86.0px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<dimen name="rounded_corner_radius">86.0px</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -130,0 L -130,86 L 130,86 L 130,0 Z</string>
</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">98</item>
<item name="screen.full">315</item>
<item name="bluetooth.active">95</item>
<item name="bluetooth.on">1.2</item>
<item name="wifi.on">1.6</item>
<item name="wifi.active">110</item>
<item name="wifi.scan">185</item>
<item name="dsp.audio">23.25</item>
<item name="dsp.video">96.5</item>
<item name="camera.avg">316</item>
<item name="camera.flashlight">390</item>
<item name="gps.on">83</item>
<item name="radio.active">84</item>
<item name="radio.scanning">115</item>
<array name="radio.on">
<value>17</value>
<value>4</value>
</array>
<array name="cpu.speeds.cluster0">
<value>633600</value>
<value>902400</value>
<value>1113600</value>
<value>1401600</value>
<value>1536000</value>
<value>1612800</value>
</array>
<array name="cpu.speeds.cluster1">
<value>1113600</value>
<value>1401600</value>
<value>1747200</value>
<value>1804800</value>
</array>
<item name="cpu.idle">5.4</item>
<item name="cpu.awake">15</item>
<array name="cpu.active.cluster0">
<value>16.65</value>
<value>46.31</value>
<value>50.77</value>
<value>63.93</value>
<value>82.85</value>
<value>87.9</value>
</array>
<array name="cpu.active.cluster1">
<value>112.1</value>
<value>145.9</value>
<value>198.3</value>
<value>223.5</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<item name="battery.capacity">3650</item>
<array name="wifi.batchedscan">
<value>.0185</value>
<value>.1502</value>
<value>1.188</value>
<value>9.486</value>
<value>75.87</value>
</array>
</device>