Skip to content

Commit

Permalink
Merge branch 'phhusson:pie' into pie
Browse files Browse the repository at this point in the history
  • Loading branch information
Vgdn1942 authored Jun 2, 2024
2 parents ae971a0 + daf2718 commit 4fce04c
Show file tree
Hide file tree
Showing 1,077 changed files with 52,806 additions and 2,077 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Overlay

on:
pull_request:
branches: [pie]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check Out
uses: actions/checkout@main

- name: Prepare the environment
run: |
sudo apt -y install git-core git xmlstarlet
sudo apt update
- name: Run test scripts
run: |
cd tests
bash tests.sh
- name: Build APK's
run: |
cd build
bash build.sh
- name: Upload APK
uses: actions/upload-artifact@v4
with:
path: build/*.apk
name: Overlays
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.*.swp
.DS_Store
.idea/*
2 changes: 1 addition & 1 deletion Realme/RMX2117/Android.mk → Asus/RogPhone/Android.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-realme-rmx2117
LOCAL_PACKAGE_NAME := treble-overlay-asus-rogphone
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
Expand Down
10 changes: 10 additions & 0 deletions Asus/RogPhone/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.asus.rogphone"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*ASUS_Z01QD_1*"
android:priority="625"
android:isStatic="true" />
</manifest>
120 changes: 120 additions & 0 deletions Asus/RogPhone/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_showNavigationBar">true</bool>

<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_screenAutoBrightnessDozeScaleFactor">100.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>

<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_screenBrightnessSettingDefault">63</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">250</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">10</integer>

<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>15</item>
<item>30</item>
<item>50</item>
<item>100</item>
<item>200</item>
<item>300</item>
<item>400</item>
<item>500</item>
<item>650</item>
<item>800</item>
<item>1000</item>
<item>1500</item>
<item>2000</item>
<item>3000</item>
<item>4000</item>
<item>5000</item>
<item>7000</item>
<item>10000</item>
<item>12500</item>
<item>15000</item>
</integer-array>
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>7</item>
<item>11</item>
<item>34</item>
<item>52</item>
<item>67</item>
<item>81</item>
<item>105</item>
<item>119</item>
<item>130</item>
<item>139</item>
<item>152</item>
<item>164</item>
<item>177</item>
<item>227</item>
<item>263</item>
<item>290</item>
<item>303</item>
<item>310</item>
<item>314</item>
<item>319</item>
<item>399</item>
<item>480</item>
</integer-array>
<integer-array name="config_screenBrightnessBacklight">
<item>1</item>
<item>4</item>
<item>6</item>
<item>19</item>
<item>29</item>
<item>37</item>
<item>45</item>
<item>58</item>
<item>66</item>
<item>72</item>
<item>77</item>
<item>84</item>
<item>91</item>
<item>98</item>
<item>126</item>
<item>146</item>
<item>161</item>
<item>168</item>
<item>172</item>
<item>174</item>
<item>177</item>
<item>221</item>
<item>255</item>
</integer-array>
<integer-array name="config_screenBrightnessNits">
<item>2</item>
<item>7</item>
<item>11</item>
<item>34</item>
<item>52</item>
<item>67</item>
<item>81</item>
<item>105</item>
<item>119</item>
<item>130</item>
<item>139</item>
<item>152</item>
<item>164</item>
<item>177</item>
<item>227</item>
<item>263</item>
<item>290</item>
<item>303</item>
<item>310</item>
<item>314</item>
<item>319</item>
<item>399</item>
<item>460</item>
</integer-array>
</resources>
153 changes: 153 additions & 0 deletions Asus/RogPhone/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">0.1</item>
<item name="screen.on">129</item>
<item name="screen.full">334</item>
<item name="bluetooth.active">63.6</item>
<item name="bluetooth.on">0.3</item>
<item name="wifi.on">0.29</item>
<item name="wifi.active">6.2</item>
<item name="wifi.scan">143</item>
<item name="audio">14.1</item>
<item name="video">54</item>
<item name="camera.flashlight">412</item>
<item name="camera.avg">856.8</item>
<item name="gps.on">50</item>
<item name="radio.active">351.8</item>
<item name="radio.scanning">1.33</item>
<array name="radio.on">
<value>36.53</value>
<value>21.13</value>
<value>7.62</value>
<value>6.12</value>
<value>4.58</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.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.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.active.cluster0">
<value>45.1</value>
<value>54.3</value>
<value>55.1</value>
<value>56.3</value>
<value>61.7</value>
<value>64.6</value>
<value>62.7</value>
<value>68.1</value>
<value>71</value>
<value>74.6</value>
<value>79</value>
<value>78.2</value>
<value>84.2</value>
<value>88.6</value>
<value>97.9</value>
<value>98</value>
<value>100</value>
<value>105</value>
</array>
<array name="cpu.active.cluster1">
<value>85</value>
<value>90</value>
<value>96</value>
<value>102</value>
<value>107</value>
<value>114</value>
<value>121</value>
<value>129</value>
<value>138</value>
<value>147</value>
<value>157</value>
<value>168</value>
<value>180</value>
<value>193</value>
<value>207</value>
<value>221</value>
<value>236</value>
<value>257</value>
<value>276</value>
<value>295</value>
<value>314</value>
<value>332</value>
<value>350</value>
</array>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="cpu.awake">20</item>
<item name="cpu.idle">6</item>
<item name="battery.capacity">4000</item>
<item name="wifi.controller.idle">0</item>
<item name="wifi.controller.rx">0</item>
<item name="wifi.controller.tx">0</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">0</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</item>
<item name="modem.controller.rx">0</item>
<array name="modem.controller.tx">
<value>0</value>
<value>0</value>
<value>0</value>
<value>0</value>
<value>0</value>
</array>
<item name="modem.controller.voltage">0</item>
<array name="gps.signalqualitybased">
<value>0</value>
<value>0</value>
</array>
<item name="gps.voltage">0</item>
</device>
5 changes: 5 additions & 0 deletions Asus/ZenFone5/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFone5/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/ZenFone5Z/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFone5Z/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/ZenFoneMaxM2/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFoneMaxM2/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">57px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">57px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/ZenFoneMaxShot/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFoneMaxShot/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">81px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">81px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/Zenfone5-10/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28dp</dimen>
</resources>
Loading

0 comments on commit 4fce04c

Please sign in to comment.