Using ADB with usb debugging disabled, and no root I have an Android Device running Android 2.3.7 . The device is locked due to exceeding pattern attempts. So now Android is prompting me to enter my gmail id and password. The problem is, the WiFi is turned off and the Data is turned off. 

I have found using this thread that you it is possible to turn on wifi using ADB. But on my device, even usb debugging is not turned on. So, I cannot access the device using adb.

So, I figured may be you can access device using adb in recovery mode ( my phone is not rooted ). But so far, in recovery mode, running adb devices does not list my device. 

Is it possible to access a device using adb if your usb debugging is turned off ( on a non rooted phone ) ? How about in recovery mode ?
I had a similar problem.  I almost gave up and was like an inch from hard reset when something strange happened. When I connected the phone to USB as usual USB entry screen appeared, but I noticed that in this screen it is actually possible to lower the notificationbar and bingo &mdash; I was able to turn Wi-Fi ON.  And then I just entered my Google account info and the phone was unlocked.