From 8e3373b6ededc53cc7964f3672bbf79a8509d217 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 1 Mar 2017 14:52:57 -0800 Subject: [PATCH] Add fingerprint navigation support to muskie Test: manual; enable navigation and ensure direction is correct and that keys no longer navigate in launcher. Fixes: 35758627 Change-Id: I0df5a060aacaed75db84d21c9378f6ed3e180c1b --- device.mk | 2 ++ .../base/core/res/res/values/config.xml | 3 +++ uinput-fpc.idc | 20 +++++++++++++++++++ uinput-fpc.kl | 4 ++++ 4 files changed, 29 insertions(+) create mode 100644 uinput-fpc.idc create mode 100644 uinput-fpc.kl diff --git a/device.mk b/device.mk index 7da38f9e..32db6f16 100644 --- a/device.mk +++ b/device.mk @@ -45,6 +45,8 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/init.hardware.usb.rc:root/init.$(PRODUCT_HARDWARE).usb.rc \ $(LOCAL_PATH)/ueventd.hardware.rc:root/ueventd.$(PRODUCT_HARDWARE).rc \ $(LOCAL_PATH)/init.radio.sh:system/bin/init.radio.sh \ + $(LOCAL_PATH)/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl \ + $(LOCAL_PATH)/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc \ ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) PRODUCT_COPY_FILES += \ diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index f458dfd6..37f97ccc 100755 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -51,4 +51,7 @@ com.google.sensor.double_touch + + true + diff --git a/uinput-fpc.idc b/uinput-fpc.idc new file mode 100644 index 00000000..526d0e8c --- /dev/null +++ b/uinput-fpc.idc @@ -0,0 +1,20 @@ +# Copyright (C) 2017 The Android Open Source 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. + +# +# Fingerprint navigation configuration file +# +keyboard.orientationAware = 1 +keyboard.builtIn = 1 + diff --git a/uinput-fpc.kl b/uinput-fpc.kl new file mode 100644 index 00000000..2bc2054d --- /dev/null +++ b/uinput-fpc.kl @@ -0,0 +1,4 @@ +key 105 SYSTEM_NAVIGATION_LEFT +key 108 SYSTEM_NAVIGATION_DOWN +key 103 SYSTEM_NAVIGATION_UP +key 106 SYSTEM_NAVIGATION_RIGHT