From 55273837d93d97ffbe347d8d0a46f1cc4e095f61 Mon Sep 17 00:00:00 2001 From: ryenyuku Date: Tue, 5 Oct 2021 22:28:36 +0700 Subject: [PATCH] Add Infinix Note 8 overlay --- Infinix/Note8/Android.mk | 8 ++ Infinix/Note8/AndroidManifest.xml | 10 ++ Infinix/Note8/res/values/config.xml | 88 +++++++++++++ Infinix/Note8/res/values/notch.xml | 26 ++++ Infinix/Note8/res/xml/power_profile.xml | 157 ++++++++++++++++++++++++ overlay.mk | 1 + 6 files changed, 290 insertions(+) create mode 100644 Infinix/Note8/Android.mk create mode 100644 Infinix/Note8/AndroidManifest.xml create mode 100644 Infinix/Note8/res/values/config.xml create mode 100644 Infinix/Note8/res/values/notch.xml create mode 100644 Infinix/Note8/res/xml/power_profile.xml diff --git a/Infinix/Note8/Android.mk b/Infinix/Note8/Android.mk new file mode 100644 index 0000000..f4a31c1 --- /dev/null +++ b/Infinix/Note8/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-infinix-note8 +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/Note8/AndroidManifest.xml b/Infinix/Note8/AndroidManifest.xml new file mode 100644 index 0000000..7b5a8c2 --- /dev/null +++ b/Infinix/Note8/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Infinix/Note8/res/values/config.xml b/Infinix/Note8/res/values/config.xml new file mode 100644 index 0000000..a1f4daa --- /dev/null +++ b/Infinix/Note8/res/values/config.xml @@ -0,0 +1,88 @@ + + + + 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,-1,-1,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_mcx,1001,0,3,60000,true + ethernet,9,9,9,-1,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 + + + false + false + false + true + false + true + true + true + false + true + true + true + true + true + true + true + true + true + true + + 300.0% + 20.000004% + + 2000 + 3000 + 10 + 1 + 102 + 255 + 1 + 1 + + 0 + 00-0C-E7 + 1730560,3461120,6922240,524288,1048576,4525824 + + diff --git a/Infinix/Note8/res/values/notch.xml b/Infinix/Note8/res/values/notch.xml new file mode 100644 index 0000000..c5d1d4f --- /dev/null +++ b/Infinix/Note8/res/values/notch.xml @@ -0,0 +1,26 @@ + + + + + 44.0dip + + 28.0dip + + M -180,0 L -180,40 L -91.3,40 L -91.3,0 Z @dp + diff --git a/Infinix/Note8/res/xml/power_profile.xml b/Infinix/Note8/res/xml/power_profile.xml new file mode 100644 index 0000000..301d7d4 --- /dev/null +++ b/Infinix/Note8/res/xml/power_profile.xml @@ -0,0 +1,157 @@ + + + 0.1 + 69.55 + 372.97 + 18.97 + 0.83 + 0.15 + 291.5 + 36.02 + 24.06 + 57.4 + 128.09 + 769.89 + 35.39 + 15 + 28.44 + + 3.05 + 3.05 + + + 2 + 6 + + + 850000 + 909000 + 998000 + 1087000 + 1176000 + 1295000 + 1354000 + 1443000 + 1532000 + 1621000 + 1710000 + 1800000 + 1850000 + 1900000 + 1950000 + 2000000 + + + 500000 + 774000 + 850000 + 900000 + 950000 + 999000 + 1050000 + 1100000 + 1175000 + 1275000 + 1325000 + 1375000 + 1450000 + 1500000 + 1625000 + 1700000 + + + 22.64 + 27.78 + 31.47 + 38.23 + 44.37 + 53.14 + 60.46 + 68.39 + 78.25 + 88.69 + 101.35 + 112.58 + 122.47 + 130.81 + 143.09 + 151.02 + + + 7.97 + 10.92 + 12.31 + 14.27 + 15.09 + 17.33 + 19.52 + 21.17 + 24.15 + 27.77 + 30.33 + 33.50 + 37.52 + 39.83 + 45.35 + 49.36 + + 3.74 + 5 + 2.55 + 2.11 + 2.22 + + 300000 + 1000000 + 2000000 + + + 300000 + 1000000 + 2500000 + 3000000 + + + 10 + 20 + 30 + + + 25 + 35 + 50 + 60 + + + 22.7 + + 5200 + 15.2 + 220.55 + 362.94 + + 0 + + 36.02 + 36.02 + 36.02 + 36.02 + 36.02 + + 0 + 17 + 106.4 + + 676.3 + 430.7 + 157.3 + 111.2 + 106.4 + + 0 + + 0 + 0 + + 0 + \ No newline at end of file diff --git a/overlay.mk b/overlay.mk index c5d5c35..d3ce9a6 100755 --- a/overlay.mk +++ b/overlay.mk @@ -46,6 +46,7 @@ PRODUCT_PACKAGES += \ treble-overlay-hw-ims \ treble-overlay-infinix-note5 \ treble-overlay-infinix-note7 \ + treble-overlay-infinix-note8 \ treble-overlay-infinix-s4 \ treble-overlay-infinix-zero6 \ treble-overlay-lenovo-k5pro \