Skip to content

Commit

Permalink
Add fingerprint navigation support to muskie
Browse files Browse the repository at this point in the history
Test: manual; enable navigation and ensure direction is correct and
that keys no longer navigate in launcher.
Fixes: 35758627
Change-Id: I0df5a060aacaed75db84d21c9378f6ed3e180c1b
  • Loading branch information
Jim Miller authored and nickdesaulniers committed Mar 7, 2017
1 parent 8ce93aa commit 8e3373b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 += \
Expand Down
3 changes: 3 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@
<!-- Type of the double tap sensor. Empty if double tap is not supported. -->
<string name="config_dozeDoubleTapSensorType" translatable="false">com.google.sensor.double_touch</string>

<!-- Enable system navigation keys. -->
<bool name="config_supportSystemNavigationKeys">true</bool>

</resources>
20 changes: 20 additions & 0 deletions uinput-fpc.idc
Original file line number Diff line number Diff line change
@@ -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

4 changes: 4 additions & 0 deletions uinput-fpc.kl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
key 105 SYSTEM_NAVIGATION_LEFT
key 108 SYSTEM_NAVIGATION_DOWN
key 103 SYSTEM_NAVIGATION_UP
key 106 SYSTEM_NAVIGATION_RIGHT

0 comments on commit 8e3373b

Please sign in to comment.