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 Camon 20 Pro 4G #53

Merged
merged 1 commit into from
Aug 28, 2023
Merged
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
8 changes: 8 additions & 0 deletions Tecno/Camon20Pro4G/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-tecno-camon20pro4g
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 Tecno/Camon20Pro4G/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.tecno.camon20pro4g"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+TECNO/CK7n*"
android:priority="439"
android:isStatic="true" />
</manifest>
4 changes: 4 additions & 0 deletions Tecno/Camon20Pro4G/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">28dp</dimen>
</resources>
122 changes: 122 additions & 0 deletions Tecno/Camon20Pro4G/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?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>/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>
</string-array>
<string-array name="config_biometric_sensors">
<item>0:2:15</item>
</string-array>
<array name="config_autoBrightnessDisplayValuesNits">
<item>4.522</item>
<item>20.246</item>
<item>55.509</item>
<item>74.653</item>
<item>82.757</item>
<item>93.15</item>
<item>117.678</item>
<item>138.666</item>
<item>164.847</item>
<item>189.157</item>
<item>207.656</item>
<item>221.191</item>
<item>277.164</item>
<item>350.798</item>
<item>391.524</item>
<item>414.81</item>
<item>434.151</item>
<item>455.291</item>
<item>490.922</item>
<item>500</item>
</array>
<integer-array name="config_autoBrightnessLevels">
<item>6</item>
<item>18</item>
<item>34</item>
<item>82</item>
<item>128</item>
<item>256</item>
<item>384</item>
<item>512</item>
<item>640</item>
<item>768</item>
<item>896</item>
<item>1536</item>
<item>2560</item>
<item>3584</item>
<item>4608</item>
<item>5632</item>
<item>7168</item>
<item>8192</item>
<item>8704</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">true</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>
<integer name="config_screenBrightnessDoze">5</integer>
<integer name="config_defaultPeakRefreshRate">121</integer>
<integer name="config_defaultRefreshRate">121</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>
</resources>
29 changes: 29 additions & 0 deletions Tecno/Camon20Pro4G/res/values/notch.xml
Original file line number Diff line number Diff line change
@@ -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">108px</dimen>
<!-- 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>
<!-- Rounded Corner Radius -->
<dimen name="rounded_corner_radius">28dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -24,0 L -24,36 L 24,36 L 24,0 Z @dp</string>
</resources>
Loading