Update way to detect an Oplus device to set fod.bbk prop

This commit is contained in:
Pierre-Hugues Husson 2021-12-19 16:27:32 -05:00
parent 4b86b1ccb5
commit 2a099c2c5a

View File

@ -930,10 +930,13 @@ if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung/';then
setprop persist.sys.phh.fod.samsung true
fi
if getprop ro.vendor.build.fingerprint |grep -qiE '^oneplus/';then
setprop persist.sys.phh.fod.bbk true
if getprop ro.vendor.build.fingerprint |grep -qiE -e ASUS_I006D -e ASUS_I003;then
setprop persist.sys.phh.fod.asus true
fi
if getprop ro.build.overlay.deviceid |grep -qiE -e '^RMX' -e '^CPH';then
if (getprop ro.vendor.build.fingerprint;getprop ro.odm.build.fingerprint) |grep -qiE '^oneplus/' ||
getprop ro.build.overlay.deviceid |grep -qiE -e '^RMX' -e '^CPH' ||
[ -n "$(getprop ro.separate.soft)" ];then
setprop persist.sys.phh.fod.bbk true
fi