How to turn on WIFI through adb on a motorola XYboard using android version 4.0
I have already tried the commands
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
adb shell input keyevent 20 & adb shell input keyevent 23
but it just takes to the wifi settings, but the keyevent 20 is not taking to the "ON/OFF" button. In the new 4.0 version of android, we have to do a click on ON/OFF btton next to the WIFI to turn it on. How do I get to click that button using adb
Is there a command that will turn the wifi ON directly like the one for bluetooth, I can use
adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
for turning bluetooth ON.