13
votes

I'm finding I need to restart my computer in order for Android to recognize that it's connected to my computer. Sleeping the computer seems to require another restart even after resetting the NVRAM.

When Android won't connect to the computer, plugging the USB cable back in doesn't help. Neither does restarting the phone, changing the USB mode in Developer Settings from "Charging" to "PTP" or the other modes. Nor does killing adb and starting it again.

Specs:

  • Phone
    • Google Pixel 2
    • Android 8.0.0
  • Computer
    • MacBook Pro (Retina, USB Type-A ports)
    • macOS 10.13.1 High Sierra
    • adb 1.0.39 (rev. 3db08f2c6889-android)
  • Cable
    • AmazonBasics USB 3.1 Type-A to Type-C
2
What happens when you use the C to A cable that came with your phone? Do you have lint in your phone's charge port? I had issues with the usb-c port in my nexus 5x and my pixel (1) and both times it was lint in the charge port.Jared Menard
Do you have a different computer that you can test the cable out with?Jared Menard
I've tried it on many different machines and there is not lint in the port.Mangopop
Did you ever figure this out?Code Wiget

2 Answers

1
votes

I have found that it was the cable. Apparently some USB cables allow only charging but not file transfer. After trying another cable, my Android File Transfer app detected it right away and I was

-9
votes

You have to enable the Developer Mode and USB Debugging first. See e.g. https://www.bestusefultips.com/enable-developer-mode-on-pixel-2-pixel-2-xl/

After this you should be able to see your device with adb devices -l shell command.