How to use nexus 7 for devlopment with mac os - android

Im setting eclipse on MacOS 10.8 for android development. My Nexus 7 does not show up in the Android device chooser list. I have an HTC One S and that works fine.
Here are the things i have tried.
enabled developer mode on the nexus
installed all Android SDK extras
tried switching between both MTP and PTP modes on nexus
Installed Android File transfer App on Mac.
There are several versions of this question on SO, most of the answers pertain to windows machines. Note i'm interested in a MacOS solution

I had the same problem & came across this post. For me ono's comment worked. I needed to use a usb data cable - not a usb charge only cable.
See http://answers.yahoo.com/question/index?qid=20130418072711AA6kqOP
For me that happened to be a usb I used to transfer books to my Kindle.
Once I connected the correct usb on the upper left corner the Nexus 7 printed
Connecting as a Camera
USB Debugging Connected
I already had USB debugging enabled and in an attempt to fix this problem I had selected Camera (PTP) instead of Media device (MTP) under the Android Settings - Storage - : (Eclipse) - USB computer connection

Reset ADB by going to the DDMS perspective, look at the devices View and you will see a drop down arrow with one of the options being to "Reset ADB". I'm using the same setup and I have to do this from time to time.
Also, adb seems to be more stable when neither MTP or PTP modes are checked.

Try plugging your Nexus into a USB hub attached to your Mac.
After tearing my hair out for a day, trying every single cable and set of troubleshooting steps I could find online, I found out that if I plug my Nexus 7 into a crappy little USB hub I have kicking around it works PERFECTLY. If I plug it directly into my Mac I get nothing. (Running MacOS Sierra 10.12.5 on a late 2013 Macbook Pro Retina BTW.)

I do not know if this can help you but I see my Nexus 7 tablet in Google Chrome Canary on Mac Os 10.9.1 after doing that:
Installing Chrome Canary on the Mac
- On the nexus 7 : in the settings, click 7 times on the "version" to allow developer mode (not a joke)
In the general settings of your device, the "developer options" items shows up, click on it and in the submenu allow USB debugging
Plug in the USB cable between the device and the mac
- On your device in Chrome Canary: go to "webbdevelopper tools" and allow USB debugging
On the mac, in canary your devices will appear at this adress :
chrome://inspect/#devices
You can inspect the devices with the usual debugging tools (You can open URLs and inspect them) through Chrome Canary.
If I am not clear, the whole procedure is demoed in a video in the course "Web mobile development" at Udacity.
Good luck!

I was struggling with this too. It appears that Nexus 7 devices have an issue with their data pins inside the micro USB slot getting worn out.
My resolution was to
1) blow into the port and try to clean out any dust.
2) i used a small paper clip to pry the data pins up slightly (the inside pins, the 2 outer pins are for power).
This worked for me, as now the data pins in the slot are making contact with the cable pins. Be careful though!

Related

How to Connect Pixel 2 to ADB

I have a Pixel 2 that is unlocked and has USB debugging enabled. Yet if I plug it into my computer, it only ever shows charging. The USB cord works to connect other devices for data transfer no problem though, so it's not the cord. I have no trouble connecting any other devices to any of my ports, even the original Pixel. I am running Windows 10 pro. The Pixel 2 connects fine to an older computer running Windows 10 pro. I have Android Studio 3 and the usb driver from Google tools. If I go into device manager and click on the Pixel 2, it says I have the most updated driver if I try to update. I have tried disabling and reenabling USB debugging, revoking permissions, etc. Nothing causes it to do anything other than charge. There is no pull-down menu either to select different options.
How can I get my Pixel 2 to be seen by my computer?
I had the same issue connecting my S7 Edge to my MacBook Pro running Android Studio. Make sure that you have the "USB Configuration" setting in the Developer Options to be set to "MTP" ("PTP" on newer phones).
One last ditch effort, a lot of the times when my phone would not show up, switching USB ports on my computer would work most the time. I am very unsure as to why it would, but it would. I thought this was just my situation, but it's worth a try on your end.
Plug cable into device by interchanging upside down. This is hilarious but it worked for me.
I had the same issue connecting my Google Pixel 2 to my Android Studio and this works for me:
Settings -> Connected devices -> USB -> Transfer files (otherwise it's only charging your phone by default)
Settings -> System -> Developer options -> USB debugging (turn this on)
A question prompts up and you need to allow your computer to see your device
lo and behold, my Android Studio can see my Google pixel 2.
My problem ended up being that my Pixel 2 wouldn't connect to my MacBook Pro when using a USB 3.0 cable. It would charge fine, but the mac wouldn't detect it (in any USB Configuration) and the trust device dialog or USB debugging notification never appeared on the device.
Using a chain of cables/adapters that included a USB 2.0 component fixed the problem, e.g. Pixel 2 -> USB-C to USB 2.0 cable -> USB to USB-C cable -> MacBook.
It doesn't appear this problem (and solution is limited to just me
I tried all of the above, several times over the last few months and the only way I am able to get it to work (temporarily) is to reboot my MacBook Pro. It will work for the rest of the day, until I sleep the MBP again.
After my Pixel 2 updated to Android 9, I had to clear the cache of the Media Storage app for my phone to be recognized by my computer / have my phone recognize it was connected to a computer.
My phone has to be plugged in at Windows 10 startup time for this to work.
I connected my phone with USB-C and restarted Windows 10.
In Android,
Search Settings for Media Storage
App info -> Storage -> Clear Cache
Phone prompts me (immediately in my case) with 2 notifications, 1 notification that USB Debugging is enabled (follow steps from this answer), and 1 notification that it is charging.
Tap the charging notification for more options. What I see by default worked for me. I see "USB controlled by: This device" and "Use USB for: No data transfer" (Selecting "File transfer" also works for me)
In Windows 10's Devices -> Bluetooth & other devices -> Other devices, I now see Pixel 2 (Or "MTP" if I had selected "Use USB for: File transfer" in step 4.
The first time you do this, Windows should have sent a notification that the device is being set up (I assume it installs the drivers).
I can now see my Pixel 2 as a connected device in ADB.
Solution based on this thread:
https://productforums.google.com/d/msg/phone-by-google/JlooQqANO2A/d_n-MGIHAgAJ
For debian/ubuntu only
If you try to use the adb in {your sdk location}/platform-tools/, you will see the message
no permissions (user XXX is not in the plugdev group); see [http://developer.android.com/tools/device.html]
Turns out, you should be using another package with some custom rules of some sort (I have no idea what plugdev group means), and basically you just have to
apt-get install android-tools-adb
and use that adb instead.

Android Studio no longer recognizes LG G Stylo

I need to know how to make Windows 7 forget it ever connected to my LG G Stylo phone. I have three devices that I use in Android Studio development. For some reason, this one is no longer being detected by the ADB. Something has happened to make it no longer show up, because it did a couple of weeks ago.
AS's ADB will detect my other two devices, and this device shows up in the in the ADB on another computer. I have tediously gone through the registry and removed everything referencing the Stylo, but it still will not show up in AS's ADB.
Thanks for the help!
John
To start, I have just purchased the LG Stylo 3 plus and ran right into this situation. TO repeat the basics you need
With Android Studio shut down...
Turn on Developer options (tap 7 times on build number in settings
(Settings>System>About Phone>Build Number
Turn on USB Debugging in Developer Options
(optionally) check on the type of USB connection, MTP or PTP should
work
(Optionally) Because I did it, also do a revoke USB tap.
Here was the key for me. I needed to install the LG USB Windows Drivers for my Windows 7 (I'll try 10 tonight and update). Go to this page
LG Drivers and firmware
and either type in model number or browse to find device. LG has a nice interface to install the Windows Drivers. I recommend the Support tool to verify the device as the up to date drivers as well. Start Android Studio and to test I just started the app in debug mode and went through the process of setting up ADB for using the new;y connected device.
Developer options" has to be ON in order to make AS see the device
If even though device manager you can't saw the device, Windows couldn't find drivers.Maybe the drivers are hidden on the device otherwise download it and install it.
If that doesn't work:
Shut down
Hit F8 (or whatever gets to startup options screen on your computer)
Disable Driver Signature Enforcement.
Run driver

samsung android usb device disconnect reconnect constantly windows 7

When I connect samsung tab s2 to pc windows 7, initially windows does not recognize usb device, or MTU driver failed install, many error.
I uninstall all other usb driver, still has problem.
samsung android usb driver, unknow device, usb device disconnect constantly
MTU usb driver, not installed properly.
not sure what is the cause.
=============================================
Updated:
The problem solved by Buy a non-samsung, non-OEM cable.
This this so bad, that samsung OEM cable is the reason of all trouble.
I end up spend $10 buy any brand(except Samsung) cable on amazon.
samsung android usb driver, unknow device, usb device disconnect constantly
MTU usb driver, not installed properly.
Samsung OEM micro usb cable is the ultimate cause, when you move or touch the cable around, it get disconnected, device manger constantly refreshing, constantly scan for hardware change.
Replace Samsung OEM micro usb cable with any other brand will fix all problem.
==========================================================
For my HP Desktop.
1) repeat press F10 when power on, get into BIOS configure.
2) on top menu - advanced - device option - USB 3.0 support (enable it), default is disabled.
3) sometime device manager refresh scan for hardware change, then unknow device,
this is because windows install driver from windows update, should disable it, should let windows install driver from samsung driver folder only,
Disable Searching Windows Update for Device Drivers
Click Start, right-click Computer, and then click Properties.
In the Tasks list, click Advanced System Settings.
On the System Properties dialog box, click the Hardware tab, and then click Windows Update Driver Settings.
Select Never check for drivers when I connect a device.
Click OK twice, and then close the System dialog box.
I believe this is the real cause for all trouble, such as MTU usb driver not installed properly, samsung android device not recognized by PC, android usb device constantly disconnect and reconnect and failed to recognized. etc.....
if you use android simulator, must enable bios vt-x visualation technology from bios
bios - security - system security - visualation technology - enable.
Leeds VT enable.jpg
below are try may not be the cause.
=====================================================
try:
1) remove previously installed blue tooth usb device. (or SD card), they may be the problem.
2) remove google androic studio ( maybe problem )
3) unplug internet. ( I see samsung continuing removed add, remove add, not sure if computer keep removing hardware)
=========================
windows, device manager, 'scan for hardware change' constantly , android device disconnect constantly,
Scroll to the right and type 'Power Options' in the search field and click on it.
Click 'Change plan setting' on your chosen plan.
Click 'Change advanced power setting' on your chosen plan.
Find 'USB settings' and open.
Find 'USB selective suspend setting' and change it to disabled.
This fixed ALL my USB 3.0 issues. Not mentioned anywhere else!
Its a BIOS ISSUE. Hopefully your computer has this option.
Go into your BIOS and TURN OFF "Legacy USB Support".
If you want even more speed, (there is a catch), Switch from "quick remove" to Buffering. BUT YOU HAVE TO DISCONNECT THE DRIVE WITH THE REMOVE USB DEVICE OR POWER DOWN THE COMPUTER FIRST.
hey guys here is the fix if you are having trouble with your Windows 8.1 all USB devices keep disconnect / reconnect with power saving off ... this took me two days to try to figure out what the heck was going on so i luckily found the fix hope this saves you alot of time an you dont have to downgrade to windows 7 if you love windows 8.1 good because its not what virgin of windows you have it dosnt matter what OS your on its clearly your BIOS so i suppose many people having this problem has an ASUS motherboard so heres the fix
restart your computer an go into your BIOS Press F2 repeatedly or THE DEL Key for those who dont know how to go to BIOS
2.Go into Advanced mode in your BIOS by clicking F7 on keyboard
3.Go to Advanced Tab Scroll down to USB Configuration Scroll down to XHCI Mode yours Will probably be on Smart Auto or Auto so Disable it Completely an Save changes F10 an click yes an exit it will auto restart your computer an BOOM You have Fixed the Problem by simply reading this post Hope this helps guys
my samsung tab s2 and tab pro 8 can't connect to pc windows 7. device manager showing unknow device, device manger constantly refreshing. I try million way, find out Samsung OEM micro usb cable is the problem, I replace it with other brand from best buy, all problem fixed.
I had exactly the same issue, and I think it is related to actual motherboard driver (Windows 8, 10). I have several android devices and all of them are connecting/disconnecting every 1-2 sec.
Things I did:
My BIOS doesn't have any configuration to switch USB 3.0 support
From Power Options USB selective suspend setting set to disabled (didn't fix the issue for me)
In Android dev options change USB configuration to MTP (also didn't fix the issue, as it was automatically switching back to Charging after ~10 attempts to connect)
Fix:
Disconnect all USB devices. (very important as disable operation might not be available)
Open System Properties -> Device Manager
Disable USB Root Hub (USB 3.0)
Disable Intel(R) USB 3.0 eXtensible Host Controller - 1.0 (Microsoft)
Connect your usb devices including android
Enable Intel(R) USB 3.0 eXtensible Host Controller - 1.0 (Microsoft)
Enable USB Root Hub (USB 3.0)
Btw it works fine on windows 7 before it makes updates to motherboard drivers, usually after first updates you can see that usb 3.0 driver support is enabled, and same issue appears.
Hope that will help someone.
Discovered a random weird solution that worked for me (Windows 8.1, Samsung Galaxy A20, Dell Lattitude laptop). The A20 uses a USB-C connector which, supposedly, is non-polarized unlike earlier versions of USB. I flipped the cable over in the phone and the problem went away. Go figure... It probably is a mix of MB hardware, drivers, and who knows what else. Users are on their own as standards evolve.

Android USB Connection Not Working

I can't seem to connect my Samsung Galaxy Note II (N7100) to my Windows 8 Machine (aiming to use the phone for debugging - but current can't even connect the device as mass storage). No USB notification is shown when connecting the mobile by cable.
Things I have checked thus far:
USB Cable (works on different machine and with HTC phone)
USB Ports (tried different ports, 2.0 and 3.0, all working)
PC USB Drivers
Phone (connects to my Win 7 machine)
Samsung Kies (and Samsung driver) and Google USB Driver both installed
PS. The reason Im asking this here is because I'm aiming to use the phone for development and I'm hoping to get some answers that aren't "have you double checked the cable?" like on every Google search I have performed so far. Hopefully another developer recognises this issue.
OK. so You've obviously done the basics and made sure all the cabling is functional.
it sounds like the Volume is not mounting in windows 8
if it's not detected in Windows Device Manager, and More importantly, if it's not visible in Disk Management, then the volume simply is not Mounting.
I would suggest
Try connecting to a Windows 7 Machine and see if it works, if it does, Then Most likely you need Windows 8 Drivers
I would be contacting Samsung Engineers for support on the Issue
What version of Kies are you using
i found this that might be useful for you
Ultimately, as you know the volume is not mounting due to Driver issues, and this needs to be resolved if you are to have a solution
You could always Try setting up XP Mode in Windows 8 and see if it recognizes that way.
Granted this is a bit of a workaround and a bit stuffy, but. Hey, it's another option.
let me know how you go
Go to dial pad & type *#0808#
It displays USB settings
Select MTP+ADB option
Press OK button
Connect to USB cable to PC
It shows Connected as a media device."

Windows 7 can recognize only one Nexus 7 tablet. It can't see a new one

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?

Categories

Resources