Add overlay for HUAWEI-PIC-LX9

This commit is contained in:
exzemat 2019-12-06 14:07:31 +01:00
parent 3a1b571779
commit 8c9d3afba0
4 changed files with 117 additions and 0 deletions

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-huawei-PIC
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.huawei.PIC"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.hw.oemName"
android:requiredSystemPropertyValue="+PIC*"
android:priority="150"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<integer name="config_autoBrightnessAmbientLightHorizon">10000</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">4000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">300</integer>
<integer name="config_brightness_ramp_rate_fast">200</integer>
<integer name="config_brightness_ramp_rate_slow">40</integer>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>6</item>
<item>47</item>
<item>150</item>
<item>180</item>
<item>250</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>8</item>
<item>55</item>
<item>350</item>
<item>1600</item>
<item>2550</item>
</integer-array>
<bool name="config_suspendWhenScreenOffDueToProximity">false</bool>
<bool name="config_supportSystemNavigationKeys">false</bool>
</resources>

View file

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** 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.
*/
-->
<device name="Android">
<!-- All values are in mA except as noted -->
<item name="none">0</item>
<item name="screen.on">131.6</item> <!-- min brite -->
<item name="bluetooth.active">97</item>
<item name="bluetooth.on">0.6</item>
<item name="bluetooth.at">0.6</item> <!-- TBD -->
<item name="screen.full">396.5</item> <!-- backlight 16 leds -->
<item name="wifi.on">0.6</item>
<item name="wifi.active">128</item>
<item name="wifi.scan">146</item>
<item name="dsp.audio">43</item> <!-- k3v5 -->
<item name="dsp.video">176</item>
<item name="radio.active">190</item>
<item name="gps.on">70</item>
<item name="battery.capacity">2950</item> <!-- 2950mAh -->
<item name="radio.scanning">65</item> <!-- TBD -->
<!-- Current consumed by the radio at different signal strengths, when paging -->
<array name="radio.on"> <!-- 1 entry per signal strength bin, TBD -->
<value>13.0</value>
<value>10.0</value>
<value>10.0</value>
<value>10.0</value>
<value>10.0</value>
</array>
<array name="cpu.speeds">
<value>480000</value> <!-- 480 MHz CPU speed -->
<value>807000</value> <!-- 807 MHz CPU speed -->
<value>1306000</value><!-- 1.3 GHz CPU speed -->
<value>1402000</value><!-- 1.4 GHz CPU speed -->
<value>1709000</value><!-- 1.7 GHz CPU speed -->
<value>1805000</value><!-- 1.8 GHz CPU speed -->
<value>2016000</value><!-- 2.0 GHz CPU speed -->
<value>2112000</value><!-- 2.1 GHz CPU speed -->
</array>
<!-- Power consumption in suspend -->
<item name="cpu.idle">4</item> <!-- k3v5 -->
<!-- Power consumption due to wake lock held -->
<item name="cpu.awake">43</item> <!-- k3v5 -->
<!-- Power consumption at different speeds -->
<array name="cpu.active">
<value>107</value>
<value>181</value>
<value>425</value>
<value>537</value>
<value>732</value>
<value>899</value>
<value>1417</value>
<value>1855</value>
</array>
</device>