I am totally new at testing apps on devices, especially the Sony Xperia. I am testing apps using the Android emulator, but I have now a Sony Xperia. First I have connected the device to the laptop via USB. But the laptop couldn't detect my phone. Is a driver necessary for Eclipse to detect the phone?
Download the correct driver for your phone, make sure your phone has enabled USB debugging and then connect it to proceed with the install.
Download drivers from:
http://developer.sonymobile.com/downloads/drivers/
Even though this question was posted long time ago, I didn't find 100% correct answer from previous replies. Most of replies are useful, but here is one final step for debugging apps on Sony Xperia devices.
My Sony Xperia T has not been visible in Eclipse even though I installed PC Companion and in mobile phone, I set developers options debugging mode!
Xperia has very strange option:
Settings > Xperia > USB Connectivity > USB connection mode
and select Mass storage mode (MSC).
Note that the USB cable must be unplugged to change this option.
By default, Media transfer mode (MTP) was selected. If MTP is selected even little bug is shown in notification bar debugging is not possible!
These were my steps to solve the problem:
On SONY XPERIA Z
Enable USB debugging (http://developer.android.com/tools/device.html#setting-up)
Settings > Developer > USB-Debugging = Enabled
Settings > Xperia > USB Connectivity > USB connection mode = MSC
Settings > Xperia > USB Connectivity > Install software = Disabled (!!!)
On Windows7
Google USB drivers were already installed for another device
Download XPERIA drivers from: http://developer.sonymobile.com/downloads/drivers/
Connect XPERIA via USB
Device manager > Unknown device > Install driver from downloaded file
Don't forget to enable usb debugging in the phone setting.
Yes, eclipse needs drivers. You need to install drivers for the phone, and then restart eclipse. You then need to add the xperia through the device manager in eclipse.
Are you running windows??
Start eclipse
open the android SDK manager,it will load the repository.
select the package for sony and download it.
restart eclipse,and you are good to go.
Try to Install PC Companion here:
http://www.sonymobile.com/gb/tools/pc-companion/
I had a problem connecting a Sony Xperia Tipo to Eclipse for android debugging. I went through all the steps already recommended (installing sony drivers, USB debugging on, etc), but was still getting a "driver not found" error when I connected the Tipo to my PC with USB debug switched on.
I fixed the problem starting with the driver install instructions for a Sony Tablet, http://www.kb.sony.com/selfservice/microsites/search.do?cmd=displayKC&externalId=C1024692&fes=true
Then I looked through Windows event viewer to find the find the details of the previous driver install failures, which gave me the correct device ID string for the Tipo. I added that to the end of the [Google.NTx86] section of android_winsub.inf, following the same pattern as for the Sony Tablet. It now contains this:
[Google.NTx86]
;SONY Sony Tipo
%CompositeAdbInterface% = USB_Install, USB\VID_0FCE&PID_5170&MI_01
Finally I reconnected the Tipo to my PC, went for the manual driver search options during driver install, pointed it to the Google USB driver directory, and it installed the Google drivers successfully. Now Eclipse is connecting to the Tipo and I can test and debug my app.
SOLUTION ! : I had that problem with the detection of the SONY XPERIA Z tablet only with Eclipse and did everything in the book to connect it without success :
Checked that the Sony USB driver was updated on the PC,
enabled USB debugging in the developpers options,
tried the Media Transfer Protocol (MTP),
tried the Mass Storage Configuration (MSC),
still the Eclipse command Run responded with a 'No compatible device found" message
until I downloaded the Google USB driver in the SDK manager and the DEVICE WAS AT LAST DETECTED.
This is all the more so strange that the Google Driver is introduced as dedicated to Nexus tablets only !
So if this can help ....
I've just fixed this problem recently. Here's the steps you should try as follows:
enable usb debugging
change to mass storage device
reset DDMS - adb
install driver
Then in eclipse it should show up as an Android device :)
solution for sony Mobile usb driver for Window 7
After googling and more time spend on this we find the solution Sony tipo & Sony M mobile are detecting by eclipse .
Steps are 1.install the latest sony companion
2- go to settings>>xperia>> connectivity>>USB connectivity mode>>MTP
3- restart eclipse and run your project Android Device Chooser show your device
donot forgot to check the usb debugging
This answer is more general to not finding your device. But if you have dead ADB processes running, you might have to kill them (and start a new one) in order to pick your device.
For me, it works when combining Damir's & Michell Bak's answers.
First need to change device form MTP mode to MSC mode as Damir mentioned, then download and install driver to your PC as Michell Bak mentioned.
Most new Sony device default setting USB connection mode to MTP and the setting location is different from other android devices. Besides, driver can not install automatically and need to download form official site.
Steps to debug using Sony Xperia :
Settings > Xperia > USB Connectivity > USB connection mode
and select Mass storage mode (MSC).
The USB cable must be unplugged to change this option.
By default, Media transfer mode (MTP) was selected.
Untick "Install software"
I had same problem with my Xperia Z3+ (android 5.02) with Android studio 1.3.
I installed new drivers and XPeria Companion but it didn't help.
However after I enabled hotspot via USB it started to work. Don't know if all of these was needed of if it was only the last one. Anyway I did
1. Settings->More...->Internetsharing hotspot->USB-sharing to on.
2. In the pop-up accept USB debugging.
Related
I'm trying to test an Android application and have a device connected via USB. The device detects (and charges off) the USB connection but I can't seem to find any record on the computer (running Windows 7) that the device is connected. I looked in Device Manager and did not see an "Android Devices" category, nor did I see an "Other Devices" category. I looked on the device manufacturer's website to see if they had drivers; I could not find any. Does anyone have any idea as to how I could get the device to show on the computer? Thanks!
Most probably windows and especially android adb will see your android device after installing the Google USB Driver
I had the same problem for many of my android devices and most of them are running fine with the driver from google. Only for some sony devices I had to install special drivers.
In Android Studio go to Tools -> Android -> Android Device Monitor. Once it opens close it, this will reset your adb and you should be able to see your device
Your problem sounds related with drivers
the Google USB Driver works only for some android models, some other drivers are installed as plug and play but some others you have to install manually.
http://developer.android.com/intl/es/tools/extras/oem-usb.html
Also sometimes it happened to me that the adb didn't recognize the device while the screen was locked so you could also check that out.
It turned out that the USB cable I was using was a charge-only cable. After switching the cable out, the device showed on ADB.
I have a Vodafone smart first 6 phone, that I want to debug over bluetooth. I have turned on usb debugging at developer options and also allowed mock locations. I downloaded the usb driver for it from http://androidxda.com/download-vodafone-usb-drivers . I have windows 8.1 and android studio 1.2.2
When I connect my phone to my computer the phone sais "USB debugging connected" but my android studio doesn't see it, altough my computer recognize it as a media device. The adb devices command isn't see it either.
All this steps worked for me for previous devices, I have debuged a lot of android devices before but I cannot find a solution for this vodafone phone. Can anyone help me?
Thank you!
Deleted the two 'vf695' entries in device manager, disconnected the phone, installed PDANet (http://pdanet.co/), selected the 'unknown device' option, followed the instructions, seemed to do the job.
I just found the solution after 1 week searching go to this blog and you will download all the zip file http://www.mediafire.com/download/5ff6s5bk1couva9/Compelte_USB_Drivers+PDanet+Adb_Installer.rar install first C++ then find Universal ADB DRiver it will get your ABD with ! mark restart you will find you are so so so so happy as I am now don't forget to configure your mobile with this configuration:
Setting - Storage - click in to three dots USB computer connection - then choose (MTP) Media Device\
We change your mobile device to developer mode click on USB debugging connected and choose USB debugging
For several weeks, I was able to connect my Nexus 7 2 to my computer running Windows 7, and Eclipse would recognize it, allowing me to run apps on it. The device also showed up when I ran the adb devices command. Every time I plugged the Nexus 7 into the computer, the tablet asked if I wanted to allow USB debugging at that time. (Oddly, it never asked me whether I wanted to always allow it from that computer, but I didn't care.)
I recently updated the tablet to Android 4.4.2. I also updated the Android SDKs through the Android SDK manager. Now, when I plug the tablet in, I do not get prompt about USB debugging on the tablet, and neither Eclipse nor adb can see that it is there.
Here is a list of things I tried to do, gathering ideas from various forums around the web.
Re-download the Asus drivers for the Nexus 7 and update the driver. However, Windows does not even recognize this as the right drivers for this device.
Turn USB Debugging off and on on the tablet, and also revoke all USB debugging permissions.
Change the connection mode from media device to camera
Switch the runtime from Dalvik to ART
Type adb kill-server followed by adb start-server in the command line
Delete eclipse and all the Android SDK and download them all over again
None of this worked. Any other ideas on what to try?
It turns out that the Nexus 7 definitely needs the Google USB Driver. Finding, downloading, and installing this driver worked perfectly.
Because Google's Android OEM drivers page does not include the Nexus 7 in its list of devices that need the Google USB driver, I had been trying the driver from Asus, which did not work. I did not try the Google USB driver because for some reason my SDK manager said it had downloaded the driver, but the driver was not to be found.
Finally I found I could download the Google USB driver from this page, which clarifies that all Google Nexus devices need this driver. Now I have successfully re-connected the tablet to ADB.
I submitted a documentation bug report to Google here in hopes that the OEM drivers page can be updated to reflect that all Google Nexus devices need the Google USB driver.
Nexus 7 tablet with Android 4.4.4. Settings > Storage > USB Computer Condition.
Two checkboxes: MTP and PTP. Uncheck both.
With your phone disconnected
In windows explorer - right click computer, go to manage, in computer management find and uinstall device driver (under Android device)
Download new drivers from http://developer.android.com/sdk/win-usb.html#top
Connect the phone, windows will try to install new drivers, install drivers manually with drivers downloaded as above
The above worked for me
For me, after updating to Android 4.4.2, it was critical that I connected the device as a Camera (PTP) rather than as a Media Device (MTP). Previously, before the update, I was able to connect as a Media Device (MTP).
The problem is that you have not all needed drivers (PC can recognise your phone like usb device but debugging would not work). I solved this problem in Android 4.4.4 by uncheking all items (MTP, PTP, UMS) from menu: storage->USB computer connections and than tick 'Media device(MTP). Now all works fine.
thank you Arthur, I found Nexus 7 tab not working even after unchecking or checking. Problem solved by unchecking USB Debugging (under developer options).. settings>Developer option> USB debugging. then check (put tick the MTP device):.storage->USB computer connections and than tick 'Media device(MTP)
Complete checklist:
Enable debugging onto the device
Select USB Connection as PTP (camera)
Install the driver from http://developer.android.com/sdk/win-usb.html
Before you try anything, make sure you update your Build related tools using your Android SDK Manager. Your adb might be outdated.
I want to use my Xperia S for debugging, so I followed the OEM USB Drivers instructions step by step but still not work, I didn't find "Android Composite ADB Interface" to update driver as it explained. and when I call adb devices my device didn't appear in the list.
I found out that you must put your phone in Mass Storage mode, as default is MTP mode. As simple as that ##! And I spent hours trying all sorts of things reading posts.
Settings / Xperia / USB Connectivity / USB Connection Mode and select MASS Storage, not MTP. I did uncheck Install PC Companion. It work right away. No need to Update drivers, no need to change the android_winusb.inf. You may need to kill adb.exe before trying again adb devices.
That was it for me :)
A couple of things to check:
Is USB debugging turned on (Settings->Developer options->USB debugging)?
Is it recognised as an ADB device? Check on Device Manager, mine is down as a Sony sa0103 ADB Interface Driver. If not, right click on it and re install drivers.
Were you ever able to connect to your Xperia S with adb? If not, you should try installing Sony PC Companion:
http://www.sonymobile.com/us/tools/pc-companion/
It should automatically detect your device and install the appropriate drivers.
Installing the PC companion fixed it for me too, it changed my drivers (on windows 7 x64). I tried lots of things before, including switch to mass storage (that might have helped also).
I have and Inew v3 phone and flashed a Sony Xperia E2115 Rom.
I'm using Android Studio to learning Android.
I use my phone to running the apps I do. But one day my phone wasn't detected on any pc I tried. With Windows 7, Ubuntu, ...
Looking for an answer, I finally found an answer:
Settings > Apps > All > MTP extension service > Clear data/cache > Force Stop > Restart the phone
The solution was to update the drivers using PC Companion. Before that I tested the following things:
1)I have the system running on Windows 8 and the problem has nothing to do with Mass Storage or MTP mode.
In the Control Panel> Device Manager> Other devices, I found that the
android driver was not found.
I tried the manual installation of drivers which did not work. I
checked the command line tool git bash to check if the android
device was connected using the command adb devices. It did not show any device.
2) After the update of the device software, PC companion showed the device is up to date. I did not completely update the device where PC Companion asked for the upgrade and phone contacts have to be backed up.
3) Now when I checked the Device manager again, it shows the drivers are correctly installed.
4) adb devices in git bash show the device number and name
adb debugging works then
I have A Sony Xperia Tipo. The drivers somehow did not work for me.
Have a look at
http://preetprasannan.wordpress.com/2013/07/13/install-adb-drivers-for-android-if-oem-drivers-not-working-not-present/
Of course you need to enable the USB Debugging in the Developer options in the Settings menu.
Open USB debugging, and May be your usb driver is not correct ,You can use wandoujia to install the driver on your windows, here is the download page: http://www.wandoujia.com/ It can help you find the driver. Have a try
I had the same problem and no matter what i did and how much I've searched the web for a solution, nothing helped! (all this of course on windows 8)
but the thing is..
i tried this procedure on windows 7, connected the device(both Sony Xperia S and Samsung Galaxy Tab 10.1) then in the device manger i updated the driver then the andriod ADB interface appeared.
hope this helps!
I had terrible problems with my Xperia U and dis-ability of my PC (even the PC companion software) to see it. I tried many solutions posted on the web, nothing worked.
Finally I just switched the microUSB cable to another one I had and suddenly it works. I even uninstalled PC companion and other Sony bloatware and it is still working!
So not sure what that original microUSB cable is for (I bought my Xperia U as a second hand stuff, so not sure if in original package there are more micro USB cables), but for me it worked just for charging of the phone, no file transfer.
Go to Settings -> Xperia Connectivity -> Usb Connectivity -> Usb connection mode -> Check MTP mode.
Click Revoke USB debugging authorization in Developer option.
And try sudo adb devices.
I tried loads of things with no joy. Then I did a software update through the PC and it re-installed the drivers. Now it's working again, so try this if all else fails.
For Meizu MX5:
Connect to PC > Pull down notifications menu > Click Touch for other USB options > Choose Built-in CD-ROM > The device opens on windows > Go to F:\USB Reference Manual\EN\ADB_Reference_Manual.txt and follow the instructions.
For windows this is what the file says:
Create or modify the file C:\User\<Your username>\.android\adb_usb.ini. Add a line (with the content "0x2a45") to this file.
It worked for me.
Setting the USB mode isn't good enough. USB debugging must be enabled to allow adb to connect to the phone. This probably states the obvious but for me it took a while reading through these comments and wondering why adb doesn't connect. make sure your developer mode is active on the phone and "Developer Options" -> "USB debugging" is enabled.
Sony Xperia Z3:
Enable Settings > Developer options > USB debugging -> True
Enable Settings > Device Connection > USB Connectivity -> True
Attach Phone, Dialog "USB for transfer appears"
opt: [Select "Mass Storage Mode (MSC)"]
opt: [Click through "Xperia Companion Setup"]
opt: [Software Update]
Reboot Device and PC
Download and unpack http://developer.sonymobile.com/downloads/drivers/xperia-z3-driver/
Select "Mass Storage Mode (MTP)"
Windows > Device Manager > Right Click on Unrecognized Device D6603 > Install new Driver: Selecto location for the unpacked xperia-z3-driver
As nothing worked for me...
Enable Settings > Developer options > USB debugging -> True
Enable Settings > Device Connection > USB Connectivity -> True
Attach Phone, Dialog "USB for transfer appears"
opt: [Select "Mass Storage Mode (MSC)"]
opt: [Click through "Xperia Companion Setup"]
opt: [Software Update] Reboot Device and PC
Maybe also then installed wrong driver.
Here is how to install the correct driver. Well, have to admit, I am new to the Sony World, and I think others might be more into it how many duplicate device types there exist.
Windows:
Now at least I found it on device manager listed under "Other devices" - for my Xperia Tablet Z it was SGP311 of course. Just unplug and plug back in, if you are not sure, which device it is. Go back to the sony drivers page:
https://developer.sonymobile.com/downloads/drivers/
Or google for *Sony driver #MyDeviceId#"
Download and unzip the driver.
Now right click on the device in device manager and select "update drivers". Select drivers from local storage (automatic update was not working for me!)
Now give the folder, you just extracted/unzipped.
Now it worked for me and the device is no longer listed under "other devices". Make sure to authorize your computer for debugging on the sony device.
Just unlock the Sony Xperia and you will have to accept the prompt to pair with the computer.
In my case I just had to change USB ports. For some reason this would only work on a USB 3.0 port.
I have the Galaxy Nexus. I turned on debugging mode and when I tried to update driver software, I got a message saying that my driver was up to date.
I'm trying to run a simple "hello world" but Eclipse doesn't recognize that my phone is connected when I try to run it...
Try these three things in your devices Settings...
Unknown sources: Allow installation of non-market apps. (On my Galaxy sIII it is found under "Security")
Turn on USB debugging (under Developer options. Do this before you plug your device into your computer.
Turn on USB tethering (on my phone it is found under "Wireless and Network" settings
USB debugging mode should be on in your phone and if using Windows install all drivers required whereas in Mac and linux you just need to check your USB Debugging in Setting->Developer options