Search code examples
androidandroid-studioadb

ADB losing connection when phone screen turns off


I'm using ADB WiFi. Everything is working fine, except that when my android screen turns off I need to reconnect using "adb connect IP_ADRESS:5555". Is there any solution for this?


Solution

  • You probably need to check "Settings" -> "Wi-Fi" -> "Advanced" (in 3-dot menu) -> "Keep Wi-Fi on during sleep". You may also try to turn off the "Wi-Fi optimization" in the same menu. Sometimes Wi-Fi drivers can have problems with power saving mode.