Battery consumption while TCP is open for ADB via wifi can connect

。_饼干妹妹 提交于 2019-12-23 10:00:05

问题


My question is related to ADB over Wifi. I've found an article: http://stuffandtech.blogspot.de/2012/03/android-quick-tip-adb-over-wifi.html and that works for me, but I would like to know if keeping TCP open all the time actually will cause any significant battery drain. Of course I am talking about opened, but not used.

After some time connection seems to die by timeout: device, that used to be connected remotely

#adb devices
List of devices attached 
192.168.2.2:5555    device

disappears from adb devices:

#adb devices
List of devices attached 

, so new

#adb connect <ip>:<port>

is needed. On the other hand, if I scan with nmap, I still see this TCP open (naturally, how else new adb connect would work!):

Nmap scan report for 192.168.2.2
Host is up (0.017s latency).
Not shown: 999 closed ports
PORT     STATE SERVICE
5555/tcp open  freeciv

So, again, the question is: does keeping this TCP open forever will consume battery if adb is not actually connected?

Thanks

来源:https://stackoverflow.com/questions/23036820/battery-consumption-while-tcp-is-open-for-adb-via-wifi-can-connect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!