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 Samsung A11 Overlay #730

Open
wants to merge 2 commits into
base: pie
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Samsung/A11/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-samsung-a11q
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 Samsung/A11/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.samsung.a11q"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+samsung/a11q*/a11q:*"
android:priority="445"
android:isStatic="true" />
</manifest>
30 changes: 30 additions & 0 deletions Samsung/A11/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -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>112</item>
<item>174</item>
<item>235</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>
10 changes: 10 additions & 0 deletions Samsung/A11/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_supportAudioSourceUnprocessed">false</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
</resources>
7 changes: 7 additions & 0 deletions Samsung/A11/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- <dimen name="status_bar_camera_side_padding">18.0px</dimen>
<dimen name="status_bar_camera_top_margin">17.0px</dimen>
<dimen name="status_bar_indicator_corner_padding">36.0px</dimen> -->
<dimen name="status_bar_height_portrait">6.123993mm</dimen>
</resources>
4 changes: 4 additions & 0 deletions Samsung/A11/res/values/integers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_screenBrightnessDoze">17</integer>
</resources>
4 changes: 4 additions & 0 deletions Samsung/A11/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_mainBuiltInDisplayCutout">M 0,0 M 34.28571428571429,9.828571428571429 a 13.6,13.6 0 1,0 0,27.2 a 13.6,13.6 0 1,0 0,-27.2 Z @dp @left</string>
</resources>
27 changes: 27 additions & 0 deletions Samsung/A11/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -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">3900</item>
<item name="battery.typical.capacity">4000</item>
</device>
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ PRODUCT_PACKAGES += \
treble-overlay-samsung-S10q \
treble-overlay-samsung-S20fe \
treble-overlay-samsung-S20fe-systemui \
treble-overlay-samsung-a11q \
treble-overlay-samsung-a20 \
treble-overlay-samsung-a20s \
treble-overlay-samsung-a20s-systemui \
Expand Down