From cf521db3971177443dc9341617933641b78799dc Mon Sep 17 00:00:00 2001 From: Arian Date: Sat, 18 Jun 2022 13:47:01 +0200 Subject: [PATCH] sm8450-common: overlay: Add brightness levels Change-Id: I048d8899bbf9f5e79ae11cd923434312e3af5a8d --- common.mk | 1 + overlay/FrameworksResXiaomi/Android.bp | 10 ++++++++ .../FrameworksResXiaomi/AndroidManifest.xml | 10 ++++++++ .../FrameworksResXiaomi/res/values/config.xml | 23 +++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 overlay/FrameworksResXiaomi/Android.bp create mode 100644 overlay/FrameworksResXiaomi/AndroidManifest.xml create mode 100644 overlay/FrameworksResXiaomi/res/values/config.xml diff --git a/common.mk b/common.mk index 80cbd46..3e5d357 100644 --- a/common.mk +++ b/common.mk @@ -77,6 +77,7 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ FrameworksResTarget_Vendor \ + FrameworksResXiaomi \ WifiResTarget \ WifiResTarget_spf diff --git a/overlay/FrameworksResXiaomi/Android.bp b/overlay/FrameworksResXiaomi/Android.bp new file mode 100644 index 0000000..95a789b --- /dev/null +++ b/overlay/FrameworksResXiaomi/Android.bp @@ -0,0 +1,10 @@ +// +// Copyright (C) 2022 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "FrameworksResXiaomi", + vendor: true, +} diff --git a/overlay/FrameworksResXiaomi/AndroidManifest.xml b/overlay/FrameworksResXiaomi/AndroidManifest.xml new file mode 100644 index 0000000..1f9e945 --- /dev/null +++ b/overlay/FrameworksResXiaomi/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + + diff --git a/overlay/FrameworksResXiaomi/res/values/config.xml b/overlay/FrameworksResXiaomi/res/values/config.xml new file mode 100644 index 0000000..bfc5ad8 --- /dev/null +++ b/overlay/FrameworksResXiaomi/res/values/config.xml @@ -0,0 +1,23 @@ + + + + + 0 + + + 1 + + + 0.5 +