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

treble-overlay-ulefone-Armor12S|Armor8Pro #745

Open
wants to merge 13 commits into
base: pie
Choose a base branch
from
8 changes: 8 additions & 0 deletions Ulefone/Armor12S/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-ulefone-Armor12S
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Ulefone/Armor12S/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.ulefone.Armor12S"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+Ulefone/Armor_12S/Armor_12S*"
android:priority="983"
android:isStatic="true" />
</manifest>
4 changes: 4 additions & 0 deletions Ulefone/Armor12S/res/values-land/dimens.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="quick_qs_offset_height">36.0dip</dimen>
</resources>
46 changes: 46 additions & 0 deletions Ulefone/Armor12S/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>8</item>
<item>64</item>
<item>98</item>
<item>104</item>
<item>110</item>
<item>116</item>
<item>122</item>
<item>128</item>
<item>134</item>
<item>182</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>128</item>
<item>256</item>
<item>384</item>
<item>512</item>
<item>640</item>
<item>768</item>
<item>896</item>
<item>1024</item>
<item>2048</item>
<item>4096</item>
<item>6144</item>
<item>8192</item>
<item>10240</item>
<item>12288</item>
<item>14336</item>
<item>16384</item>
<item>18432</item>
</integer-array>
<string-array name="config_biometric_sensors">
<item>0:2:15</item>
<item>1:8:4095</item>
</string-array>
</resources>
9 changes: 9 additions & 0 deletions Ulefone/Armor12S/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<bool name="config_hotswapCapable">false</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_showNavigationBar">true</bool>
</resources>
8 changes: 8 additions & 0 deletions Ulefone/Armor12S/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="quick_qs_offset_height">68.0dip</dimen>
<dimen name="status_bar_height_landscape">24.0dip</dimen>
<dimen name="status_bar_height_portrait">24.0dip</dimen>
<item type="dimen" name="config_screenBrightnessSettingMaximumFloat">1.0</item>
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.0</item>
</resources>
5 changes: 5 additions & 0 deletions Ulefone/Armor12S/res/values/integers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_defaultPeakRefreshRate">61</integer>
<integer name="config_defaultRefreshRate">61</integer>
</resources>
5 changes: 5 additions & 0 deletions Ulefone/Armor12S/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_mainBuiltInDisplayCutout">m55,0l-1,0a8.322,8.322 0 0 0 -1.588,0.35a18.143,18.143 0 0 0 -14.09,15.742l0,0.078c-2.308,20.466 -19.178,35.83 -39.322,35.83c-20.034,0 -37.065,-15.4 -39.377,-35.868l-0.007,-0.04a18.143,18.143 0 0 0 -14.09,-15.742s-2.301,-0.35 -2.526,-0.35l112,0z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">@string/config_mainBuiltInDisplayCutout</string>
</resources>
140 changes: 140 additions & 0 deletions Ulefone/Armor12S/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">0.1</item>
<item name="screen.on">60</item>
<item name="screen.full">199</item>
<item name="bluetooth.active">32.8</item>
<item name="bluetooth.on">1.68</item>
<item name="wifi.on">0.4</item>
<item name="wifi.active">225.85</item>
<item name="wifi.scan">21.5</item>
<item name="audio">15.3</item>
<item name="video">63.1</item>
<item name="camera.flashlight">123</item>
<item name="camera.avg">410</item>
<item name="gps.on">29</item>
<item name="radio.active">90</item>
<item name="radio.scanning">116.3</item>
<array name="radio.on">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.speeds.cluster0">
<value>400000</value>
</array>
<array name="cpu.active.cluster0">
<value>0.1</value>
</array>
<item name="cpu.idle">3.7</item>
<item name="cpu.suspend">5</item>
<item name="cpu.active">2.55</item>. <item name="cpu.cluster_power.cluster0">2.11</item>
<item name="cpu.cluster_power.cluster1">2.22</item>
<array name="cpu.core_speeds.cluster0">
<value>900000</value>
<value>979000</value>
<value>1085000</value>
<value>1218000</value>
<value>1351000</value>
<value>1484000</value>
<value>1617000</value>
<value>1750000</value>
<value>1814000</value>
<value>1879000</value>
<value>1944000</value>
<value>2009000</value>
<value>2074000</value>
<value>2139000</value>
<value>2215000</value>
<value>2301000</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>400000</value>
<value>501000</value>
<value>542000</value>
<value>643000</value>
<value>745000</value>
<value>846000</value>
<value>948000</value>
<value>1050000</value>
<value>1138000</value>
<value>1226000</value>
<value>1314000</value>
<value>1402000</value>
<value>1491000</value>
<value>1579000</value>
<value>1682000</value>
<value>1800000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>74</value>
<value>77</value>
<value>81</value>
<value>85</value>
<value>89</value>
<value>92</value>
<value>94</value>
<value>97</value>
<value>100</value>
<value>104</value>
<value>107</value>
<value>109</value>
<value>113</value>
<value>116</value>
<value>121</value>
<value>125</value>
</array>
<array name="cpu.core_power.cluster1">
<value>29</value>
<value>32</value>
<value>38</value>
<value>47</value>
<value>57</value>
<value>69</value>
<value>74</value>
<value>77</value>
<value>81</value>
<value>85</value>
<value>89</value>
<value>92</value>
<value>94</value>
<value>97</value>
<value>100</value>
<value>104</value>
</array>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">5180</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>
8 changes: 8 additions & 0 deletions Ulefone/Armor8Pro/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-ulefone-Armor8Pro
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Ulefone/Armor8Pro/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.ulefone.Armor8Pro"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+Ulefone/Armor_8_Pro*"
android:priority="984"
android:isStatic="true" />
</manifest>
42 changes: 42 additions & 0 deletions Ulefone/Armor8Pro/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>8</item>
<item>64</item>
<item>98</item>
<item>104</item>
<item>110</item>
<item>116</item>
<item>122</item>
<item>128</item>
<item>134</item>
<item>182</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>128</item>
<item>256</item>
<item>384</item>
<item>512</item>
<item>640</item>
<item>768</item>
<item>896</item>
<item>1024</item>
<item>2048</item>
<item>4096</item>
<item>6144</item>
<item>8192</item>
<item>10240</item>
<item>12288</item>
<item>14336</item>
<item>16384</item>
<item>18432</item>
</integer-array>
</resources>
8 changes: 8 additions & 0 deletions Ulefone/Armor8Pro/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_intrusiveNotificationLed">true</bool>
</resources>
8 changes: 8 additions & 0 deletions Ulefone/Armor8Pro/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="dimen" name="config_screenBrightnessSettingMaximumFloat">1.0</item>
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.0</item>
<dimen name="quick_qs_offset_height">68.0dip</dimen>
<dimen name="status_bar_height_landscape">28.0dip</dimen>
<dimen name="status_bar_height_portrait">28.0dip</dimen>
</resources>
4 changes: 4 additions & 0 deletions Ulefone/Armor8Pro/res/values/integers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_bluetooth_max_connected_audio_devices">1</integer>
</resources>
4 changes: 4 additions & 0 deletions Ulefone/Armor8Pro/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_mainBuiltInDisplayCutout">m93,0l-0.82143,0a6.83593,8.322 0 0 0 -1.30443,0.35a14.90318,18.143 0 0 0 -11.57393,15.742l0,0.078c-1.89586,20.466 -15.75336,35.83 -32.30021,35.83c-16.4565,0 -30.44625,-15.4 -32.34539,-35.868l-0.00575,-0.04a14.90318,18.143 0 0 0 -11.57393,-15.742s-1.89011,-0.35 -2.07493,-0.35l92,0z</string>
</resources>
Loading