Samsung: A20s: Do more changes

* Based off on Andy ones, credits to him. Highly based off on his ideas but values extracted from stock stuff or adapted.

Signed-off-by: Velosh <daffetyxd@gmail.com>
This commit is contained in:
Velosh 2021-12-26 12:09:57 -03:00
parent 4479f252d3
commit 4de8939c16
No known key found for this signature in database
GPG key ID: 1380E41E22703630
9 changed files with 117 additions and 55 deletions

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-samsung-a20s-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,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.samsung.a20s.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*samsung/a20s*"
android:priority="720"
android:isStatic="true"/>
<application></application>
</manifest>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">45px</dimen>
<dimen name="status_bar_padding_end">45px</dimen>
<dimen name="status_bar_header_height_keyguard">35dp</dimen>
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
<dimen name="rounded_corner_content_padding">4dp</dimen>
</resources>

View file

@ -7,4 +7,5 @@
android:requiredSystemPropertyValue="+*samsung/a20s*"
android:priority="621"
android:isStatic="true"/>
<application></application>
</manifest>

View file

@ -1,35 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="config_mobile_tcp_buffers">
<item>lte:2097152,4194304,8388608,524288,1572864,2097152</item>
<item>lte_ca:2097152,4194304,8388608,4096,1048576,2097152</item>
<item>umts:4094,87380,1220608,4096,16384,1220608</item>
<item>hspa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsupa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsdpa:4094,87380,1220608,4096,16384,1220608</item>
<item>hspap:4094,87380,1220608,4096,16384,1220608</item>
<item>edge:4093,26280,35040,4096,16384,35040</item>
<item>gprs:4092,8760,11680,4096,8760,11680</item>
<item>evdo:4094,87380,524288,4096,16384,262144</item>
</string-array>
<string-array name="config_tether_bluetooth_regexs">
<item>bnep\\d</item>
<item>bt-pan</item>
</string-array>
<integer-array name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>5</item>
<item>7</item>
</integer-array>
<string-array name="config_tether_usb_regexs">
<item>usb\\d</item>
<item>rndis\\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>wigig0</item>
<item>wlan0</item>
</string-array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>

View file

@ -1,24 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<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_showNavigationBar">true</bool>
<bool name="config_speed_up_audio_on_mt_calls">true</bool>
<bool name="config_supportAudioSourceUnprocessed">false</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">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="skip_restoring_network_selection">true</bool>
</resources>

View file

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<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_showNavigationBar">true</bool>
<bool name="config_speed_up_audio_on_mt_calls">true</bool>
<bool name="config_supportAudioSourceUnprocessed">false</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">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>
<string-array name="config_mobile_tcp_buffers">
<item>lte:2097152,4194304,8388608,524288,1572864,2097152</item>
<item>lte_ca:2097152,4194304,8388608,4096,1048576,2097152</item>
<item>umts:4094,87380,1220608,4096,16384,1220608</item>
<item>hspa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsupa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsdpa:4094,87380,1220608,4096,16384,1220608</item>
<item>hspap:4094,87380,1220608,4096,16384,1220608</item>
<item>edge:4093,26280,35040,4096,16384,35040</item>
<item>gprs:4092,8760,11680,4096,8760,11680</item>
<item>evdo:4094,87380,524288,4096,16384,262144</item>
</string-array>
<string-array name="config_tether_bluetooth_regexs">
<item>bnep\\d</item>
<item>bt-pan</item>
</string-array>
<integer name="config_screenBrightnessDoze">17</integer>
<integer-array name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>5</item>
<item>7</item>
</integer-array>
<string-array name="config_tether_usb_regexs">
<item>usb\\d</item>
<item>rndis\\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>wigig0</item>
<item>wlan0</item>
</string-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>6</item>
<item>6</item>
<item>6</item>
<item>11</item>
<item>79</item>
<item>95</item>
<item>141</item>
<item>183</item>
<item>200</item>
<item>219</item>
<item>255</item>
<item>255</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>5</item>
<item>6</item>
<item>50</item>
<item>100</item>
<item>500</item>
<item>1500</item>
<item>3000</item>
<item>4999</item>
<item>5000</item>
<item>19999</item>
<item>20000</item>
</integer-array>
</resources>

View file

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_portrait">54.0px</dimen>
<dimen name="rounded_corner_radius">0.0dip</dimen>
<dimen name="status_bar_height_landscape">24.0dip</dimen>
<dimen name="status_bar_height_portrait">30.0dip</dimen>
<dimen name="quick_qs_offset_height">46.0dip</dimen>
</resources>

View file

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_screenBrightnessDoze">17</integer>
</resources>