-
-
Save tosunkaya/038b89a29e22b63fdf1f4cba6cf39736 to your computer and use it in GitHub Desktop.
Toggle airplane mode with adb and restart personal hotspot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell settings put global airplane_mode_on 1 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE | |
| sleep 15 | |
| adb shell settings put global airplane_mode_on 0 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE | |
| adb shell am start -n com.android.settings/.TetherSettings | |
| adb shell input keyevent 20 | |
| adb shell input keyevent 66 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment