Merge pull request #79 from timbortnik/mimax3-nitrogen-fixes

xiaomi-mimax3-fix
This commit is contained in:
Pierre-Hugues HUSSON 2019-01-16 19:10:22 +01:00 committed by GitHub
commit 1b45c55c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,8 @@ changeKeylayout() {
if getprop ro.vendor.build.fingerprint |grep -iq \ if getprop ro.vendor.build.fingerprint |grep -iq \
-e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper \ -e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper \
-e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \ -e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \
-e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl;then -e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl \
-e xiaomi/nitrogen;then
cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl
chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl
cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl
@ -162,11 +163,11 @@ if getprop ro.vendor.build.fingerprint |grep -q -i \
setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness) setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)
fi fi
if getprop ro.vendor.build.fingerprint |grep -q \ if getprop ro.vendor.build.fingerprint |grep -iq \
-e Xiaomi/beryllium/beryllium -e Xiaomi/sirius/sirius \ -e Xiaomi/beryllium/beryllium -e Xiaomi/sirius/sirius \
-e Xiaomi/dipper/dipper -e Xiaomi/ursa/ursa -e Xiaomi/polaris/polaris \ -e Xiaomi/dipper/dipper -e Xiaomi/ursa/ursa -e Xiaomi/polaris/polaris \
-e motorola/ali/ali -e iaomi/perseus/perseus -e iaomi/platina/platina \ -e motorola/ali/ali -e iaomi/perseus/perseus -e iaomi/platina/platina \
-e iaomi/equuleus/equuleus -e motorola/nora;then -e iaomi/equuleus/equuleus -e motorola/nora -e xiaomi/nitrogen;then
mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx
mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx
fi fi