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

Add overlay for Tecno spark7pro #732

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
2 changes: 1 addition & 1 deletion Tecno/Spark5/Android.mk → Tecno/Spark7pro/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-tecno-spark5
LOCAL_PACKAGE_NAME := treble-overlay-tecno-spark7pro
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You removed the makefile for spark5...?

LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
Expand Down
6 changes: 6 additions & 0 deletions Tecno/Spark7pro/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="me.phh.treble.overlay.tecno.spark7pro" platformBuildVersionCode="30" platformBuildVersionName="11">
<application android:extractNativeLibs="false"/>
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="30"/>
<overlay android:priority="295" android:targetPackage="android" android:isStatic="true" android:requiredSystemPropertyValue="+TECNO/KF8-GL*"/>
</manifest>
47 changes: 47 additions & 0 deletions Tecno/Spark7pro/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="config_biometric_sensors">
<item>0:2:15</item>
</array>
<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>
</array>
<array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
<item>bt-dun</item>
</array>
<array name="config_tether_usb_regexs">
<item>rndis\\d</item>
</array>
<array name="config_tether_wifi_regexs">
<item>ap\\d</item>
</array>
<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>
</array>
</resources>
15 changes: 15 additions & 0 deletions Tecno/Spark7pro/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_device_volte_available">false</bool>
<bool name="config_device_vt_available">false</bool>
<bool name="config_device_wfc_ims_available">false</bool>
<bool name="config_dynamic_bind_ims">true</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="config_wifi_dual_band_support">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
</resources>
4 changes: 4 additions & 0 deletions Tecno/Spark7pro/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_autoBrightnessDarkeningLightDebounce">3000</integer>
</resources>
5 changes: 5 additions & 0 deletions Tecno/Spark7pro/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_ims_package">com.mediatek.ims</string>
<string name="config_mainBuiltInDisplayCutout">M -360,0 L -360,76 L -280,76 L -280,0 Z</string>
</resources>
282 changes: 282 additions & 0 deletions Tecno/Spark7pro/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
<?xml version="1.0" encoding="utf-8"?>
<device xmlns:android="http://schemas.android.com/apk/res/android" name="Android">
<item name="ambient.on">0.1
</item>
<item name="screen.on">69.55
</item>
<item name="screen.full">372.97
</item>
<item name="bluetooth.active">18.97
</item>
<item name="bluetooth.on">0.83
</item>
<item name="wifi.on">0.15
</item>
<item name="wifi.active">291.5
</item>
<item name="wifi.scan">36.02
</item>
<item name="audio">24.06
</item>
<item name="video">57.4
</item>
<item name="camera.flashlight">128.09
</item>
<item name="camera.avg">769.89
</item>
<item name="gps.on">35.39
</item>
<item name="radio.active">15
</item>
<item name="radio.scanning">28.44
</item>
<array name="radio.on">
<value>3.05
</value>
<value>3.05
</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>850000
</value>
<value>900000
</value>
<value>950000
</value>
<value>999000
</value>
<value>1050000
</value>
<value>1100000
</value>
<value>1175000
</value>
<value>1275000
</value>
<value>1325000
</value>
<value>1375000
</value>
<value>1450000
</value>
<value>1500000
</value>
<value>1625000
</value>
<value>1800000
</value>
</array>
<array name="cpu.speeds.cluster1">
<value>850000
</value>
<value>909000
</value>
<value>998000
</value>
<value>1087000
</value>
<value>1176000
</value>
<value>1295000
</value>
<value>1354000
</value>
<value>1443000
</value>
<value>1532000
</value>
<value>1621000
</value>
<value>1710000
</value>
<value>1800000
</value>
<value>1850000
</value>
<value>1900000
</value>
<value>1950000
</value>
<value>2000000
</value>
</array>
<array name="cpu.active.cluster0">
<value>7.97
</value>
<value>10.92
</value>
<value>12.31
</value>
<value>14.27
</value>
<value>15.09
</value>
<value>17.33
</value>
<value>19.52
</value>
<value>21.17
</value>
<value>24.15
</value>
<value>27.77
</value>
<value>30.33
</value>
<value>33.50
</value>
<value>37.52
</value>
<value>39.83
</value>
<value>45.35
</value>
<value>49.36
</value>
</array>
<array name="cpu.active.cluster1">
<value>22.64
</value>
<value>27.78
</value>
<value>31.47
</value>
<value>38.23
</value>
<value>44.37
</value>
<value>53.14
</value>
<value>60.46
</value>
<value>68.39
</value>
<value>78.25
</value>
<value>88.69
</value>
<value>101.35
</value>
<value>112.58
</value>
<value>122.47
</value>
<value>130.81
</value>
<value>143.09
</value>
<value>151.02
</value>
</array>
<item name="cpu.idle">3.74
</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>300000
</value>
<value>1000000
</value>
<value>2000000
</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>300000
</value>
<value>1000000
</value>
<value>2500000
</value>
<value>3000000
</value>
</array>
<array name="cpu.core_power.cluster0">
<value>10
</value>
<value>20
</value>
<value>30
</value>
</array>
<array name="cpu.core_power.cluster1">
<value>25
</value>
<value>35
</value>
<value>50
</value>
<value>60
</value>
</array>
<array name="memory.bandwidths">
<value>22.7
</value>
</array>
<item name="battery.capacity">5000
</item>
<item name="wifi.controller.idle">15.2
</item>
<item name="wifi.controller.rx">220.55
</item>
<item name="wifi.controller.tx">362.94
</item>
<array name="wifi.controller.tx_levels"/>
<item name="wifi.controller.voltage">0
</item>
<array name="wifi.batchedscan">
<value>36.02
</value>
<value>36.02
</value>
<value>36.02
</value>
<value>36.02
</value>
<value>36.02
</value>
</array>
<item name="modem.controller.sleep">0
</item>
<item name="modem.controller.idle">17
</item>
<item name="modem.controller.rx">106.4
</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>
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ PRODUCT_PACKAGES += \
treble-overlay-tecno-camon11 \
treble-overlay-tecno-spark5 \
treble-overlay-tecno-spark6 \
treble-overlay-tecno-spark7pro \
treble-overlay-telephony-caf-ims \
treble-overlay-telephony-hw-ims \
treble-overlay-telephony-mtk-ims \
Expand Down