Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDX-225 : introduce GSI Overlay for Sony Xperia 10 IV #767

Open
wants to merge 1 commit into
base: pie
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Sony/pdx225/Android.mk
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 3 additions & 0 deletions Sony/pdx225/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="me.phh.treble.overlay.sony.pdx225" android:versionCode="1" android:versionName="1.0">
<overlay android:targetPackage="android" android:requiredSystemPropertyName="ro.vendor.build.fingerprint" android:requiredSystemPropertyValue="+Sony/pdx225/pdx225*" android:priority="983" android:isStatic="true" />
</manifest>
94 changes: 94 additions & 0 deletions Sony/pdx225/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_lteDbmThresholds">
<item>-140</item>
<item>-128</item>
<item>-118</item>
<item>-108</item>
<item>-98</item>
<item>-44</item>
</integer-array>
<array name="config_minimumBrightnessCurveNits">
<item>0.0</item>
<item>50.0</item>
<item>90.0</item>
</array>
<integer-array name="config_screenBrighteningThresholds">
<item>100</item>
</integer-array>
<integer-array name="config_screenDarkeningThresholds">
<item>200</item>
</integer-array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,2,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,2,60000,true</item>
<item>mobile_hipri,5,0,3,60000,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,2,60000,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>wifi_p2p,13,1,0,-1,true</item>
<item>mobile_ia,14,0,2,-1,true</item>
<item>mobile_emergency,15,0,2,-1,true</item>
</string-array>
<string-array name="radioAttributes">
<item>1,1</item>
<item>0,1</item>
</string-array>
<integer name="config_autoBrightnessBrighteningLightDebounce">4000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">250</integer>
<integer name="config_defaultPeakRefreshRate">0</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">3</integer>
<integer name="config_screenBrightnessForVrSettingDefault">86</integer>
<integer name="config_screenBrightnessForVrSettingMaximum">255</integer>
<integer name="config_screenBrightnessForVrSettingMinimum">79</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">25.0%</fraction>
<fraction name="config_screenAutoBrightnessDozeScaleFactor">100.0%</fraction>
<bool name="config_allowAutoBrightnessWhileDozing">false</bool>
<bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<integer-array name="config_screenBrightnessBacklight">
<item>10</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item>
<item>20</item>
<item>40</item>
<item>70</item>
<item>110</item>
<item>160</item>
<item>200</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>10</item>
<item>30</item>
<item>60</item>
<item>100</item>
<item>150</item>
<item>210</item>
<item>255</item>
</integer-array>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_sustainedPerformanceModeSupported">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_enableBurnInProtection">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
</resources>
107 changes: 107 additions & 0 deletions Sony/pdx225/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">41.4</item>
<item name="screen.on">59.29</item>
<item name="screen.full">190.00</item>
<item name="bluetooth.active">0.1</item>
<item name="bluetooth.on">0.8</item>
<item name="wifi.on">5.00</item>
<item name="wifi.active">35.84</item>
<item name="wifi.scan">87.99</item>
<item name="audio">20.52</item>
<item name="video">159.96</item>
<item name="camera.flashlight">62.56</item>
<item name="camera.avg">573.58</item>
<item name="radio.active">108.48</item>
<item name="radio.scanning">24.74</item>
<array name="radio.on">
<value>4.68</value>
<value>4.68</value>
<value>4.68</value>
<value>4.68</value>
<value>4.68</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.core_speeds.cluster0">
<value>300000.0</value>
<value>614400.0</value>
<value>864000.0</value>
<value>1017600.0</value>
<value>1305600.0</value>
<value>1420800.0</value>
<value>1612800.0</value>
<value>1804800.0</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>300000.0</value>
<value>652800.0</value>
<value>902400.0</value>
<value>1056000.0</value>
<value>1401060.0</value>
<value>1536000.0</value>
<value>1804800.0</value>
<value>2016000.0</value>
</array>
<array name="cpu.core_power.cluster0">
<value>30.87</value>
<value>30.99</value>
<value>31.93</value>
<value>32.14</value>
<value>36.22</value>
<value>40.38</value>
<value>44.19</value>
<value>50.58</value>
</array>
<array name="cpu.core_power.cluster1">
<value>38.14</value>
<value>38.38</value>
<value>38.98</value>
<value>40.36</value>
<value>49.39</value>
<value>54.23</value>
<value>68.45</value>
<value>81.50</value>
</array>
<item name="cpu.suspend">2.90</item>
<item name="cpu.idle">28.88</item>
<item name="cpu.active">0.01</item>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">5000</item>
<item name="wifi.controller.idle">0.19</item>
<item name="wifi.controller.rx">148.18</item>
<item name="wifi.controller.tx">395.03</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">3700</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
<item name="modem.controller.sleep">0</item>
<item name="modem.controller.idle">0.22</item>
<item name="modem.controller.rx">84.82</item>
<array name="modem.controller.tx">
<value>84.19</value>
<value>84.19</value>
<value>84.19</value>
<value>84.19</value>
<value>84.19</value>
</array>
<item name="modem.controller.voltage">620</item>
<item name="bluetooth.controller.idle">0</item>
<item name="bluetooth.controller.rx">66.01</item>
<item name="bluetooth.controller.tx">71.79</item>
<item name="bluetooth.controller.voltage">3700</item>
<array name="gps.signalqualitybased">
<value>58.28</value>
<value>12.49</value>
</array>
<item name="gps.voltage">3.70</item>
</device>
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down