Revert "Disable ODM display overlay for OnePlus 10 Pro & Realme GT ME"

Change-Id: I53d804422ca853cff03958d398ada522ee388ce7
This commit is contained in:
Andy CrossGate Yan 2022-04-17 10:57:48 +00:00
parent a0477a4836
commit 92b36d168f

View File

@ -1016,11 +1016,6 @@ if [ "$vndk" -le 30 ];then
setprop ro.surface_flinger.use_color_management false setprop ro.surface_flinger.use_color_management false
fi fi
# 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" ] && if [ "$(stat -c '%U' /dev/nxp_smartpa_dev)" == "root" ] &&
[ "$(stat -c '%G' /dev/nxp_smartpa_dev)" == "root" ];then [ "$(stat -c '%G' /dev/nxp_smartpa_dev)" == "root" ];then
chown root:audio /dev/nxp_smartpa_dev chown root:audio /dev/nxp_smartpa_dev