From 4d64ece2f9167038f59248db8235be9add1d1c31 Mon Sep 17 00:00:00 2001 From: Graeme Foster Date: Tue, 23 Jul 2019 14:17:52 +0000 Subject: [PATCH 1/2] Fixed typo --- src/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.sh b/src/utils.sh index 0169fbc..6fba21d 100755 --- a/src/utils.sh +++ b/src/utils.sh @@ -17,7 +17,7 @@ function wait_emulator_to_be_ready () { function change_language_if_needed() { if [ ! -z "${LANGUAGE// }" ] && [ ! -z "${COUNTRY// }" ]; then wait_emulator_to_be_ready - echo "Languge will be changed to ${LANGUAGE}-${COUNTRY}" + echo "Language will be changed to ${LANGUAGE}-${COUNTRY}" adb root && adb shell "setprop persist.sys.language $LANGUAGE; setprop persist.sys.country $COUNTRY; stop; start" && adb unroot echo "Language is changed!" fi From d9389a48c698d7811b972213bc933b6391605e7a Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Thu, 25 Jul 2019 12:19:28 +0200 Subject: [PATCH 2/2] Removed unused lines --- src/utils.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/utils.sh b/src/utils.sh index 0169fbc..ad8dc62 100755 --- a/src/utils.sh +++ b/src/utils.sh @@ -55,15 +55,9 @@ function enable_proxy_if_needed () { echo "Enable proxy on Android emulator. Please make sure that docker-container has internet access!" adb root - echo "Mount system to read write access" - adb shell "mount -o rw,remount /system" - - echo "Updateing Proxy" - + echo "Set up the Proxy" adb shell "content update --uri content://telephony/carriers --bind proxy:s:"${p[0]}" --bind port:s:"${p[1]}" --where "mcc=310" --where "mnc=260"" - echo "remount system back to read only" - adb shell "mount -o ro,remount /system" adb unroot else echo "Please use http:// in the beginning!"