From 1bd7821dddcfc0c6c6c6124cec5ecb5c27860167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guilherme?= Date: Sun, 4 Oct 2020 16:34:25 -0300 Subject: [PATCH 1/4] Add overlay for ZenFone Max Shot --- Asus/ZenFoneMaxShot/Android.mk | 8 ++++++ Asus/ZenFoneMaxShot/AndroidManifest.xml | 10 +++++++ Asus/ZenFoneMaxShot/res/values/notch.xml | 27 +++++++++++++++++++ Asus/ZenFoneMaxShot/res/xml/power_profile.xml | 26 ++++++++++++++++++ fail | 0 overlay.mk | 1 + 6 files changed, 72 insertions(+) create mode 100644 Asus/ZenFoneMaxShot/Android.mk create mode 100644 Asus/ZenFoneMaxShot/AndroidManifest.xml create mode 100644 Asus/ZenFoneMaxShot/res/values/notch.xml create mode 100644 Asus/ZenFoneMaxShot/res/xml/power_profile.xml create mode 100644 fail diff --git a/Asus/ZenFoneMaxShot/Android.mk b/Asus/ZenFoneMaxShot/Android.mk new file mode 100644 index 0000000..3bd7252 --- /dev/null +++ b/Asus/ZenFoneMaxShot/Android.mk @@ -0,0 +1,8 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PACKAGE_NAME := treble-overlay-asus-zenfonemaxshot +LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay +LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true +LOCAL_PRIVATE_PLATFORM_APIS := true +include $(BUILD_PACKAGE) diff --git a/Asus/ZenFoneMaxShot/AndroidManifest.xml b/Asus/ZenFoneMaxShot/AndroidManifest.xml new file mode 100644 index 0000000..2225eb5 --- /dev/null +++ b/Asus/ZenFoneMaxShot/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Asus/ZenFoneMaxShot/res/values/notch.xml b/Asus/ZenFoneMaxShot/res/values/notch.xml new file mode 100644 index 0000000..46e67cf --- /dev/null +++ b/Asus/ZenFoneMaxShot/res/values/notch.xml @@ -0,0 +1,27 @@ + + + + + 81px + + 81px + + 81px + M 0,0 L -58, 0 L -40.9940446283, 10.0595537175 L -35, 27 L -35, 10.0595537175 L 35.2, 10.0595537175 L 35, 27 L 40, 0 Z @dp + diff --git a/Asus/ZenFoneMaxShot/res/xml/power_profile.xml b/Asus/ZenFoneMaxShot/res/xml/power_profile.xml new file mode 100644 index 0000000..d9e01f9 --- /dev/null +++ b/Asus/ZenFoneMaxShot/res/xml/power_profile.xml @@ -0,0 +1,26 @@ + + + 63 + 261 + + 200000 + 499200 + 533333 + 800000 + 998400 + 1094400 + 1209600 + + + 151 + 169 + 177 + 195 + 259 + 307 + 353 + + 1.6 + 1.6 + 4000 + diff --git a/fail b/fail new file mode 100644 index 0000000..e69de29 diff --git a/overlay.mk b/overlay.mk index 84353ae..589f7ab 100644 --- a/overlay.mk +++ b/overlay.mk @@ -10,6 +10,7 @@ PRODUCT_PACKAGES += \ treble-overlay-asus-zenfone5z \ treble-overlay-asus-zenfonelivel1za550kl \ treble-overlay-asus-zenfonemaxm2 \ + treble-overlay-asus-zenfonemaxshot \ treble-overlay-bq-jeice \ treble-overlay-caf-ims \ treble-overlay-devinputjack \ From 0ebc5974d152db2f9cb55b379635a782c8a7c5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guilherme?= <36928653+Guilherme2041@users.noreply.github.com> Date: Sun, 4 Oct 2020 16:48:29 -0300 Subject: [PATCH 2/4] Delete fail --- fail | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 fail diff --git a/fail b/fail deleted file mode 100644 index e69de29..0000000 From 0d980c495c73a63707c4b93c6e94a2e0b952d6fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guilherme?= Date: Sun, 4 Oct 2020 17:07:22 -0300 Subject: [PATCH 3/4] Fix sort of overlay.mk --- overlay.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay.mk b/overlay.mk index 589f7ab..8ece889 100644 --- a/overlay.mk +++ b/overlay.mk @@ -10,7 +10,7 @@ PRODUCT_PACKAGES += \ treble-overlay-asus-zenfone5z \ treble-overlay-asus-zenfonelivel1za550kl \ treble-overlay-asus-zenfonemaxm2 \ - treble-overlay-asus-zenfonemaxshot \ + treble-overlay-asus-zenfonemaxshot \ treble-overlay-bq-jeice \ treble-overlay-caf-ims \ treble-overlay-devinputjack \ From 41e9d3d31715e11c5d6f4b66fe2c3e6f6715c877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guilherme?= Date: Mon, 5 Oct 2020 13:27:48 -0300 Subject: [PATCH 4/4] added config.xml for fixes to the device --- Asus/ZenFoneMaxShot/res/values/config.xml | 107 ++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Asus/ZenFoneMaxShot/res/values/config.xml diff --git a/Asus/ZenFoneMaxShot/res/values/config.xml b/Asus/ZenFoneMaxShot/res/values/config.xml new file mode 100644 index 0000000..b8fba4b --- /dev/null +++ b/Asus/ZenFoneMaxShot/res/values/config.xml @@ -0,0 +1,107 @@ + + + + 5 + 8 + 26 + 38 + 48 + 58 + 74 + 84 + 92 + 99 + 108 + 117 + 126 + 162 + 187 + 207 + 216 + 220 + 223 + 227 + 255 + + + 1 + 15 + 30 + 50 + 100 + 200 + 300 + 400 + 500 + 650 + 800 + 1000 + 1500 + 2000 + 3000 + 4000 + 5000 + 7000 + 10000 + 12500 + + + SUPL_HOST=supl.google.com + SUPL_PORT=7275 + SUPL_VER=0x20000 + SUPL_MODE=1 + SUPL_ES=1 + LPP_PROFILE=0 + USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1 + A_GLONASS_POS_PROTOCOL_SELECT=0 + GPS_LOCK=0 + + + 0.0 + 50.0 + 90.0 + + true + false + true + true + false + true + true + true + true + true + true + true + false + false + true + true + true + true + true + true + true + false + 2000 + 4000 + -1 + 250 + 0 + 0 + 0 + 0 + 180 + 60 + 1500 + 1 + 10 + 17 + 86 + 255 + 79 + 102 + 255 + 5 + org.codeaurora.ims + \ No newline at end of file