12

Wireless debugging seems to pair, but then the device just does not show up. I tried it on Mac and it works, but it does not work on Linux. I am on a Samsung phone.

I run adb pair [IP]:[PORT] [CODE]. It executes successfully and tells me that I am paired with the device. Then I run adb devices and it is just blank.

On my phone, it doesn't say that it is paired to myuser@hostname, but rather root@hostname for some reason. I even tried logging in as root and listing the devices but it is of no avail.

The above steps work fine and list the device on a Mac. The phone also shows "Connected" next to the hostname and user, and the user is not root but rather the username.

I have tried-:

  1. Disabling firewall
  2. Trying the tools from the official repository, AUR package, google website, etc.
  3. Restarting my PC and Android phone
2
  • 2
    Yes you still need to do adb connect after pairing. Pairing replaces the old RSA key authentication, but making connection with the paired device is still up to the user. Though making it a part of pairing isn't a bad idea. May 29, 2021 at 15:30
  • This works on macOS, so this not working on Linux seems like a bug.
    – Atemu
    Apr 20, 2022 at 19:38

1 Answer 1

18

As per the official documentation (snapshot of 22 January 2022), after pairing the device, the user still needs to manually connect the device

  1. (For Linux or Microsoft Windows only) Run adb connect ipaddr:port. Use the IP address and port under Wireless debugging.

Despite it is not mentioned on the current documentation anymore, this step is still necessary (tested on Windows).

4
  • 1
    Relevant ADB issue tracker report: issuetracker.google.com/issues/225320059
    – Atemu
    Apr 20, 2022 at 19:37
  • This worked for me. Just had to connect after completing the pair.
    – code2be
    Apr 5, 2023 at 2:54
  • I could make it work only by not specifying the port (adb connect ipaddr). Otherwise a Connection refused error is returned. Jun 18, 2023 at 12:48
  • 2
    I had to use the same ipaddr:port from the debugging screen, not the same as I used adb pair that is the popup when you go "pair with a code" on Android Dec 8, 2023 at 12:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .