Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings adb shell input keyevent 19 & adb shell input keyevent 19 & adb shell input keyevent 23
- adb shell "svc wifi enable"
- adb shell am start -n com.android.settings/.wifi.WifiStatusTest
- adb shell dumpsys connectivity
- adb shell ping www.google.com
- adb pull $(adb shell uiautomator dump | grep -o '[^ ]*.xml') ui.xml
- grep 'text="OFF"' ui.xml
- if [ $? == 0 ]; then
- # Turn WIFI on
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement