From 65877f40e281bdb64cec50fe41979db9f74c0a4b Mon Sep 17 00:00:00 2001
From: uculpbb <147956111+uculpbb@users.noreply.github.com>
Date: Sun, 15 Oct 2023 11:20:39 +1000
Subject: [PATCH] PDX-225 : introduce GSI Overlay for Sony Xperia 10 IV
---
Sony/pdx225/Android.mk | 8 ++
Sony/pdx225/AndroidManifest.xml | 3 +
Sony/pdx225/res/values/config.xml | 94 ++++++++++++++++++++++
Sony/pdx225/res/xml/power_profile.xml | 107 ++++++++++++++++++++++++++
overlay.mk | 1 +
5 files changed, 213 insertions(+)
create mode 100644 Sony/pdx225/Android.mk
create mode 100644 Sony/pdx225/AndroidManifest.xml
create mode 100644 Sony/pdx225/res/values/config.xml
create mode 100644 Sony/pdx225/res/xml/power_profile.xml
diff --git a/Sony/pdx225/Android.mk b/Sony/pdx225/Android.mk
new file mode 100644
index 000000000..e9967d119
--- /dev/null
+++ b/Sony/pdx225/Android.mk
@@ -0,0 +1,8 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_PACKAGE_NAME := treble-overlay-sony-pdx225
+LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+LOCAL_PRIVATE_PLATFORM_APIS := true
+include $(BUILD_PACKAGE)
diff --git a/Sony/pdx225/AndroidManifest.xml b/Sony/pdx225/AndroidManifest.xml
new file mode 100644
index 000000000..8e531ef2a
--- /dev/null
+++ b/Sony/pdx225/AndroidManifest.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/Sony/pdx225/res/values/config.xml b/Sony/pdx225/res/values/config.xml
new file mode 100644
index 000000000..254e09e95
--- /dev/null
+++ b/Sony/pdx225/res/values/config.xml
@@ -0,0 +1,94 @@
+
+
+
+ - -140
+ - -128
+ - -118
+ - -108
+ - -98
+ - -44
+
+
+ - 0.0
+ - 50.0
+ - 90.0
+
+
+ - 100
+
+
+ - 200
+
+
+ - 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
+
+
+ - 1,1
+ - 0,1
+
+ 4000
+ 8000
+ -1
+ 250
+ 0
+ 1
+ 10
+ 3
+ 86
+ 255
+ 79
+ 102
+ 255
+ 1
+ 300.0%
+ 25.0%
+ 100.0%
+ false
+ true
+ true
+ true
+ true
+
+ - 10
+ - 255
+
+
+ - 10
+ - 20
+ - 40
+ - 70
+ - 110
+ - 160
+ - 200
+ - 255
+
+
+ - 10
+ - 30
+ - 60
+ - 100
+ - 150
+ - 210
+ - 255
+
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+ true
+
diff --git a/Sony/pdx225/res/xml/power_profile.xml b/Sony/pdx225/res/xml/power_profile.xml
new file mode 100644
index 000000000..fd0742b7f
--- /dev/null
+++ b/Sony/pdx225/res/xml/power_profile.xml
@@ -0,0 +1,107 @@
+
+
+ - 41.4
+ - 59.29
+ - 190.00
+ - 0.1
+ - 0.8
+ - 5.00
+ - 35.84
+ - 87.99
+ - 20.52
+ - 159.96
+ - 62.56
+ - 573.58
+ - 108.48
+ - 24.74
+
+ 4.68
+ 4.68
+ 4.68
+ 4.68
+ 4.68
+
+
+ 4
+ 4
+
+
+ 300000.0
+ 614400.0
+ 864000.0
+ 1017600.0
+ 1305600.0
+ 1420800.0
+ 1612800.0
+ 1804800.0
+
+
+ 300000.0
+ 652800.0
+ 902400.0
+ 1056000.0
+ 1401060.0
+ 1536000.0
+ 1804800.0
+ 2016000.0
+
+
+ 30.87
+ 30.99
+ 31.93
+ 32.14
+ 36.22
+ 40.38
+ 44.19
+ 50.58
+
+
+ 38.14
+ 38.38
+ 38.98
+ 40.36
+ 49.39
+ 54.23
+ 68.45
+ 81.50
+
+ - 2.90
+ - 28.88
+ - 0.01
+
+ 22.7
+
+ - 5000
+ - 0.19
+ - 148.18
+ - 395.03
+
+ - 3700
+
+ .0002
+ .002
+ .02
+ .2
+ 2
+
+ - 0
+ - 0.22
+ - 84.82
+
+ 84.19
+ 84.19
+ 84.19
+ 84.19
+ 84.19
+
+ - 620
+ - 0
+ - 66.01
+ - 71.79
+ - 3700
+
+ 58.28
+ 12.49
+
+ - 3.70
+
diff --git a/overlay.mk b/overlay.mk
index 72a61ad7b..503f1c2a3 100644
--- a/overlay.mk
+++ b/overlay.mk
@@ -255,6 +255,7 @@ PRODUCT_PACKAGES += \
treble-overlay-sony-pdx213-systemui \
treble-overlay-sony-pdx215 \
treble-overlay-sony-pdx223 \
+ treble-overlay-sony-pdx225 \
treble-overlay-sprd-ims \
treble-overlay-teclast-m30 \
treble-overlay-teclast-p20hd \