Merge pull request #282 from Vgdn1942/android-12.0
Add keylayout and fix broken USB for Blackview BV9500Plus
This commit is contained in:
commit
1aece75b52
1
base.mk
1
base.mk
@ -131,6 +131,7 @@ PRODUCT_COPY_FILES += \
|
|||||||
device/phh/treble/files/zf6-goodixfp.kl:system/phh/zf6-goodixfp.kl \
|
device/phh/treble/files/zf6-goodixfp.kl:system/phh/zf6-goodixfp.kl \
|
||||||
device/phh/treble/files/zf6-googlekey_input.kl:system/phh/zf6-googlekey_input.kl \
|
device/phh/treble/files/zf6-googlekey_input.kl:system/phh/zf6-googlekey_input.kl \
|
||||||
device/phh/treble/files/teracube2e-mtk-kpd.kl:system/phh/teracube2e-mtk-kpd.kl \
|
device/phh/treble/files/teracube2e-mtk-kpd.kl:system/phh/teracube2e-mtk-kpd.kl \
|
||||||
|
device/phh/treble/files/bv9500plus-mtk-kpd.kl:system/phh/bv9500plus-mtk-kpd.kl \
|
||||||
|
|
||||||
SELINUX_IGNORE_NEVERALLOWS := true
|
SELINUX_IGNORE_NEVERALLOWS := true
|
||||||
|
|
||||||
|
5
files/bv9500plus-mtk-kpd.kl
Normal file
5
files/bv9500plus-mtk-kpd.kl
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
key 114 VOLUME_DOWN
|
||||||
|
key 115 VOLUME_UP
|
||||||
|
key 116 POWER
|
||||||
|
key 249 ASSIST
|
||||||
|
key 250 CAMERA
|
13
rw-system.sh
13
rw-system.sh
@ -60,7 +60,12 @@ if [ "$vndk" = 26 ];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
setprop sys.usb.ffs.aio_compat true
|
setprop sys.usb.ffs.aio_compat true
|
||||||
setprop persist.adb.nonblocking_ffs false
|
|
||||||
|
if getprop ro.vendor.build.fingerprint | grep -q -i -e Blackview/BV9500Plus;then
|
||||||
|
setprop persist.adb.nonblocking_ffs true
|
||||||
|
else
|
||||||
|
setprop persist.adb.nonblocking_ffs false
|
||||||
|
fi
|
||||||
|
|
||||||
fixSPL() {
|
fixSPL() {
|
||||||
if [ "$(getprop ro.product.cpu.abi)" = "armeabi-v7a" ]; then
|
if [ "$(getprop ro.product.cpu.abi)" = "armeabi-v7a" ]; then
|
||||||
@ -257,6 +262,12 @@ changeKeylayout() {
|
|||||||
changed=true
|
changed=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if getprop ro.vendor.build.fingerprint | grep -q -i -e Blackview/BV9500Plus;then
|
||||||
|
cp /system/phh/bv9500plus-mtk-kpd.kl /mnt/phh/keylayout/mtk-kpd.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/mtk-kpd.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