Add Tecno Pova 4 non-Pro variant overlay and clean up messy commit pile

This commit is contained in:
LordDemecrius83 2023-11-03 22:28:07 +08:00
parent fb4e637e65
commit 40d3370610
17 changed files with 523 additions and 12 deletions

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-tecno-pova4-systemui
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.tecno.pova4.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="TECNO-LG7n"
android:priority="636"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2017, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
</resources>

View file

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor.
By default, this is set to @null to use the horizontal center of the screen. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_y">960px</dimen>
<!-- Location on the screen of the center of the physical power button. This is a reasonable
default that should be overridden by device-specific overlays. -->
<dimen name="physical_power_button_center_screen_location_y">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>
<dimen name="rounded_corner_content_padding">47.0px</dimen>
<dimen name="status_bar_padding_end">4.0dip</dimen>
<dimen name="status_bar_padding_start">4.0dip</dimen>
</resources>

8
Tecno/Pova4/Android.mk Normal file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-tecno-pova4
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.tecno.pova4"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="TECNO-LG7n"
android:priority="636"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28dp</dimen>
</resources>

View file

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="navigation_bar_height">40dp</dimen>
<dimen name="quick_qs_offset_height">36dp</dimen>
<dimen name="navigation_bar_height_landscape">40dp</dimen>
<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>ethernet,9,9,9,-1,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,-1,-1,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>
<item>mobile_mcx,1001,0,3,60000,true</item>
<item>mobile_xcap,1002,0,3,60000,true</item>
<item>mobile_rcs,2001,0,3,60000,true</item>
<item>mobile_bip,2002,0,3,60000,true</item>
<item>mobile_vsim,2003,0,-1,60000,true</item>
</string-array>
<string-array name="config_defaultPinnerServiceFiles">
<item>/apex/com.android.art/javalib/core-oj.jar</item>
<item>/apex/com.android.art/javalib/core-libart.jar</item>
<item>/system/framework/framework.jar</item>
<item>/system/framework/services.jar</item>
<item>/system/bin/surfaceflinger</item>
<item>/system_ext/priv-app/SystemUI/SystemUI.apk</item>
</string-array>
<string-array name="config_biometric_sensors">
<item>0:2:15</item>
</string-array>
<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_tether_bluetooth_regexs">
<item>bt-pan</item>
<item>bt-dun</item>
</string-array>
<string-array name="config_tether_usb_regexs">
<item>rndis\\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>ap\\d</item>
</string-array>
<string-array name="config_ephemeralResolverPackage">
<item>com.google.android.gms</item>
</string-array>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
<bool name="config_device_volte_available">false</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_device_vt_available">false</bool>
<bool name="config_device_wfc_ims_available">false</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">3000</integer>
<item type="dimen" name="config_screenBrightnessSettingDefaultFloat">0.4</item>
<item type="dimen" name="config_screenBrightnessSettingMaximumFloat">1.0</item>
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.003921569</item>
<integer name="config_defaultPeakRefreshRate">91</integer>
<integer name="config_defaultRefreshRate">91</integer>
<integer name="config_screenBrightnessDoze">5</integer>
</resources>

View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2017, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">36.0dp</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">36.0dp</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">28dp</dimen>
<!-- Rounded Corner Radius -->
<dimen name="rounded_corner_radius">70.0px</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -24,0 L -24,36 L 24,36 L 24,0 Z @dp</string>
</resources>

View file

