0

I am using wake lock on my Nexus 4 to force it to stay awake (I am using wake lock with CPU only option). However, after sometime, ADB wifi looses connecting and I am unable to reconnect to it again unless I turn the screen back on.

Does anyone know solution to this problem? I have the need to keep the screen off, while still be able to access phone via ADB wifi.

22332112
  • 2,337
  • 5
  • 21
  • 42

1 Answers1

0

You need a wifi lock - check the docs here. In short, the CPU lock won't keep the wifi radio on too - you need a separate (wifi) lock for that.

Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361