adbandroid-studio-3.6

adb is automatically connected by the remote device,but I did not use adb connect


when I updated Android Studio to 3.6.1 adb is automatically connected by the remote device,but I did not use adb connect。These devices are under the same wifi。How can I solve this problem?


Solution

  • This seems to be an issue with the latest version of Android Studio 3.6. A couple of my colleagues seem to have the same problem where any adb-over-wifi devices are discovered automatically and added to the device list in adb.

    I could not find anything about this in the changelogs for the IDE or the platform tools, nor could I find a setting to turn this discovery off. I suggest you create an issue on the bugtracker.

    @Nemoyang commented that you can disable this behavior by setting an environment variable ADB_MDNS to 0. It seems Google is working on an improved adb over wifi through mDNS, but hasn't really disclosed any information.