From 0196d231035c339432885882eee802946095f661 Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Fri, 17 Jul 2020 14:54:42 +0200 Subject: [PATCH] Switched the order because of bug on Android 10 or higher --- src/utils.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils.sh b/src/utils.sh index ff82fd5..2729283 100755 --- a/src/utils.sh +++ b/src/utils.sh @@ -56,6 +56,8 @@ function enable_proxy_if_needed () { adb root echo "Set up the Proxy" + adb shell "content update --uri content://telephony/carriers --bind proxy:s:"0.0.0.0" --bind port:s:"$0000" --where "mcc=310" --where "mnc=260"" + sleep 5 adb shell "content update --uri content://telephony/carriers --bind proxy:s:"${p[0]}" --bind port:s:"${p[1]}" --where "mcc=310" --where "mnc=260"" adb unroot @@ -69,9 +71,9 @@ function enable_proxy_if_needed () { fi } -enable_proxy_if_needed -sleep 1 change_language_if_needed sleep 1 +enable_proxy_if_needed +sleep 1 install_google_play disable_animation