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 Xiaomi 12S Ultra (thor) and updated overlay for Lenovo Q706F #109

Closed
wants to merge 14 commits into from
25 changes: 0 additions & 25 deletions Lenovo/Q706F/res/values/bools.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>77</item>
<item>77</item>
<item>120</item>
<item>144</item>
<item>198</item>
<item>230</item>
<item>247</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>10</item>
<item>60</item>
<item>210</item>
<item>350</item>
<item>420</item>
<item>1000</item>
<item>5000</item>
</integer-array>
<integer-array name="config_availableColorModes">
<item>0</item>
<item>1</item>
Expand Down Expand Up @@ -65,23 +84,28 @@
<item>0,1</item>
<item>7,1</item>
</string-array>
<integer-array name="config_autoBrightnessLevels">
<item>10</item>
<item>60</item>
<item>210</item>
<item>350</item>
<item>420</item>
<item>1000</item>
<item>5000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>77</item>
<item>77</item>
<item>120</item>
<item>144</item>
<item>198</item>
<item>230</item>
<item>247</item>
<item>255</item>
</integer-array>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_speed_up_audio_on_mt_calls">true</bool>
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">true</bool>
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<integer name="config_defaultPeakRefreshRate">240</integer>
<integer name="config_defaultRefreshRate">0</integer>
<integer name="config_screenBrightnessDoze">17</integer>
</resources>
6 changes: 0 additions & 6 deletions Lenovo/Q706F/res/values/integers.xml

This file was deleted.

162 changes: 0 additions & 162 deletions Lenovo/Q706F/res/xml/power_profile.xml

This file was deleted.

8 changes: 8 additions & 0 deletions Xiaomi/Mi12SUltra/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-Xiaomi-thor
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 Xiaomi/Mi12SUltra/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.Xiaomi.thor"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*Xiaomi/thor*"
android:priority="379"
android:isStatic="true" />
</manifest>
Loading