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:
parent
00b16d9f08
commit
df889fc605
3 changed files with 7 additions and 8 deletions
3
configs/keylayout/sdm660-snd-card_Button_Jack.kl
Normal file
3
configs/keylayout/sdm660-snd-card_Button_Jack.kl
Normal file
|
@ -0,0 +1,3 @@
|
|||
key 226 HEADSETHOOK
|
||||
key 257 VOLUME_UP
|
||||
key 258 VOLUME_DOWN
|
|
@ -50,6 +50,10 @@ $(call inherit-product, $(DEVICE_PATH)/device_prop.mk)
|
|||
PRODUCT_COPY_FILES += \
|
||||
$(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
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
##################################
|
||||
#
|
||||
#add for fpc fingerprints
|
||||
#
|
||||
##################################
|
||||
|
||||
key 172 HOME VIRTUAL
|
||||
|
Loading…
Reference in a new issue