From 01fdd807367437b77d8efda1aaf3a151cf299425 Mon Sep 17 00:00:00 2001 From: vGreatDragon Date: Wed, 15 Nov 2023 10:21:31 +0300 Subject: [PATCH] Add overlay for HWI --- Huawei/hi3660/HWI/Android.mk | 8 + Huawei/hi3660/HWI/AndroidManifest.xml | 10 + Huawei/hi3660/HWI/res/values/config.xml | 197 ++++++++++++++++++++ Huawei/hi3660/HWI/res/xml/power_profile.xml | 75 ++++++++ 4 files changed, 290 insertions(+) create mode 100644 Huawei/hi3660/HWI/Android.mk create mode 100644 Huawei/hi3660/HWI/AndroidManifest.xml create mode 100644 Huawei/hi3660/HWI/res/values/config.xml create mode 100644 Huawei/hi3660/HWI/res/xml/power_profile.xml diff --git a/Huawei/hi3660/HWI/Android.mk b/Huawei/hi3660/HWI/Android.mk new file mode 100644 index 000000000..38390f058 --- /dev/null +++ b/Huawei/hi3660/HWI/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-huawei-HWI +LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay +LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true +LOCAL_PRIVATE_PLATFORM_APIS := true +include $(BUILD_PACKAGE) diff --git a/Huawei/hi3660/HWI/AndroidManifest.xml b/Huawei/hi3660/HWI/AndroidManifest.xml new file mode 100644 index 000000000..df6e569d7 --- /dev/null +++ b/Huawei/hi3660/HWI/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Huawei/hi3660/HWI/res/values/config.xml b/Huawei/hi3660/HWI/res/values/config.xml new file mode 100644 index 000000000..7e3c489ab --- /dev/null +++ b/Huawei/hi3660/HWI/res/values/config.xml @@ -0,0 +1,197 @@ + + + + + + + + + 8 + 55 + 350 + 1600 + 2550 + + + + + 2 + 11 + 22 + 47 + 61 + 95 + 130 + 180 + 240 + 255 + + + + 6 + + + true + + + true + + + true + + + true + + + true + + + true + + + + 4 + + + true + + + + "rndis0" + + + + + "wlan0|ap0" + "softap.*" + + + + + "bt-pan" + + + + + + 1 + 7 + 0 + + + + true + + + true + + + true + + + true + + + true + + + true + + + true + + + true + + diff --git a/Huawei/hi3660/HWI/res/xml/power_profile.xml b/Huawei/hi3660/HWI/res/xml/power_profile.xml new file mode 100644 index 000000000..baf96f840 --- /dev/null +++ b/Huawei/hi3660/HWI/res/xml/power_profile.xml @@ -0,0 +1,75 @@ + + + 3000 + + 4 + 4 + + 5 + 1.11 + 2.55 + 2.11 + 2.22 + + 300000 + 1000000 + 2000000 + + + 300000 + 1000000 + 2500000 + 3000000 + + + 10 + 20 + 30 + + + 25 + 35 + 50 + 60 + + 0.5 + 100 + 800 + 500 + 600 + 100.0 + 150.0 + 10 + 60 + 3 + + 6 + 5 + 4 + 3 + 3 + + \ No newline at end of file