Merge pull request #118 from Dinolek/android-9.0

Add prop to disable incoming calls sed
This commit is contained in:
Pierre-Hugues HUSSON 2019-09-13 22:59:16 +02:00 committed by GitHub
commit eff02a1912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
[ ! -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