Add resources for Huawei Honor 8X Max / Enjoy Max (ARE)

Note: Huameme actually puts overlay stuff in /product...
This commit is contained in:
Andy CrossGate Yan 2020-03-27 22:30:47 +08:00
parent 9aff361cd4
commit 4ef3fde560
5 changed files with 128 additions and 0 deletions

8
Huawei/ARE/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-huawei-ARE
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.ARE"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.hw.oemName"
android:requiredSystemPropertyValue="+*ARE*"
android:priority="144"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>
<dimen name="status_bar_height_portrait">96px</dimen>
<dimen name="status_bar_height_landscape">96px</dimen>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<integer name="config_screenBrightnessDark">4</integer>
<integer name="config_screenBrightnessDim">6</integer>
<integer name="config_screenBrightnessDoze">4</integer>
<integer name="config_screenBrightnessSettingMinimum">4</integer>
<integer name="config_screenBrightnessSettingDefault">33</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">4000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>
<integer-array name="config_autoBrightnessLevels">
<item>8</item>
<item>55</item>
<item>350</item>
<item>1600</item>
<item>2550</item>
</integer-array>
<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>
<string name="config_mainBuiltInDisplayCutout">M-100,0c17.9,0 32.8,19.4 32.8,32.8l0,0C-62.4,68.6 -38.7,96 0,96c37.1,0 62.4,-27.4 67.3,-63.2l0,0C67.3,19.4 82.1,0 100,0H-100z</string>
</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">105</item> <!-- min brite -->
<item name="bluetooth.active">142</item>
<item name="bluetooth.on">1</item>
<item name="bluetooth.at">1</item> <!-- TBD -->
<item name="screen.full">340</item> <!-- backlight 18 leds -->
<item name="wifi.on">2</item>
<item name="wifi.active">202</item>
<item name="wifi.scan">127</item>
<item name="dsp.audio">43</item> <!-- k3v5 -->
<item name="dsp.video">196</item>
<item name="radio.active">115</item>
<item name="gps.on">40</item>
<item name="battery.capacity">5000</item> <!-- 5000mAh -->
<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>633600</value> <!-- 633 MHz CPU speed -->
<value>902400</value> <!-- 900 MHzHz CPU speed -->
<value>1113600</value> <!-- 1.1 GHz CPU speed -->
<value>1401600</value><!-- 1.4 GHz CPU speed -->
<value>1536000</value><!-- 1.5 GHz CPU speed -->
<value>1747200</value><!-- 1.6 GHz CPU speed -->
<value>1843200</value><!-- 1.7 GHz CPU speed -->
<value>1958400</value><!-- 1.8 GHz CPU speed -->
</array>
<!-- Power consumption in suspend -->
<item name="cpu.idle">3.5</item> <!-- k3v5 -->
<!-- Power consumption due to wake lock held -->
<item name="cpu.awake">40</item> <!-- k3v5 -->
<!-- Power consumption at different speeds -->
<array name="cpu.active">
<value>114</value>
<value>130</value>
<value>139</value>
<value>150</value>
<value>155</value>
<value>216</value>
<value>250</value>
<value>300</value>
</array>
</device>

View file

@ -17,6 +17,7 @@ PRODUCT_PACKAGES += \
treble-overlay-htc-u12plus \
treble-overlay-huawei \
treble-overlay-huawei-ANE \
treble-overlay-huawei-ARE \
treble-overlay-huawei-ATU \
treble-overlay-huawei-AUM \
treble-overlay-huawei-BKL \