Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging in Sony Xperia (E2003) stopped working suddenly

My Environment:

OS: Ubuntu 14.04.3 LTS(Linux)
Android Phone: Sony Xperia(E2003) android version 4.4.4
IDE: Android Studio


Debugging on Sony phones used to work for me, it suddenly is not working now. When running in debug mode the execution does not stop at break points.. Without any change debugging works Samsung phones.

Debugging mode is enabled and I can see the device from adb devices command.

adb devies command output:
enter image description here

Usb debugging connection status:
enter image description here

The problem is weird I have many Sony Phones and all of them are not working now, so I guessed the problem is with my system but my team mates are also facing same problem.

Logcat is working, I see logs from user interaction.

The Debugger tab shows this message and hangs forever:

Connecting to the target VM, address: 'localhost:8601', transport: 'socket'

Update:
I have checked the answer here but my devices do not have sdcards so not working for me.

I tried to connect to the target VM manually by clicking the ff icon but the debugger gets disconnected immediately.

enter image description here

Following the steps here I cant change usb connection mode. The selected option is missing on my phone. enter image description here

like image 992
dsharew Avatar asked Oct 27 '15 09:10

dsharew


People also ask

How do I fix USB debugging?

On many Android devices, you can verify whether USB debugging is enabled by visiting the Settings|Developer Options page. Install the USB driver for your Android device. If the battery in your Android device gets exhausted, first recharge the battery and then install the USB driver again.


1 Answers

I have similar problems under Ubuntu with several devices. Usually, I just change the USB connection mode from MTP (Media Transfer Mode) to PTP (Camera Mode) to solve these kind of issues. I also suggest to change the USB cable, just to exclude extra variables.

like image 128
bonnyz Avatar answered Oct 05 '22 04:10

bonnyz