Debugging in Sony Xperia (E2003) stopped working suddenly
Asked Answered
H

1

14

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

Hummocky answered 27/10, 2015 at 9:48 Comment(3)
Is there Connected to the target VM log?Chasteen
Have you tried re-installing the drivers? Perhaps they got corrupted somehow...Caloyer
Not sure but you can try Factory Reset if have many sony's devices.Dorthydortmund
T
4

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.

Tahitian answered 6/11, 2015 at 9:21 Comment(10)
sorry how do you change from MTP to PTP, I cant get the option.Hummocky
@DegenSharew which options do you have when you tap on the usb connection notification?Tahitian
No option, but on samsung and techno phones touching the notification takes me to different screen for choosing d/t optionsHummocky
@DegenSharew try to reach the USB options from the Settings (not from the notification)Tahitian
I went to XperiaConnectivity -> Usb connectivity But still I dont see any option there.Hummocky
@DegenSharew As desribed here: support.bell.ca/Mobility/Smartphones_and_mobile_internet/… you should have some options.. I don't own this phone, I can't make a check..Tahitian
Let us continue this discussion in chat.Hummocky
Following the steps I cant perform step 5, the option is missing. I updated my question to check the pic.Hummocky
@DegenSharew Do you have an sdcard plugged on the phone? If not, try to add one and the option should appearsTahitian
@Hummocky were you able to figure this out? How to change to PTP ?Stafani

© 2022 - 2024 — McMap. All rights reserved.