From 2461a6e832d39252c2c080a4b528dbb36bc94851 Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Thu, 23 Jul 2020 17:26:36 +0200 Subject: [PATCH] Restart mobile data for specific version --- src/utils.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.sh b/src/utils.sh index 1c97f33..971161a 100755 --- a/src/utils.sh +++ b/src/utils.sh @@ -54,6 +54,10 @@ function enable_proxy_if_needed () { 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 + + # Mobile data need to be restarted for Android 10 or higher + adb shell svc data disable + adb shell svc data enable else echo "Please use http:// in the beginning!" fi