From da932c768e3c269c49a6e563bf363473c61ae6ad Mon Sep 17 00:00:00 2001
From: Wabo0 <[omitted]>
Date: Wed, 17 Oct 2018 18:12:25 +0200
Subject: [PATCH 1/5] added resource files for Moto G6
---
Moto/G6/Android.mk | 8 ++
Moto/G6/AndroidManifest.xml | 10 +++
Moto/G6/res/values/config.xml | 124 ++++++++++++++++++++++++++++++
Moto/G6/res/xml/power_profile.xml | 59 ++++++++++++++
overlay.mk | 1 +
5 files changed, 202 insertions(+)
create mode 100644 Moto/G6/Android.mk
create mode 100644 Moto/G6/AndroidManifest.xml
create mode 100644 Moto/G6/res/values/config.xml
create mode 100644 Moto/G6/res/xml/power_profile.xml
diff --git a/Moto/G6/Android.mk b/Moto/G6/Android.mk
new file mode 100644
index 0000000..e84297a
--- /dev/null
+++ b/Moto/G6/Android.mk
@@ -0,0 +1,8 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_PACKAGE_NAME := treble-overlay-moto-g6
+LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+LOCAL_PRIVATE_PLATFORM_APIS := true
+include $(BUILD_PACKAGE)
diff --git a/Moto/G6/AndroidManifest.xml b/Moto/G6/AndroidManifest.xml
new file mode 100644
index 0000000..fba1328
--- /dev/null
+++ b/Moto/G6/AndroidManifest.xml
@@ -0,0 +1,10 @@
+
+
+
diff --git a/Moto/G6/res/values/config.xml b/Moto/G6/res/values/config.xml
new file mode 100644
index 0000000..cfad332
--- /dev/null
+++ b/Moto/G6/res/values/config.xml
@@ -0,0 +1,124 @@
+
+
+ true
+ 30
+ true
+ true
+ true
+ true
+ true
+ 200
+ 40
+ true
+ false
+ true
+
+
+ - 0
+ - 20
+
+
+ - 0
+ - 26
+
+
+ - 0
+ - 20
+
+ true
+ 3
+ 102
+ 17
+ 2000
+ 3
+
+ - 3
+ - 11
+ - 40
+ - 62
+ - 74
+ - 85
+ - 102
+ - 102
+ - 102
+ - 102
+ - 128
+ - 153
+ - 170
+ - 179
+ - 238
+ - 255
+ - 255
+ - 255
+ - 256
+
+
+ - 2
+ - 10
+ - 50
+ - 90
+ - 100
+ - 150
+ - 200
+ - 300
+ - 400
+ - 500
+ - 800
+ - 1000
+ - 1300
+ - 2000
+ - 3000
+ - 4000
+ - 8000
+ - 10000
+
+ true
+ 3300
+ true
+ true
+
+ com.android.systemui/com.android.systemui.doze.DozeService
+ true
+ true
+ true
+
+ 1410
+ true
+ false
+
+ - XTRA_SERVER_1=https://xtrapath1.izatcloud.net/xtra2.bin
+ - XTRA_SERVER_2=https://xtrapath2.izatcloud.net/xtra2.bin
+ - XTRA_SERVER_3=https://xtrapath3.izatcloud.net/xtra2.bin
+ - NTP_SERVER=north-america.pool.ntp.org
+ - SUPL_MODE=0
+ - SUPL_HOST=NONE
+ - SUPL_PORT=7275
+ - SUPL_VER=0x20000
+ - LPP_PROFILE=3
+ - NMEA_PROVIDER=0
+ - A_GLONASS_POS_PROTOCOL_SELECT=0
+ - ERR_ESTIMATE=0
+ - INTERMEDIATE_POS=0
+ - SUPL_ES=0
+ - GPS_LOCK=1
+
+ false
+ true
+ 65540
+ com.motorola.sensor.camera_activate
+ 4
+ true
+ false
+
+ - /system/framework/arm/boot-framework.oat
+ - /system/framework/arm/boot-framework.vdex
+ - /system/framework/oat/arm/services.odex
+ - /system/framework/oat/arm/services.vdex
+ - /system/framework/arm/boot-core-libart.oat
+ - /system/framework/arm/boot-core-libart.vdex
+ - /system/framework/arm/boot-core-oj.oat
+ - /system/framework/arm/boot-core-oj.vdex
+ - /system/framework/arm/boot-telephony-common.oat
+ - /system/framework/arm/boot-telephony-common.vdex
+
+
diff --git a/Moto/G6/res/xml/power_profile.xml b/Moto/G6/res/xml/power_profile.xml
new file mode 100644
index 0000000..757fd16
--- /dev/null
+++ b/Moto/G6/res/xml/power_profile.xml
@@ -0,0 +1,59 @@
+
+
+ - 0
+ - 101.431
+ - 275.550
+ - 0.606
+ - 74.462
+ - 25.088
+ - 374.399
+ - 265.769
+ - 21.412
+ - 208.332
+ - 46.310
+
+ 33.079
+ 30
+ 25
+ 20
+ 15
+ 10
+ 5
+ 1.090
+
+
+ 4
+ 4
+
+
+ 652800
+ 1036800
+ 1401600
+ 1689600
+ 1843200
+
+
+ 83.618
+ 44.892
+ 88.010
+ 154.353
+ 257.340
+
+
+ 652800
+ 1036800
+ 1401600
+ 1689600
+ 1843200
+
+
+ 83.618
+ 44.892
+ 88.010
+ 154.353
+ 257.340
+
+ - 3.993
+ - 2.969
+ - 3000
+
\ No newline at end of file
diff --git a/overlay.mk b/overlay.mk
index 4b79bc2..86395d2 100644
--- a/overlay.mk
+++ b/overlay.mk
@@ -24,6 +24,7 @@ PRODUCT_PACKAGES += \
treble-overlay-devinputjack \
treble-overlay-oneplus-op6 \
treble-overlay-moto-g6plus \
+ treble-overlay-moto-g6 \
treble-overlay-webview \
treble-overlay-wifi5g \
treble-overlay-samsung-s9-systemui \
From 4ca621d31fe48b62f65b6d2daa94640dc3073451 Mon Sep 17 00:00:00 2001
From: Wabo0 <3121220+Wabo0@users.noreply.github.com>
Date: Wed, 17 Oct 2018 23:00:33 +0200
Subject: [PATCH 2/5] Reenabled night display
---
Moto/G6/res/values/config.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Moto/G6/res/values/config.xml b/Moto/G6/res/values/config.xml
index cfad332..91952fc 100644
--- a/Moto/G6/res/values/config.xml
+++ b/Moto/G6/res/values/config.xml
@@ -10,7 +10,7 @@
200
40
true
- false
+ true
true
From dc8bf866e4a8d3f40ba9ae8df1faaee922c0d294 Mon Sep 17 00:00:00 2001
From: Wabo0 <3121220+Wabo0@users.noreply.github.com>
Date: Mon, 22 Oct 2018 10:16:24 +0200
Subject: [PATCH 3/5] Update config.xml
removed night display line
---
Moto/G6/res/values/config.xml | 1 -
1 file changed, 1 deletion(-)
diff --git a/Moto/G6/res/values/config.xml b/Moto/G6/res/values/config.xml
index 91952fc..38a03a2 100644
--- a/Moto/G6/res/values/config.xml
+++ b/Moto/G6/res/values/config.xml
@@ -10,7 +10,6 @@
200
40
true
- true
true
From 5ac58de113e0649e98db5ef8edf8c2e3fdaf3b10 Mon Sep 17 00:00:00 2001
From: Wabo0 <3121220+Wabo0@users.noreply.github.com>
Date: Mon, 22 Oct 2018 10:24:17 +0200
Subject: [PATCH 4/5] set unique priorities
---
Moto/G6/AndroidManifest.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Moto/G6/AndroidManifest.xml b/Moto/G6/AndroidManifest.xml
index fba1328..2bfee3e 100644
--- a/Moto/G6/AndroidManifest.xml
+++ b/Moto/G6/AndroidManifest.xml
@@ -5,6 +5,6 @@
From 5ec48075f794b6d59d891f633a8275bb7fad2026 Mon Sep 17 00:00:00 2001
From: Wabo0 <[omitted]>
Date: Thu, 1 Nov 2018 12:01:17 +0100
Subject: [PATCH 5/5] fingerprint and generic device name
---
Moto/G6/AndroidManifest.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Moto/G6/AndroidManifest.xml b/Moto/G6/AndroidManifest.xml
index 2bfee3e..3256805 100644
--- a/Moto/G6/AndroidManifest.xml
+++ b/Moto/G6/AndroidManifest.xml
@@ -3,8 +3,8 @@
android:versionCode="1"
android:versionName="1.0">