diff --git a/rw-system.sh b/rw-system.sh index fafb3cc..69d10f6 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -248,7 +248,7 @@ if grep -qF 'PowerVR Rogue GE8100' /vendor/lib/egl/GLESv1_CM_mtk.so || fi #If we have both Samsung and AOSP power hal, take Samsung's -if [ -f /vendor/bin/hw/vendor.samsung.hardware.miscpower@1.0-service ]; then +if [ -f /vendor/bin/hw/vendor.samsung.hardware.miscpower@1.0-service ] && [ "$vndk" -lt 28 ]; then mount -o bind /system/phh/empty /vendor/bin/hw/android.hardware.power@1.0-service fi @@ -280,7 +280,7 @@ if getprop ro.vendor.build.fingerprint | grep -iq -E -e 'huawei|honor' || getpro mount -o bind /system/phh/libnfc-nci-huawei.conf /system/etc/libnfc-nci.conf fi -if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*" -e ".*(SC-0[23]K|SCV3[89]).*"; then +if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*" -e ".*(SC-0[23]K|SCV3[89]).*" && [ "$vndk" -lt 28 ]; then for f in /vendor/lib/libfloatingfeature.so /vendor/lib64/libfloatingfeature.so; do [ ! -f "$f" ] && continue # shellcheck disable=SC2010