From 5f632b55a9029d3df8fa2199ef32fb49fa8e3706 Mon Sep 17 00:00:00 2001 From: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com> Date: Mon, 11 Dec 2023 09:06:56 +0700 Subject: [PATCH] X6833B: Add keylayout file to map double tap event to wake Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com> --- configs/keylayout/mtk-tpd.kl | 1 + device.mk | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 configs/keylayout/mtk-tpd.kl diff --git a/configs/keylayout/mtk-tpd.kl b/configs/keylayout/mtk-tpd.kl new file mode 100644 index 0000000..f5fc0ce --- /dev/null +++ b/configs/keylayout/mtk-tpd.kl @@ -0,0 +1 @@ +key 183 WAKEUP diff --git a/device.mk b/device.mk index eba3b15..45f5dd6 100644 --- a/device.mk +++ b/device.mk @@ -163,6 +163,10 @@ PRODUCT_PACKAGES += \ # Include GSI keys $(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk) +# Keylayout +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/keylayout/mtk-tpd.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/mtk-tpd.kl + # Keymaster PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml