How to Connect Pixel 2 to ADB

Viewed 25948

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?

7 Answers

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.

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

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,

  1. Search Settings for Media Storage
  2. App info -> Storage -> Clear Cache
  3. 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.
  4. 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.

Related