Skip to content

Commit

Permalink
Introduce XZ3 (akatsuki) overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulbouchara authored and phhusson committed Mar 31, 2019
1 parent 64bc8e3 commit bd64c0a
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sony/XZ3/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-XZ3
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Sony/XZ3/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.sony.XZ3"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+Sony/H94*"
android:priority="23"
android:isStatic="true" />
</manifest>
160 changes: 160 additions & 0 deletions Sony/XZ3/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>5</item>
<item>5</item>
<item>7</item>
<item>13</item>
<item>27</item>
<item>37</item>
<item>43</item>
<item>97</item>
<item>113</item>
<item>133</item>
<item>143</item>
<item>157</item>
<item>200</item>
<item>343</item>
<item>487</item>
<item>600</item>
<item>720</item>
<item>807</item>
<item>850</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
<item>3</item>
<item>5</item>
<item>8</item>
<item>10</item>
<item>50</item>
<item>100</item>
<item>200</item>
<item>300</item>
<item>500</item>
<item>1000</item>
<item>3000</item>
<item>5000</item>
<item>7000</item>
<item>10000</item>
<item>30000</item>
<item>50000</item>
</integer-array>
<integer-array name="config_screenBrightnessBacklight">
<item>0</item>
<item>1</item>
<item>15</item>
<item>30</item>
<item>45</item>
<item>60</item>
<item>75</item>
<item>90</item>
<item>105</item>
<item>120</item>
<item>135</item>
<item>150</item>
<item>165</item>
<item>180</item>
<item>195</item>
<item>210</item>
<item>225</item>
<item>240</item>
<item>255</item>
</integer-array>
<array name="config_screenBrightnessNits">
<item>0</item>
<item>2</item>
<item>22.83</item>
<item>45.16</item>
<item>67.48</item>
<item>89.8</item>
<item>112.13</item>
<item>134.45</item>
<item>156.77</item>
<item>179.09</item>
<item>201.42</item>
<item>223.74</item>
<item>246.06</item>
<item>268.39</item>
<item>290.71</item>
<item>313.03</item>
<item>335.35</item>
<item>357.68</item>
<item>380</item>
</array>
<bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
<bool name="config_auto_attach_data_on_creation">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_bluetooth_hfp_inband_ringing_support">false</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_carrier_wfc_ims_available">true</bool>
<bool name="config_cellBroadcastAppLinks">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_dozePulsePickup">true</bool>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_enableAutoPowerModes">true</bool>
<bool name="config_enableBurnInProtection">true</bool>
<bool name="config_enableFusedLocationOverlay">true</bool>
<bool name="config_enableMultiUserUI">true</bool>
<bool name="config_enableNetworkLocationOverlay">false</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_intrusiveNotificationLed">true</bool>
<bool name="config_lidControlsSleep">true</bool>
<bool name="config_pinnerCameraApp">false</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_speed_up_audio_on_mt_calls">true</bool>
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<bool name="config_supportDoubleTapWake">false</bool>
<bool name="config_supportSystemNavigationKeys">false</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_sustainedPerformanceModeSupported">false</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_use_sim_language_file">true</bool>
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_enable_disconnection_debounce">true</bool>
<bool name="config_wifi_enable_wifi_firmware_debugging">false</bool>
<bool name="config_wifi_fast_bss_transition_enabled">true</bool>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">25.0%</fraction>
<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_autoPowerModeAnyMotionSensor">0</integer>
<integer name="config_bluetooth_idle_cur_ma">0</integer>
<integer name="config_bluetooth_operating_voltage_mv">0</integer>
<integer name="config_bluetooth_rx_cur_ma">0</integer>
<integer name="config_bluetooth_tx_cur_ma">0</integer>
<integer name="config_brightness_ramp_rate_fast">200</integer>
<integer name="config_brightness_ramp_rate_slow">50</integer>
<integer name="config_cameraLaunchGestureSensorType">-1</integer>
<integer name="config_lightSensorWarmupTime">0</integer>
<integer name="config_mobile_mtu">1500</integer>
<integer name="config_multiuserMaximumUsers">4</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</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>
<integer name="config_shutdownBatteryTemperature">680</integer>
</resources>
2 changes: 2 additions & 0 deletions Sony/XZ3/res/xml/apns.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<apns version="8" />
167 changes: 167 additions & 0 deletions Sony/XZ3/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">28.83</item>
<item name="screen.on">94.23</item>
<item name="screen.full">296.49</item>
<item name="bluetooth.active">0</item>
<item name="bluetooth.on">0</item>
<item name="wifi.on">1.01</item>
<item name="wifi.active">92.06</item>
<item name="wifi.scan">256.24</item>
<item name="audio">33.56</item>
<item name="video">92.85</item>
<item name="camera.flashlight">47.75</item>
<item name="camera.avg">310.54</item>
<item name="radio.active">101.25</item>
<item name="radio.scanning">10.94</item>
<array name="radio.on">
<value>4.70</value>
<value>4.70</value>
<value>4.70</value>
<value>4.70</value>
<value>4.70</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>403200</value>
<value>480000</value>
<value>576000</value>
<value>652800</value>
<value>748800</value>
<value>825600</value>
<value>902400</value>
<value>979200</value>
<value>1056000</value>
<value>1132800</value>
<value>1228800</value>
<value>1324800</value>
<value>1420800</value>
<value>1516800</value>
<value>1612800</value>
<value>1689600</value>
<value>1766400</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>825600</value>
<value>902400</value>
<value>979200</value>
<value>1056000</value>
<value>1209600</value>
<value>1286400</value>
<value>1363200</value>
<value>1459200</value>
<value>1536000</value>
<value>1612800</value>
<value>1689600</value>
<value>1766400</value>
<value>1843200</value>
<value>1920000</value>
<value>1996800</value>
<value>2092800</value>
<value>2169600</value>
<value>2246400</value>
<value>2323200</value>
<value>2400000</value>
<value>2476800</value>
<value>2553600</value>
<value>2649600</value>
</array>
<array name="cpu.core_power.cluster0">
<value>27</value>
<value>28</value>
<value>28</value>
<value>29</value>
<value>29</value>
<value>30</value>
<value>30</value>
<value>31</value>
<value>31</value>
<value>32</value>
<value>33</value>
<value>34</value>
<value>35</value>
<value>36</value>
<value>37</value>
<value>39</value>
<value>41</value>
<value>43</value>
</array>
<array name="cpu.core_power.cluster1">
<value>38</value>
<value>43</value>
<value>44</value>
<value>46</value>
<value>48</value>
<value>50</value>
<value>51</value>
<value>54</value>
<value>56</value>
<value>58</value>
<value>60</value>
<value>63</value>
<value>66</value>
<value>68</value>
<value>71</value>
<value>79</value>
<value>88</value>
<value>91</value>
<value>93</value>
<value>102</value>
<value>109</value>
<value>118</value>
<value>129</value>
</array>
<item name="cpu.suspend">0.01</item>
<item name="cpu.idle">12.20</item>
<item name="cpu.active">0.01</item>
<array name="memory.bandwidths">
<value>37.2</value>
<value>39.4</value>
<value>40.2</value>
<value>49.5</value>
<value>55.0</value>
<value>64.0</value>
<value>77.0</value>
<value>82.8</value>
<value>103.0</value>
<value>117.4</value>
<value>128.0</value>
<value>143.9</value>
</array>
<item name="battery.capacity">3200</item>
<item name="wifi.controller.idle">0.00</item>
<item name="wifi.controller.rx">5.55</item>
<item name="wifi.controller.tx">6.70</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">600.00</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.idle">0.78</item>
<item name="modem.controller.rx">80.85</item>
<array name="modem.controller.tx">
<value>75.11</value>
<value>75.11</value>
<value>75.11</value>
<value>75.11</value>
<value>75.11</value>
</array>
<item name="modem.controller.voltage">575</item>
<item name="bluetooth.controller.idle">0.01</item>
<item name="bluetooth.controller.rx">60.00</item>
<item name="bluetooth.controller.tx">46.94</item>
<item name="bluetooth.controller.voltage">600.00</item>
<array name="gps.signalqualitybased">
<value>41.05</value>
<value>10.26</value>
</array>
<item name="gps.voltage">3700</item>
</device>
Empty file added fail
Empty file.
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ PRODUCT_PACKAGES += \
treble-overlay-razer-cheryl \
treble-overlay-samsung-s9-systemui \
treble-overlay-sharp-s2 \
treble-overlay-sony-XZ3 \
treble-overlay-webview \
treble-overlay-wifi5g \
treble-overlay-xiaomi-mi6x \
Expand Down

0 comments on commit bd64c0a

Please sign in to comment.