Merge pull request #293 from AndyCGYan/fix-op10pro-overlay

Disable ODM display overlay for OnePlus 10 Pro
This commit is contained in:
Pierre-Hugues HUSSON 2022-01-30 21:31:04 +01:00 committed by GitHub
commit 617e2320fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,6 @@ changeKeylayout() {
fi
if getprop ro.vendor.build.fingerprint | grep -iq -e motorola/liber; then
cp /system/phh/empty /mnt/phh/keylayout/uinput_nav.kl
chmod 0644 /mnt/phh/keylayout/uinput_nav.kl
changed=true
@ -1007,9 +1006,9 @@ if [ "$vndk" -le 30 ];then
setprop ro.surface_flinger.use_color_management false
fi
# Disable ODM display overlay for Realme GT ME, which is annoyingly hard to override
if getprop ro.boot.prjname |grep -qi 21615;then
mount -o bind /system/phh/empty /odm/overlay/android_framework_res_overlay.display.product.21615.apk
# Disable ODM display overlay for some OPlus devices, which is annoyingly hard to override
if getprop ro.boot.prjname |grep -qi -e 20846 -e 20847 -e 2084A -e 21615;then
mount -o bind /system/phh/empty /odm/overlay/android_framework_res_overlay.display.product.*.apk
fi
if [ "$(stat -c '%U' /dev/nxp_smartpa_dev)" == "root" ] &&