j7elte: Add device hardware key layout
authorDanny Wood <danwood76@gmail.com>
Tue, 2 Oct 2018 14:07:48 +0000 (15:07 +0100)
committerDario Trombello <dariotr@outlook.de>
Sun, 24 May 2020 19:06:35 +0000 (21:06 +0200)
Change-Id: I40dd4b4eda728ff64337811a91843bf622b9e81b

device.mk
keylayout/gpio_keys.kl [new file with mode: 0644]
keylayout/sec_touchkey.kl [new file with mode: 0644]

index b9b089ac63dcc251e3eb6abcf78db8699a9fd366..bb19e3d590b269d75d955382536f11bc1012fa0f 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -42,6 +42,11 @@ PRODUCT_COPY_FILES += \
 PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
 
+# Keylayouts
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
+    $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
+
 # Permissions
 PRODUCT_COPY_FILES += \
     frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
diff --git a/keylayout/gpio_keys.kl b/keylayout/gpio_keys.kl
new file mode 100644 (file)
index 0000000..0f295cb
--- /dev/null
@@ -0,0 +1,24 @@
+#
+# Copyright (C) 2014 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+key 114 VOLUME_DOWN
+key 115 VOLUME_UP
+key 116 POWER
+key 152 POWER
+key 172 HOME
+key 256 HEADSETHOOK
+key 257 VOLUME_UP
+key 258 VOLUME_DOWN
diff --git a/keylayout/sec_touchkey.kl b/keylayout/sec_touchkey.kl
new file mode 100644 (file)
index 0000000..ff0cc78
--- /dev/null
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2016 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+key 158 BACK        VIRTUAL
+key 254 APP_SWITCH  VIRTUAL