Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

logcat filled with java.io.IOException: Connection refused messages

My logcat is filled with following message -

E/UsDebuggingManager(  476): java.io.IOException: Connection refused
E/UsDebuggingManager(  476):    at android.net.LocalSocketImpl.connectLocal(Native Method)
E/UsDebuggingManager(  476):    at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:287)
E/UsDebuggingManager(  476):    at android.net.LocalSocket.connect(LocalSocket.java:130)
E/UsDebuggingManager(  476):    at com.android.server.DebuggingService.listenToSocket(UsDebuggingManager.java:75)
E/UsDebuggingManager(  476):    at com.android.server.DebuggingService.run(UsDebuggingManager.java:111)
E/UsDebuggingManager(  476):    at java.lang.Thread.run(Thread.java:841)

I looked at UsbDebuggingManager. java and can see that a thread is trying to connect to adb server and the connection is failing. I am not getting any other messages apart from this.

Any help to resolve this issue is appreciated.

@MHP: I get this error as soon as I start logcat and it keeps coming. No app is running.

like image 671
mohan.t Avatar asked Aug 26 '14 18:08

mohan.t


1 Answers

It happened to me as well. I rooted my android device (a Shield Tegra) and I installed adbd Insecure to have adbd root priviliges on it.

What I did is disabling this option:

  • Enable insecure adbd

enter image description here

I don't know if you did the same, but disabling "enable insecure adbd" fixed all the java.io.IOException: Connection refused errors.

Hope it helps

like image 67
codingadventures Avatar answered Oct 13 '22 00:10

codingadventures