From 8eebe36121979f98ce8d39cf3aec96795b69fc97 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Mon, 21 Jun 2021 11:36:34 +0100 Subject: [PATCH] Add Infinix Note 7 overlay --- Infinix/Note7/Android.mk | 8 ++ Infinix/Note7/AndroidManifest.xml | 10 +++ Infinix/Note7/res/values/config.xml | 115 ++++++++++++++++++++++++ Infinix/Note7/res/values/notch.xml | 24 +++++ Infinix/Note7/res/xml/power_profile.xml | 90 +++++++++++++++++++ overlay.mk | 1 + 6 files changed, 248 insertions(+) create mode 100644 Infinix/Note7/Android.mk create mode 100644 Infinix/Note7/AndroidManifest.xml create mode 100644 Infinix/Note7/res/values/config.xml create mode 100644 Infinix/Note7/res/values/notch.xml create mode 100644 Infinix/Note7/res/xml/power_profile.xml diff --git a/Infinix/Note7/Android.mk b/Infinix/Note7/Android.mk new file mode 100644 index 0000000..40576f5 --- /dev/null +++ b/Infinix/Note7/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-infinix-note7 +LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay +LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true +LOCAL_PRIVATE_PLATFORM_APIS := true +include $(BUILD_PACKAGE) diff --git a/Infinix/Note7/AndroidManifest.xml b/Infinix/Note7/AndroidManifest.xml new file mode 100644 index 0000000..3d281b5 --- /dev/null +++ b/Infinix/Note7/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Infinix/Note7/res/values/config.xml b/Infinix/Note7/res/values/config.xml new file mode 100644 index 0000000..7f5afe5 --- /dev/null +++ b/Infinix/Note7/res/values/config.xml @@ -0,0 +1,115 @@ + + + + 128 + 256 + 384 + 512 + 640 + 768 + 896 + 1024 + 2048 + 4096 + 6144 + 8192 + 10240 + 12288 + 14336 + 16384 + 18432 + + + 8 + 64 + 98 + 104 + 110 + 116 + 122 + 128 + 134 + 182 + 255 + 255 + 255 + 255 + 255 + 255 + 255 + 255 + + + wifi,1,1,1,-1,true + mobile,0,0,0,-1,true + mobile_mms,2,0,2,60000,true + mobile_supl,3,0,2,60000,true + mobile_dun,4,0,2,60000,true + mobile_hipri,5,0,3,60000,true + mobile_fota,10,0,2,60000,true + mobile_ims,11,0,2,60000,true + mobile_cbs,12,0,2,60000,true + wifi_p2p,13,1,0,-1,true + mobile_ia,14,0,2,-1,true + mobile_emergency,15,0,2,-1,true + mobile_wap,21,0,3,60000,true + mobile_xcap,25,0,3,60000,true + mobile_rcs,26,0,3,60000,true + mobile_bip,27,0,3,60000,true + mobile_vsim,28,0,-1,60000,true + mobile_preempt,29,0,9,60000,true + + + rndis\\d + + + ap\\d + + + bt-pan + bt-dun + + + /system/framework/arm/boot-mediatek-framework.vdex + /system/lib/libjavacrypto.so + /system/lib/libhidltransport.so + /system/framework/arm/boot-core-libart.oat + /system/framework/arm/boot-conscrypt.oat + /system/framework/arm/boot-core-libart.vdex + /system/framework/arm/boot-ext.vdex + /system/framework/arm/boot.vdex + /system/framework/arm/boot-framework.vdex + + + com.google.android.gms + + true + true + false + false + false + true + true + true + true + true + true + true + false + true + true + false + true + true + 300.0% + 20.000004% + 2000 + 6000 + 10 + 17 + 102 + 255 + 1 + 1 + 130 + diff --git a/Infinix/Note7/res/values/notch.xml b/Infinix/Note7/res/values/notch.xml new file mode 100644 index 0000000..c92ca3e --- /dev/null +++ b/Infinix/Note7/res/values/notch.xml @@ -0,0 +1,24 @@ + + + + + 40.0dip + + 28.0dip + diff --git a/Infinix/Note7/res/xml/power_profile.xml b/Infinix/Note7/res/xml/power_profile.xml new file mode 100644 index 0000000..777331e --- /dev/null +++ b/Infinix/Note7/res/xml/power_profile.xml @@ -0,0 +1,90 @@ + + + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + + 0.2 + 0.1 + + + 4 + 4 + + + 400000 + + + 0.1 + + 1.11 + 5 + 2.55. 2.11 + 2.22 + + 300000 + 1000000 + 2000000 + + + 300000 + 1000000 + 2500000 + 3000000 + + + 10 + 20 + 30 + + + 25 + 35 + 50 + 60 + + + 22.7 + + 1000 + 0 + 0 + 0 + + 0 + + .0002 + .002 + .02 + .2 + 2 + + 0 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + + 0 + + 0 + 0 + + 0 + diff --git a/overlay.mk b/overlay.mk index 71e2eb8..a568668 100755 --- a/overlay.mk +++ b/overlay.mk @@ -44,6 +44,7 @@ PRODUCT_PACKAGES += \ treble-overlay-huawei-WAS \ treble-overlay-hw-ims \ treble-overlay-infinix-note5 \ + treble-overlay-infinix-note7 \ treble-overlay-infinix-s4 \ treble-overlay-infinix-zero6 \ treble-overlay-lenovo-k5pro \