Samsung: A20s: Initial commit

Signed-off-by: Velosh <daffetyxd@gmail.com>
This commit is contained in:
Velosh 2021-12-25 17:22:05 -03:00
parent 9457ae4643
commit 3f6e02449e
No known key found for this signature in database
GPG key ID: 1380E41E22703630
7 changed files with 196 additions and 0 deletions

8
Samsung/A20s/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-samsung-a20s
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,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.samsung.a20s"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*samsung/a20s*"
android:priority="621"
android:isStatic="true"/>
</manifest>

View file

@ -0,0 +1,83 @@
<?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>
<string-array name="config_tether_dhcp_range">
<item>192.168.42.2</item>
<item>192.168.42.254</item>
<item>192.168.43.2</item>
<item>192.168.43.254</item>
<item>192.168.44.2</item>
<item>192.168.44.254</item>
<item>192.168.45.2</item>
<item>192.168.45.254</item>
<item>192.168.46.2</item>
<item>192.168.46.254</item>
<item>192.168.47.2</item>
<item>192.168.47.254</item>
<item>192.168.48.2</item>
<item>192.168.48.254</item>
<item>192.168.49.2</item>
<item>192.168.49.254</item>
<item>192.168.50.2</item>
<item>192.168.50.254</item>
<item>192.168.51.2</item>
<item>192.168.51.254</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>
<item>mobile_mms,2,0,2,240000,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>bluetooth,7,7,0,-1,true</item>
<item>ethernet,9,9,2,-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_bip,23,0,2,60000,true</item>
<item>mobile_cas,24,0,3,60000,true</item>
<item>mobile_xcap,27,0,2,60000,true</item>
<item>mobile_ent1,28,0,2,-1,true</item>
<item>mobile_mcx,32,0,2,-1,true</item>
<item>mobile_foc,30,0,2,-1,true</item>
<item>mobile_rcs,31,0,2,-1,true</item>
</string-array>
<string-array name="radioAttributes">
<item>1,1</item>
<item>0,1</item>
<item>7,1</item>
</string-array>
</resources>

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_adaptive_display_solution_enabled">false</bool>
<bool name="config_all_around_sensing_enabled">false</bool>
<bool name="config_allow_ussd_over_ims">true</bool>
<bool name="config_big_data_logging_enabled">false</bool>
<bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_camera_sound_forced">false</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_cellBroadcastAppLinks">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_enableMultiUserUI">true</bool>
<bool name="config_eye_comfort_solution_enabled">false</bool>
<bool name="config_hearing_aid_profile_supported">false</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_mdnie_scenario_control_enabled">false</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_unplugTurnsOnScreen">true</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_softap_acs_supported">false</bool>
<bool name="config_wifi_softap_ieee80211ac_supported">false</bool>
<bool name="skip_restoring_network_selection">true</bool>
</resources>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_camera_cutout_crop_size">190.0px</dimen>
<dimen name="status_bar_height_portrait">54.0px</dimen>
</resources>

View file

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

View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="battery.capacity">3900</item>
<item name="battery.typical.capacity">4000</item>
<array name="cpu.clusters.cores">
<value>8</value>
</array>
<item name="cpu.suspend">20</item>
<item name="cpu.idle">3.6</item>
<item name="cpu.active">2.55</item>
<array name="cpu.core_speeds.cluster0">
<value>652800</value>
<value>1036800</value>
<value>1401600</value>
<value>1689600</value>
<value>1804800</value>
</array>
<array name="cpu.core_power.cluster0">
<value>25</value>
<value>40</value>
<value>59</value>
<value>78</value>
<value>104</value>
</array>
<item name="screen.on">95.6</item>
<item name="screen.full">321</item>
<item name="camera.flashlight">350</item>
<item name="camera.avg">480</item>
<item name="dsp.audio">10</item>
<item name="dsp.video">48</item>
<item name="gps.on">36.2</item>
<item name="bluetooth.active">56</item>
<item name="bluetooth.on">1.1</item>
<item name="wifi.on">0.5</item>
<item name="wifi.active">160</item>
<item name="wifi.scan">13.5</item>
<item name="radio.active">60</item>
<item name="radio.scanning">1.8</item>
<array name="radio.on">
<value>6</value>
<value>5</value>
<value>4</value>
<value>3</value>
<value>3</value>
</array>
</device>