Switched the order because of bug on Android 10 or higher

This commit is contained in:
butomo1989 2020-07-17 14:54:42 +02:00
parent 01d1c663c1
commit 0196d23103

View file

@ -56,6 +56,8 @@ function enable_proxy_if_needed () {
adb root adb root
echo "Set up the Proxy" 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 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 adb unroot
@ -69,9 +71,9 @@ function enable_proxy_if_needed () {
fi fi
} }
enable_proxy_if_needed
sleep 1
change_language_if_needed change_language_if_needed
sleep 1 sleep 1
enable_proxy_if_needed
sleep 1
install_google_play install_google_play
disable_animation disable_animation