Add Redmagic 5G DT2Z KL
This commit is contained in:
parent
46c5eb1273
commit
97b340689d
3
base.mk
3
base.mk
@ -120,7 +120,8 @@ PRODUCT_COPY_FILES += \
|
|||||||
device/phh/treble/files/moto-uinput-egis.kl:system/phh/moto-uinput-egis.kl \
|
device/phh/treble/files/moto-uinput-egis.kl:system/phh/moto-uinput-egis.kl \
|
||||||
device/phh/treble/files/daisy-buttonJack.kl:system/phh/daisy-buttonJack.kl \
|
device/phh/treble/files/daisy-buttonJack.kl:system/phh/daisy-buttonJack.kl \
|
||||||
device/phh/treble/files/daisy-uinput-fpc.kl:system/phh/daisy-uinput-fpc.kl \
|
device/phh/treble/files/daisy-uinput-fpc.kl:system/phh/daisy-uinput-fpc.kl \
|
||||||
device/phh/treble/files/daisy-uinput-goodix.kl:system/phh/daisy-uinput-goodix.kl
|
device/phh/treble/files/daisy-uinput-goodix.kl:system/phh/daisy-uinput-goodix.kl \
|
||||||
|
device/phh/treble/files/nubia-nubia_synaptics_dsx.kl:system/phh/nubia-nubia_synaptics_dsx.kl
|
||||||
|
|
||||||
SELINUX_IGNORE_NEVERALLOWS := true
|
SELINUX_IGNORE_NEVERALLOWS := true
|
||||||
|
|
||||||
|
1
files/nubia-nubia_synaptics_dsx.kl
Normal file
1
files/nubia-nubia_synaptics_dsx.kl
Normal file
@ -0,0 +1 @@
|
|||||||
|
key 0x44 POWER
|
@ -170,6 +170,12 @@ changeKeylayout() {
|
|||||||
changed=true
|
changed=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if getprop ro.vendor.build.fingerprint |grep -q -e nubia/NX659;then
|
||||||
|
cp /system/phh/nubia-nubia_synaptics_dsx.kl /mnt/phh/keylayout/nubia_synaptics_dsx.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/nubia_synaptics_dsx.kl
|
||||||
|
changed=true
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$changed" = true ]; then
|
if [ "$changed" = true ]; then
|
||||||
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
|
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
|
||||||
restorecon -R /system/usr/keylayout
|
restorecon -R /system/usr/keylayout
|
||||||
|
Loading…
Reference in New Issue
Block a user