My screen got broken and I've been using my phone with a VNC Server installed on it, but this morning i'd the stupid idea of enable hotspot just to see if I can use my mobile data plan on my laptop, but when I did this, the wi-fi got disconnected from my router and now i only have access to my phone using adb shell.
I need to disable hotspot from ADB, already searched on google but didn't find anything, i also tried disable and enabling wi-fi, doesn't works.
adb shell am start -n com.android.settings/.TetherSettings
->adb shell input keyevent 20
->adb shell input keyevent 66
. Done! – Firelord Jun 02 '15 at 18:37