From eaacc3accceeb8a709da12be79872581ca3c57a5 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 8 Apr 2019 13:29:07 +0200 Subject: [PATCH] Remove global libeffects sed. Breaks many devices, and is actually needed only on moto --- rw-system.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 69d10f6..dd06e63 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -198,21 +198,6 @@ if [ "$(getprop ro.vendor.product.manufacturer)" = "motorola" ] || [ "$(getprop fi fi -for f in /vendor/lib/libeffects.so /vendor/lib64/libeffects.so; do - [ ! -f $f ] && continue - f="/vendor/lib/libeffects.so" - # shellcheck disable=SC2010 - ctxt="$(ls -lZ "$f" | grep -oE 'u:object_r:[^:]*:s0')" - b="$(echo "$f" | tr / _)" - - cp -a "$f" "/mnt/phh/$b" - sed -i \ - 's/%zu errors during loading of configuration: %s/%zu errors during loading of configuration: ss/g' \ - "/mnt/phh/$b" - chcon "$ctxt" "/mnt/phh/$b" - mount -o bind "/mnt/phh/$b" "$f" -done - if getprop ro.vendor.build.fingerprint | grep -q -i -e xiaomi/wayne -e xiaomi/jasmine; then setprop persist.imx376_sunny.low.lux 310 setprop persist.imx376_sunny.light.lux 280