Merge branch 'master' into master

This commit is contained in:
Василий Ковалёв 2020-10-07 20:06:59 +03:00 committed by GitHub
commit c6d2e485a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 399 additions and 10 deletions

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-asus-zenfonemaxshot
LOCAL_MODULE_PATH := $(TARGET_OUT)/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.asus.zenfonemaxshot"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*ASUS_A001D_2*"
android:priority="149"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>8</item>
<item>26</item>
<item>38</item>
<item>48</item>
<item>58</item>
<item>74</item>
<item>84</item>
<item>92</item>
<item>99</item>
<item>108</item>
<item>117</item>
<item>126</item>
<item>162</item>
<item>187</item>
<item>207</item>
<item>216</item>
<item>220</item>
<item>223</item>
<item>227</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>15</item>
<item>30</item>
<item>50</item>
<item>100</item>
<item>200</item>
<item>300</item>
<item>400</item>
<item>500</item>
<item>650</item>
<item>800</item>
<item>1000</item>
<item>1500</item>
<item>2000</item>
<item>3000</item>
<item>4000</item>
<item>5000</item>
<item>7000</item>
<item>10000</item>
<item>12500</item>
</integer-array>
<string-array name="config_gpsParameters">
<item>SUPL_HOST=supl.google.com</item>
<item>SUPL_PORT=7275</item>
<item>SUPL_VER=0x20000</item>
<item>SUPL_MODE=1</item>
<item>SUPL_ES=1</item>
<item>LPP_PROFILE=0</item>
<item>USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1</item>
<item>A_GLONASS_POS_PROTOCOL_SELECT=0</item>
<item>GPS_LOCK=0</item>
</string-array>
<array name="config_minimumBrightnessCurveNits">
<item>0.0</item>
<item>50.0</item>
<item>90.0</item>
</array>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_bluetooth_hfp_inband_ringing_support">false</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_carrier_wfc_ims_available">false</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_dynamic_bind_ims">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<bool name="config_supportDoubleTapWake">false</bool>
<bool name="config_supportSystemNavigationKeys">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</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_dual_band_support">true</bool>
<bool name="config_wifi_enable_disconnection_debounce">true</bool>
<bool name="config_wifi_enable_wifi_firmware_debugging">true</bool>
<bool name="config_wifi_fast_bss_transition_enabled">false</bool>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">250</integer>
<integer name="config_bluetooth_idle_cur_ma">0</integer>
<integer name="config_bluetooth_operating_voltage_mv">0</integer>
<integer name="config_bluetooth_rx_cur_ma">0</integer>
<integer name="config_bluetooth_tx_cur_ma">0</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>
<integer name="config_mobile_mtu">1500</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessForVrSettingDefault">86</integer>
<integer name="config_screenBrightnessForVrSettingMaximum">255</integer>
<integer name="config_screenBrightnessForVrSettingMinimum">79</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">5</integer>
<string name="config_ims_package">org.codeaurora.ims</string>
</resources>

View file

@ -0,0 +1,27 @@
<?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 in portrait -->
<dimen name="status_bar_height_portrait">81px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">81px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">81px</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M 0,0 L -58, 0 L -40.9940446283, 10.0595537175 L -35, 27 L -35, 10.0595537175 L 35.2, 10.0595537175 L 35, 27 L 40, 0 Z @dp</string>
</resources>

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="screen.on">63</item>
<item name="screen.full">261</item>
<array name="cpu.speeds">
<value>200000</value>
<value>499200</value>
<value>533333</value>
<value>800000</value>
<value>998400</value>
<value>1094400</value>
<value>1209600</value>
</array>
<array name="cpu.active">
<value>151</value>
<value>169</value>
<value>177</value>
<value>195</value>
<value>259</value>
<value>307</value>
<value>353</value>
</array>
<item name="cpu.awake">1.6</item>
<item name="cpu.idle">1.6</item>
<item name="battery.capacity">4000</item>
</device>

View file

