Added Overlay for Samsung A02s
Overlay fixes notch, battery capacity, cpu speeds etc... System-UI overlay fixes status bar.
This commit is contained in:
parent
b34b88c74f
commit
24bfde2d78
8
Samsung/a02q-SystemUI/Android.mk
Normal file
8
Samsung/a02q-SystemUI/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-samsung-a02q-systemui
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Samsung/a02q-SystemUI/AndroidManifest.xml
Normal file
10
Samsung/a02q-SystemUI/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.samsung.a02q.systemui"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="com.android.systemui"
|
||||
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
|
||||
android:requiredSystemPropertyValue="+*samsung/a02q*"
|
||||
android:priority="483"
|
||||
android:isStatic="true"/>
|
||||
</manifest>
|
4
Samsung/a02q-SystemUI/res/values/config.xml
Normal file
4
Samsung/a02q-SystemUI/res/values/config.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_padding_start">32.0px</dimen>
|
||||
</resources>
|
8
Samsung/a02q/Android.mk
Normal file
8
Samsung/a02q/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-samsung-a02q
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Samsung/a02q/AndroidManifest.xml
Normal file
10
Samsung/a02q/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.samsung.a02q"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
|
||||
android:requiredSystemPropertyValue="+samsung/a02q*"
|
||||
android:priority="357"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
30
Samsung/a02q/res/values/arrays.xml
Normal file
30
Samsung/a02q/res/values/arrays.xml
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer-array name="config_autoBrightnessLcdBacklightValues">
|
||||
<item>3</item>
|
||||
<item>35</item>
|
||||
<item>53</item>
|
||||
<item>60</item>
|
||||
<item>65</item>
|
||||
<item>77</item>
|
||||
<item>115</item>
|
||||
<item>179</item>
|
||||
<item>230</item>
|
||||
<item>255</item>
|
||||
</integer-array>
|
||||
<integer-array name="config_autoBrightnessLevels">
|
||||
<item>20</item>
|
||||
<item>50</item>
|
||||
<item>100</item>
|
||||
<item>200</item>
|
||||
<item>400</item>
|
||||
<item>1000</item>
|
||||
<item>2000</item>
|
||||
<item>3000</item>
|
||||
<item>5000</item>
|
||||
</integer-array>
|
||||
<string-array name="config_tether_wifi_regexs">
|
||||
<item>wigig0</item>
|
||||
<item>wlan0</item>
|
||||
</string-array>
|
||||
</resources>
|
8
Samsung/a02q/res/values/bools.xml
Normal file
8
Samsung/a02q/res/values/bools.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="config_dozeAfterScreenOff">true</bool>
|
||||
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
|
||||
<bool name="config_setColorTransformAccelerated">true</bool>
|
||||
<bool name="config_supportAudioSourceUnprocessed">false</bool>
|
||||
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
|
||||
</resources>
|
5
Samsung/a02q/res/values/dimens.xml
Normal file
5
Samsung/a02q/res/values/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_portrait">45.0px</dimen>
|
||||
<dimen name="rounded_corner_radius">30.0px</dimen>
|
||||
</resources>
|
4
Samsung/a02q/res/values/integers.xml
Normal file
4
Samsung/a02q/res/values/integers.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="config_screenBrightnessDoze">17</integer>
|
||||
</resources>
|
4
Samsung/a02q/res/values/strings.xml
Normal file
4
Samsung/a02q/res/values/strings.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="config_mainBuiltInDisplayCutout">M 0,0 H -88 V 45 H 88 V 0 H 0 Z</string>
|
||||
</resources>
|
27
Samsung/a02q/res/xml/power_profile.xml
Normal file
27
Samsung/a02q/res/xml/power_profile.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?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">4900</item>
|
||||
<item name="battery.typical.capacity">5000</item>
|
||||
</device>
|
|
@ -190,6 +190,8 @@ PRODUCT_PACKAGES += \
|
|||
treble-overlay-samsung-S20-systemui \
|
||||
treble-overlay-samsung-S20fe \
|
||||
treble-overlay-samsung-S20fe-systemui \
|
||||
treble-overlay-samsung-a02q \
|
||||
treble-overlay-samsung-a02q-systemui \
|
||||
treble-overlay-samsung-a20 \
|
||||
treble-overlay-samsung-a20s \
|
||||
treble-overlay-samsung-a20s-systemui \
|
||||
|
|
Loading…
Reference in a new issue