Add prop to disable incoming calls sed

This commit is contained in:
Dinolek 2019-09-13 22:53:28 +02:00
parent b8e1d18b51
commit 64d8b7d900

View File

@ -228,6 +228,12 @@ fi
for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so /vendor/lib/libmtk-ril.so /vendor/lib64/libmtk-ril.so; do for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so /vendor/lib/libmtk-ril.so /vendor/lib64/libmtk-ril.so; do
[ ! -f $f ] && continue [ ! -f $f ] && continue
setprop persist.sys.phh.radio.force_cognitive true
setprop persist.sys.radio.ussd.fix true
if getprop persist.sys.mtk.disable.incoming.fix | grep -q 1; then break; fi
# shellcheck disable=SC2010 # shellcheck disable=SC2010
ctxt="$(ls -lZ "$f" | grep -oE 'u:object_r:[^:]*:s0')" ctxt="$(ls -lZ "$f" | grep -oE 'u:object_r:[^:]*:s0')"
b="$(echo "$f" | tr / _)" b="$(echo "$f" | tr / _)"
@ -238,9 +244,6 @@ for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so /vendor/lib/libmtk-ril.
"/mnt/phh/$b" "/mnt/phh/$b"
chcon "$ctxt" "/mnt/phh/$b" chcon "$ctxt" "/mnt/phh/$b"
mount -o bind "/mnt/phh/$b" "$f" mount -o bind "/mnt/phh/$b" "$f"
setprop persist.sys.phh.radio.force_cognitive true
setprop persist.sys.radio.ussd.fix true
done done
mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true