berlin: Decommize hardware keys config

Signed-off-by: sb6596 <shubhamprince111@gmail.com>
Change-Id: Ie3516b09356d05c2f5bcfbc12c7e2f1ed9b13977
This commit is contained in:
Jarl-Penguin 2021-01-30 13:53:24 +03:00 committed by Marc Bourgoin
parent a6f9c23d2e
commit 44d9a18236
4 changed files with 57 additions and 0 deletions

View File

@ -34,6 +34,7 @@ $(call inherit-product, device/motorola/sm7325-common/sm7325.mk)
# Overlay # Overlay
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
FrameworksResBerlin \ FrameworksResBerlin \
LineageSystemUIBerlin \
SystemUIResBerlin SystemUIResBerlin
# Audio # Audio

View File

@ -0,0 +1,9 @@
//
// Copyright (C) 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "LineageSystemUIBerlin",
vendor: true,
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.systemui.berlin.lineage">
<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="com.android.systemui" />
</manifest>

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Hardware keys present on the device, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
1 - Home
2 - Back
4 - Menu
8 - Assistant (search)
16 - App switch
32 - Camera
64 - Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
<integer name="config_deviceHardwareKeys">72</integer>
<!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
1 - Home
2 - Back
4 - Menu
8 - Assistant (search)
16 - App switch
32 - Camera
64 - Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
<integer name="config_deviceHardwareWakeKeys">72</integer>
</resources>