clover: keylayout: Map Button Jack keylayout to fix headset button controls

* input: sdm660-snd-card Button Jack as 
/devices/soc/soc:sound/sound/card0/input8
Change-Id: I26b4f9dd54856e4b43b9c79c81873641c7b7082b
This commit is contained in:
guaiyihu 2018-05-26 18:27:47 +08:00 committed by Max Weffers
parent 00b16d9f08
commit df889fc605
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE
3 changed files with 7 additions and 8 deletions

View file

@ -0,0 +1,3 @@
key 226 HEADSETHOOK
key 257 VOLUME_UP
key 258 VOLUME_DOWN

View file

@ -50,6 +50,10 @@ $(call inherit-product, $(DEVICE_PATH)/device_prop.mk)
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml $(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
# Keylayout
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/keylayout/sdm660-snd-card_Button_Jack.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/sdm660-snd-card_Button_Jack.kl
# Permissions # Permissions
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml

View file

@ -1,8 +0,0 @@
##################################
#
#add for fpc fingerprints
#
##################################
key 172 HOME VIRTUAL