@ -21,30 +21,25 @@
<item>10000</item>
</integer-array>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">true</bool>
<bool name="config_supportAudioSourceUnprocessed">false</bool>
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<bool name="config_sustainedPerformanceModeSupported">false</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_background_scan_support">false</bool>
<bool name="config_wifi_batched_scan_supported">false</bool>
<bool name="config_lidControlsSleep">false</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_allowAutoBrightnessWhileDozing">true</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">false</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_enableBurnInProtection">false</bool>
<bool name="config_enableBurnInProtection">true</bool>
<integer name="config_shutdownBatteryTemperature">610</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_screenBrightnessSettingDefault">44</integer>
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessDoze">2</integer>
<integer name="config_screenBrightnessDark">2</integer>
@ -54,4 +49,4 @@
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">500</integer>
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
</resources>
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This file contains misc non default vars -->
<resources>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
</resources>

8
Realme/6i/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-realme-6i
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="me.phh.treble.overlay.realme.6i"
platformBuildVersionCode="27"
platformBuildVersionName="8.1.0">
<overlay android:isStatic="true"
android:priority="139"
android:requiredSystemPropertyName="ro.build.overlay.deviceid"
android:requiredSystemPropertyValue="+RMX2002"
android:targetPackage="android"/>
</manifest>

View file

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">100.0%</fraction>
<fraction name="config_screenAutoBrightnessDozeScaleFactor">300.0%</fraction>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>8</item>
<item>22</item>
<item>48</item>
<item>78</item>
<item>128</item>
<item>206</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>45</item>
<item>1025</item>
<item>1480</item>
<item>2250</item>
<item>3300</item>
<item>10000</item>
</integer-array>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">true</bool>
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<bool name="config_sustainedPerformanceModeSupported">false</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">false</bool>
<bool name="config_lidControlsSleep">false</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_allowAutoBrightnessWhileDozing">true</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">false</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_enableBurnInProtection">true</bool>
<integer name="config_shutdownBatteryTemperature">610</integer>
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessDoze">2</integer>
<integer name="config_screenBrightnessDark">2</integer>
<integer name="config_screenBrightnessDim">2</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">500</integer>
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
</resources>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">110px</dimen>
<!-- Corner Radius -->
<dimen name="rounded_corner_radius">105px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">28.0dip</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -544,0 L -544,115 L -382,115 L -382,0 Z</string>
</resources>

View file

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">0.1</item>
<item name="screen.on">0.1</item>
<item name="screen.full">0.1</item>
<item name="bluetooth.active">0.1</item>
<item name="bluetooth.on">0.1</item>
<item name="wifi.on">0.1</item>
<item name="wifi.active">0.1</item>
<item name="wifi.scan">0.1</item>
<item name="audio">0.1</item>
<item name="video">0.1</item>
<item name="camera.flashlight">0.1</item>
<item name="camera.avg">0.1</item>
<item name="gps.on">0.1</item>
<item name="radio.active">0.1</item>
<item name="radio.scanning">0.1</item>
<array name="radio.on">
<value>0.2</value>
<value>0.1</value>
</array>
<array name="cpu.clusters.cores">
<value>1</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">0.1</item>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">1000</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>

View file

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="battery.capacity">3000</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<item name="cpu.suspend">5</item>
<item name="cpu.idle">1.11</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>
<item name="ambient.on">0.5</item>
<item name="screen.on">100</item>
<item name="screen.full">800</item>
<item name="camera.flashlight">500</item>
<item name="camera.avg">600</item>
<item name="audio">100.0</item>
<item name="video">150.0</item>
<item name="gps.on">10</item>
<item name="radio.active">60</item>
<item name="radio.scanning">3</item>
<array name="radio.on">
<value>6</value>
<value>5</value>
<value>4</value>
<value>3</value>
<value>3</value>
</array>
</device>

View file

@ -10,6 +10,7 @@ PRODUCT_PACKAGES += \
treble-overlay-asus-zenfone5z \
treble-overlay-asus-zenfonelivel1za550kl \
treble-overlay-asus-zenfonemaxm2 \
treble-overlay-asus-zenfonemaxshot \
treble-overlay-blackview-bv9500plus \
treble-overlay-bq-jeice \
treble-overlay-caf-ims \
@ -69,6 +70,7 @@ PRODUCT_PACKAGES += \
treble-overlay-oneplus-op6t-systemui \
treble-overlay-razer-cheryl \
treble-overlay-realme-6 \
treble-overlay-realme-6i \
treble-overlay-realme-x2pro \
treble-overlay-samsung-S10pq \
treble-overlay-samsung-S10q \