Still detect moto on pie. Separate sound changes between pie vendor and previous
This commit is contained in:
parent
bef5741bde
commit
e42554da1d
20
rw-system.sh
20
rw-system.sh
@ -175,12 +175,24 @@ if getprop ro.vendor.build.fingerprint |grep -iq \
|
|||||||
mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx
|
mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(getprop ro.vendor.product.manufacturer)" == "motorola" ];then
|
if [ "$(getprop ro.vendor.product.manufacturer)" = "motorola" ] || [ "$(getprop ro.product.vendor.manufacturer)" = "motorola" ];then
|
||||||
if getprop ro.vendor.product.device |grep -q -e nora -e ali -e hannah -e evert -e jeter;then
|
if getprop ro.vendor.product.device |grep -q -e nora -e ali -e hannah -e evert -e jeter;then
|
||||||
|
if [ "$vndk" -ge 28 ];then
|
||||||
|
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"
|
||||||
mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx
|
sed -i \
|
||||||
mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx
|
'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
|
||||||
|
else
|
||||||
|
mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx
|
||||||
|
mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user