From 2edd69baa5f400eec8400f898cf431780e5a8319 Mon Sep 17 00:00:00 2001 From: Nikita Bragin <87000516+x-0D@users.noreply.github.com> Date: Sat, 11 Mar 2023 13:18:44 +0000 Subject: [PATCH 1/2] Add Samsung A11 Overlay --- Samsung/A11/Android.mk | 8 +++++++ Samsung/A11/AndroidManifest.xml | 10 +++++++++ Samsung/A11/res/values/arrays.xml | 30 +++++++++++++++++++++++++++ Samsung/A11/res/values/bools.xml | 10 +++++++++ Samsung/A11/res/values/dimens.xml | 7 +++++++ Samsung/A11/res/values/integers.xml | 4 ++++ Samsung/A11/res/values/strings.xml | 4 ++++ Samsung/A11/res/xml/power_profile.xml | 27 ++++++++++++++++++++++++ overlay.mk | 1 + 9 files changed, 101 insertions(+) create mode 100644 Samsung/A11/Android.mk create mode 100644 Samsung/A11/AndroidManifest.xml create mode 100644 Samsung/A11/res/values/arrays.xml create mode 100644 Samsung/A11/res/values/bools.xml create mode 100644 Samsung/A11/res/values/dimens.xml create mode 100644 Samsung/A11/res/values/integers.xml create mode 100644 Samsung/A11/res/values/strings.xml create mode 100644 Samsung/A11/res/xml/power_profile.xml diff --git a/Samsung/A11/Android.mk b/Samsung/A11/Android.mk new file mode 100644 index 000000000..d93eec1ea --- /dev/null +++ b/Samsung/A11/Android.mk @@ -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) diff --git a/Samsung/A11/AndroidManifest.xml b/Samsung/A11/AndroidManifest.xml new file mode 100644 index 000000000..f9f2252b6 --- /dev/null +++ b/Samsung/A11/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + diff --git a/Samsung/A11/res/values/arrays.xml b/Samsung/A11/res/values/arrays.xml new file mode 100644 index 000000000..7ed4e6920 --- /dev/null +++ b/Samsung/A11/res/values/arrays.xml @@ -0,0 +1,30 @@ + + + + 3 + 35 + 53 + 60 + 65 + 77 + 112 + 174 + 235 + 255 + + + 20 + 50 + 100 + 200 + 400 + 1000 + 2000 + 3000 + 5000 + + + wigig0 + wlan0 + + diff --git a/Samsung/A11/res/values/bools.xml b/Samsung/A11/res/values/bools.xml new file mode 100644 index 000000000..fdeed08e2 --- /dev/null +++ b/Samsung/A11/res/values/bools.xml @@ -0,0 +1,10 @@ + + + true + true + false + true + true + false + true + diff --git a/Samsung/A11/res/values/dimens.xml b/Samsung/A11/res/values/dimens.xml new file mode 100644 index 000000000..1fe6abb05 --- /dev/null +++ b/Samsung/A11/res/values/dimens.xml @@ -0,0 +1,7 @@ + + + + 6.123993mm + diff --git a/Samsung/A11/res/values/integers.xml b/Samsung/A11/res/values/integers.xml new file mode 100644 index 000000000..749971d92 --- /dev/null +++ b/Samsung/A11/res/values/integers.xml @@ -0,0 +1,4 @@ + + + 17 + diff --git a/Samsung/A11/res/values/strings.xml b/Samsung/A11/res/values/strings.xml new file mode 100644 index 000000000..b82150299 --- /dev/null +++ b/Samsung/A11/res/values/strings.xml @@ -0,0 +1,4 @@ + + + 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 + diff --git a/Samsung/A11/res/xml/power_profile.xml b/Samsung/A11/res/xml/power_profile.xml new file mode 100644 index 000000000..0467de2b5 --- /dev/null +++ b/Samsung/A11/res/xml/power_profile.xml @@ -0,0 +1,27 @@ + + + 63 + 261 + + 200000 + 499200 + 533333 + 800000 + 998400 + 1094400 + 1209600 + + + 151 + 169 + 177 + 195 + 259 + 307 + 353 + + 1.6 + 1.6 + 3900 + 4000 + \ No newline at end of file diff --git a/overlay.mk b/overlay.mk index 92a367449..8b631ead7 100644 --- a/overlay.mk +++ b/overlay.mk @@ -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 \ From 4449c58a18ee6ce30f4fee6852b7b381080e8528 Mon Sep 17 00:00:00 2001 From: Nikita Bragin <87000516+x-0D@users.noreply.github.com> Date: Sat, 11 Mar 2023 22:57:49 +0300 Subject: [PATCH 2/2] Update overlay.mk --- overlay.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay.mk b/overlay.mk index 8b631ead7..8aba276e0 100644 --- a/overlay.mk +++ b/overlay.mk @@ -177,7 +177,7 @@ PRODUCT_PACKAGES += \ treble-overlay-samsung-S10q \ treble-overlay-samsung-S20fe \ treble-overlay-samsung-S20fe-systemui \ - treble-overlay-samsung-a11q\ + treble-overlay-samsung-a11q \ treble-overlay-samsung-a20 \ treble-overlay-samsung-a20s \ treble-overlay-samsung-a20s-systemui \