Add prop to disable incoming calls sed
This commit is contained in:
parent
b8e1d18b51
commit
64d8b7d900
@ -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
|
||||
[ ! -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
|
||||
ctxt="$(ls -lZ "$f" | grep -oE 'u:object_r:[^:]*:s0')"
|
||||
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"
|
||||
chcon "$ctxt" "/mnt/phh/$b"
|
||||
mount -o bind "/mnt/phh/$b" "$f"
|
||||
|
||||
setprop persist.sys.phh.radio.force_cognitive true
|
||||
setprop persist.sys.radio.ussd.fix true
|
||||
done
|
||||
|
||||
mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true
|
||||
|
Loading…
Reference in New Issue
Block a user