Merge pull request #95 from algphello/master

Add Support To Honor 7A AUM-L29
This commit is contained in:
Pierre-Hugues HUSSON 2019-08-22 11:17:35 +02:00 committed by GitHub
commit 9aba777c8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 137 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-AUM
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="io.tenseventyseven.treble.huawei.AUM"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.hw.oemName"
android:requiredSystemPropertyValue="+AUM*"
android:priority="132"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
</string-array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,4,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,4,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,2,60000,true</item>
<item>mobile_cbs,12,0,2,60000,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>bluetooth,7,7,1,-1,true</item>
<item>mobile_bip0,38,0,3,-1,true</item>
<item>mobile_bip1,39,0,3,-1,true</item>
<item>mobile_bip2,40,0,3,-1,true</item>
<item>mobile_bip3,41,0,3,-1,true</item>
<item>mobile_bip4,42,0,3,-1,true</item>
<item>mobile_bip5,43,0,3,-1,true</item>
<item>mobile_bip6,44,0,3,-1,true</item>
<item>mobile_xcap,45,0,2,60000,true</item>
</string-array>
<string-array name="config_gpsParameters">
<item>SUPL_HOST=supl.google.com</item>
<item>SUPL_PORT=7276</item>
<item>NTP_SERVER=north-america.pool.ntp.org</item>
</string-array>
<string-array name="config_defaultPinnerServiceFiles">
<item>system/framework/arm/boot-hwframework.vdex</item>
<item>system/framework/oat/arm64/services.vdex</item>
<item>system/framework/arm/boot-bouncycastle.vdex</item>
<item>system/framework/oat/arm64/hwServices.vdex</item>
<item>system/framework/arm/boot-framework.oat</item>
<item>system/framework/arm/boot-core-libart.vdex</item>
<item>system/framework/oat/arm64/hwServices.odex</item>
<item>system/framework/oat/arm64/services.odex</item>
<item>system/framework/arm64/boot-framework.oat</item>
</string-array>
</resources>

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_wifi_enable_wifi_firmware_debugging">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_wifi_dual_band_support">false</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_enableFusedLocationOverlay">false</bool>
</resources>

View file

@ -0,0 +1,61 @@
<?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">100</item> <!-- min brite -->
<item name="bluetooth.active">97</item>
<item name="bluetooth.on">2.5</item>
<item name="bluetooth.at">2.5</item> <!-- TBD -->
<item name="screen.full">245</item> <!-- backlight 14 leds -->
<item name="wifi.on">1.4</item>
<item name="wifi.active">260</item>
<item name="wifi.scan">70</item>
<item name="dsp.audio">43</item> <!-- k3v5 -->
<item name="dsp.video">176</item>
<item name="radio.active">150</item>
<item name="gps.on">36</item>
<item name="battery.capacity">3000</item> <!-- 3000mAh -->
<item name="radio.scanning">102</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>960000</value> <!-- 960 MHz CPU speed -->
<value>1094400</value> <!-- 1 GHz CPU speed -->
<value>1248000</value> <!-- 1.2 GHz CPU speed -->
<value>1401000</value><!-- 1.4 GHz CPU speed -->
</array>
<!-- Power consumption in suspend -->
<item name="cpu.idle">2.2</item> <!-- k3v5 -->
<!-- Power consumption due to wake lock held -->
<item name="cpu.awake">50</item> <!-- k3v5 -->
<!-- Power consumption at different speeds -->
<array name="cpu.active">
<value>137</value>
<value>147</value>
<value>158</value>
<value>169</value>
</array>
</device>

View file

@ -17,6 +17,7 @@ PRODUCT_PACKAGES += \
treble-overlay-huawei \
treble-overlay-huawei-ANE \
treble-overlay-huawei-ATU \
treble-overlay-huawei-AUM \
treble-overlay-huawei-BKL \
treble-overlay-huawei-BND \
treble-overlay-huawei-CLT \