Disable ODM display overlay for OnePlus 10 Pro

To whoever wrote these at OPlus - WTF?

Change-Id: Icd38941e86bf1e8ff743342507b5926708590ccf
This commit is contained in:
Andy CrossGate Yan 2022-01-30 15:37:31 +00:00
parent 10a42e0e8c
commit 5ae932aa76

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" ] &&