@ -0,0 +1,207 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">0.1</item>
<item name="screen.on">85.78</item>
<item name="screen.full">442.47</item>
<item name="bluetooth.active">22.73</item>
<item name="bluetooth.on">0.7</item>
<item name="wifi.on">0.21</item>
<item name="wifi.active">235.52</item>
<item name="wifi.scan">67.86</item>
<item name="audio">17.9</item>
<item name="video">89.15</item>
<item name="camera.flashlight">295.4</item>
<item name="camera.avg">756.52</item>
<item name="gps.on">32.27</item>
<item name="radio.active">15</item>
<item name="radio.scanning">36.25</item>
<array name="radio.on">
<value>5.98</value>
<value>5.98</value>
</array>
<array name="cpu.clusters.cores">
<value>6</value>
<value>2</value>
</array>
<array name="cpu.speeds.cluster0">
<value>500000</value>
<value>774000</value>
<value>875000</value>
<value>975000</value>
<value>1075000</value>
<value>1175000</value>
<value>1275000</value>
<value>1375000</value>
<value>1500000</value>
<value>1618000</value>
<value>1666000</value>
<value>1733000</value>
<value>1800000</value>
<value>1866000</value>
<value>1933000</value>
<value>2000000</value>
</array>
<array name="cpu.speeds.cluster1">
<value>774000</value>
<value>835000</value>
<value>919000</value>
<value>1002000</value>
<value>1085000</value>
<value>1169000</value>
<value>1308000</value>
<value>1419000</value>
<value>1530000</value>
<value>1670000</value>
<value>1733000</value>
<value>1796000</value>
<value>1860000</value>
<value>1923000</value>
<value>1986000</value>
<value>2050000</value>
</array>
<array name="cpu.active.cluster0">
<value>6.76</value>
<value>9.47</value>
<value>11.18</value>
<value>12.95</value>
<value>15.27</value>
<value>18.73</value>
<value>22.00</value>
<value>25.15</value>
<value>30.29</value>
<value>35.78</value>
<value>38.37</value>
<value>41.35</value>
<value>45.00</value>
<value>49.04</value>
<value>53.58</value>
<value>55.65</value>
</array>
<array name="cpu.active.cluster1">
<value>34.42</value>
<value>36.76</value>
<value>42.69</value>
<value>49.41</value>
<value>56.50</value>
<value>69.44</value>
<value>80.24</value>
<value>107.99</value>
<value>129.97</value>
<value>156.56</value>
<value>168.90</value>
<value>176.07</value>
<value>178.23</value>
<value>200.59</value>
<value>203.88</value>
<value>210.66</value>
</array>
<item name="cpu.idle">6.31</item>
<item name="cpu.suspend">5</item>
<item name="cpu.active">9.89</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>500000</value>
<value>774000</value>
<value>875000</value>
<value>975000</value>
<value>1075000</value>
<value>1175000</value>
<value>1275000</value>
<value>1375000</value>
<value>1500000</value>
<value>1618000</value>
<value>1666000</value>
<value>1733000</value>
<value>1800000</value>
<value>1866000</value>
<value>1933000</value>
<value>2000000</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>774000</value>
<value>835000</value>
<value>919000</value>
<value>1002000</value>
<value>1085000</value>
<value>1169000</value>
<value>1308000</value>
<value>1419000</value>
<value>1530000</value>
<value>1670000</value>
<value>1733000</value>
<value>1796000</value>
<value>1860000</value>
<value>1923000</value>
<value>1986000</value>
<value>2050000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>6.76</value>
<value>9.47</value>
<value>11.18</value>
<value>12.95</value>
<value>15.27</value>
<value>18.73</value>
<value>22.00</value>
<value>25.15</value>
<value>30.29</value>
<value>35.78</value>
<value>38.37</value>
<value>41.35</value>
<value>45.00</value>
<value>49.04</value>
<value>53.58</value>
<value>55.65</value>
</array>
<array name="cpu.core_power.cluster1">
<value>34.42</value>
<value>36.76</value>
<value>42.69</value>
<value>49.41</value>
<value>56.50</value>
<value>69.44</value>
<value>80.24</value>
<value>107.99</value>
<value>129.97</value>
<value>156.56</value>
<value>168.90</value>
<value>176.07</value>
<value>178.23</value>
<value>200.59</value>
<value>203.88</value>
<value>210.66</value>
</array>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">6000</item>
<item name="wifi.controller.idle">15.2</item>
<item name="wifi.controller.rx">296.22</item>
<item name="wifi.controller.tx">426.91</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">4.0</item>
<array name="wifi.batchedscan">
<value>30.7</value>
<value>30.7</value>
<value>30.7</value>
<value>30.7</value>
<value>30.7</value>
</array>
<item name="modem.controller.sleep">0</item>
<item name="modem.controller.idle">96.36</item>
<item name="modem.controller.rx">676.3</item>
<array name="modem.controller.tx">
<value>676.3</value>
<value>430.7</value>
<value>157.3</value>
<value>111.2</value>
<value>106.4</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>

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-tecno-pova4pro-systemui
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.tecno.pova4pro.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="TECNO-LG8n"
android:priority="634"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor.
By default, this is set to @null to use the horizontal center of the screen. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_y">960px</dimen>
<!-- Location on the screen of the center of the physical power button. This is a reasonable
default that should be overridden by device-specific overlays. -->
<dimen name="physical_power_button_center_screen_location_y">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>
<dimen name="rounded_corner_content_padding">47.0px</dimen>
<dimen name="status_bar_padding_end">4.0dip</dimen>
<dimen name="status_bar_padding_start">4.0dip</dimen>
</resources>

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28dp</dimen>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View file

@ -24,15 +24,12 @@
<item>mobile_vsim,2003,0,-1,60000,true</item>
</string-array>
<string-array name="config_defaultPinnerServiceFiles">
<item>/system/framework/arm/boot-mediatek-framework.vdex</item>
<item>/system/lib/libjavacrypto.so</item>
<item>/system/lib/libhidltransport.so</item>
<item>/system/framework/arm/boot-core-libart.oat</item>
<item>/system/framework/arm/boot-conscrypt.oat</item>
<item>/system/framework/arm/boot-core-libart.vdex</item>
<item>/system/framework/arm/boot-ext.vdex</item>
<item>/system/framework/arm/boot.vdex</item>
<item>/system/framework/arm/boot-framework.vdex</item>
<item>/apex/com.android.art/javalib/core-oj.jar</item>
<item>/apex/com.android.art/javalib/core-libart.jar</item>
<item>/system/framework/framework.jar</item>
<item>/system/framework/services.jar</item>
<item>/system/bin/surfaceflinger</item>
<item>/system_ext/priv-app/SystemUI/SystemUI.apk</item>
</string-array>
<string-array name="config_biometric_sensors">
<item>0:2:15</item>

View file

@ -22,8 +22,8 @@
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">108px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="status_bar_height_landscape">24dp</dimen>
<!-- Rounded Corner Radius -->
<dimen name="rounded_corner_radius">36dp</dimen>
<dimen name="rounded_corner_radius">36.0dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -24,0 L -24,36 L 24,36 L 24,0 Z @dp</string>
</resources>

View file

@ -291,7 +291,10 @@ PRODUCT_PACKAGES += \
treble-overlay-teclast-t30 \
treble-overlay-tecno-camon11 \
treble-overlay-tecno-camon20pro4g \
treble-overlay-tecno-pova4 \
treble-overlay-tecno-pova4-systemui \
treble-overlay-tecno-pova4pro \
treble-overlay-tecno-pova4pro-systemui \
treble-overlay-tecno-spark5 \
treble-overlay-tecno-spark6 \
treble-overlay-telephony-caf-ims \