I am working on a interesting problem. I want to debug my android phone from my nexus 7 tablet.
I have managed to connect the two devices using USB cable and the nexus 7 is in host mode, however the phone is only recognized as a camera or a storage device.
I have terminal up and running on my nexus 7. I am running adb but cannot see the connected samsung s3 device.
Has anyone done something like this? Any ideas on what can be done here?
Thanks and appreciate your help.
I tried doing the same thing thru the Terminalemulator. I got the same results as you first, then I tried to pull the USB cables from the three intersections, and replacing it again:
in phone
between OTG and standard cable
in nexus 7
I got it to work when I pulled it out from the nexus 7 (host) and replaced it.
I have a rooted nexus 7 but it did not seem to need any su permisions. It also worked to put a USB hub between the two devices and add a keyboard so that the terminal operation was smoother.
I hope that you get it to work, it is a pretty cool feature!
Related
I am having a small issue with Android Studio. Whenever I put my phone into either of the front two USB ports, it shows my device as "Offline". If I use any of the back USB ports, it recognises the device perfectly fine.
I can charge and browse my phone fine from the front two USB ports. I have tried resetting ADB, and installing/updating Samsung USB drivers. I have tried enabling and disabling USB debugging - but no luck.
It really can't be an issue with the phone or with Android Studio, as in the back USB ports it works fine - surely it has to be an issue with the front USB port?
Anybody have any ideas on how I could solve this? (Other than just using the back ones!)
I have the same problem. I have 4 USB 3.0 ports on the computer and 2 USB 2.0 on the keyboard. Nexus 5 can be plugged and recognized on all of them while Samsung Galaxy S4 is not recognized on one of the keyboard ports and one of the PC ports. In my case it is the device I guess. You can try with another device to see.
You can try this:
Go to tools/enable adb integration and uncheck it.
now check it and run again. Next time, android studio will restart adb and it may find your device.
I have a problem connecting nexus 9 as a ADB device. Whenever I plug in Nexus 9, Windows 7 automatically detects it and installs it as a portable device. I uninstalled it but every time I plug it again it makes it portable device. I tried to update the driver and show the location of the driver I downloaded, it keeps on saying that it has the latest MTP driver.
I have the Nexus 9 in developer mode, PTP mode and also the debugging is on.
What should I do? How do I connect it for development?
Thanks
Did you turn on USB debugging on device (Settings->Developer Options->USB Debugging)? If not, machine won't recognize device as ADB.
I have found the Nexus 9 to be fussy regarding USB cables. I have various cables which work fine with adb and my Nexus 5 but they don't work with my Nexus 9 in MTP or PTP mode.
The only USB cable I can get to work is the one which came with my Nexus 9.
Its actually a Motorola cable with a hologram sticker on it. Although this may not be what ships standard with the device since I bought it without original packing.
Install MoboRobo or moboginie on your pc if you are using widnows.It'll definitely work.
I'm new to android development so apologies if this is a stupid question.
I'm having trouble seeing my android devices in Eclipse. I've switched on USB debugging, configured them to connect as a camera not mass storage, but when I run ./adb devices, there's no device showing, even though I have a Samsung Galaxy and a LG Nexus connected via USB. On both phones I get a notification saying "USB debugging connected" and "connected as a camera" so the phone obviously thinks it's connected.
The problem appears to be intermittent. Sometimes the Galaxy shows up:
Macbook:~/workspace/android-sdks/platform-tools ./adb devices
List of devices attached
3334AB246B5200EC device
Then I unplug and reconnect it, and it disappears.
I've tried 3 cables and 2 devices now. Should I just give up and use an emulator instead?
I had to download the Android File Transfer mac application, and then it worked fine. I also had to use the right USB cord -- some don't have a data channel.
I know your problem is intermittent and as Jim says, restarting Eclipse helps when unplugging the usb and plugging it in again doesn't help. I did however find this extremely helpful detecting a new device: adb not finding my device / phone (MacOS X). Give this a shot for your already discovered devices, to see if that helps.
Sometimes adb fails to recognize devices properly.
Try "adb kill-server" and then "adb devices"
I hope someone can help me.I could connect my windows 7 machine and Eclipse successfully to my nexus 7. I lost my tablet and I bought the new one but now my windows machine can't even recognize it as external device neither my Eclipse works with it anymore. Does windows 7 keeps USB ID somewhere? Should I re install something?I appreciate your help.
Be sure that you have USB Debugging enabled.
Open up Device Manager. Do you see a tab for ADB Devices? Do you see your N7 anywhere on the list?
If not, on your tablet, go in and change the PC Connection mode to whichever one it is not on. And then try again.
I have had problems with my N7 as well where it will only connect when set to a certain connection type.
I have found that if Eclipse is not installed on the computer, the computer is able to see multiple Nexus 7 tablets as MTP devices. However, for computers that have Eclipse installed on them they can only see the first Nexus 7 tablet connected to them as an MTP device. All other tablets connected to the computer are seen as an unspecified device. It seems like Eclipse is storing a unique identifier from the first tablet associated with it. The only way I can get apps built in Eclipse onto my other Nexus 7 tablets is to change the usb connection to PTP (not MTP) and then my windows 7 computer sees my tablet as a camera and I can move the .apk file over to the tablet. Is this how it's suppose to work?
I think I have done everything right but I cannot get Eclipse to recognize my plugged in running Samsung Tab-2. Below is what I have done. What have I done wrong?
1) I have instelled USB drivers and can move files from the tablet to the Windows XP computer.
2) I have enabled USB debugging on the phone
3) I have been debugging on a virtual device then sending the apd files over email to my tablet and phone. That works fine. Obviously, I have enabled that on the phone.
4) I set up Eclipse to always ask what device to debug on.
5) I plugged the tablet into the USB slot and it is recognized by Windows.
6) I read the instructions Here
7) I click debug and am faced with a blank list of devices under "Choosing a running Android Device". My tablet does not show up.
8) I find myself at wit's end (adventure reference).
9) I ask for help on Stackoverflow.
I think you should take a look at this answer. An identical issue was accepted at that post.
Hope it works to you!
Try a different MicroUSB cable, I have seen this affect the device showing up in Eclipse, even if the cable is working fine for everything else (even transferring files to/from that specific device).
If nothing works you can use adb over wifi by calling : adb connect "your ip adress". I am assuming the Tab runns Android ICS. You can enable Adb over wifi right under the USB debugging- menu point.
How many times have I called tech support and had them tell me to reboot windows? Well, the solution was to reboot windows. Nowhere in any of the installation instructions did I skip a step of rebooting but just thought I should try that.