Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin not connecting phone #5

Open
GrigorAmBC opened this issue Dec 1, 2020 · 5 comments
Open

plugin not connecting phone #5

GrigorAmBC opened this issue Dec 1, 2020 · 5 comments

Comments

@GrigorAmBC
Copy link

There's a bug in this plugin. If you connect your phone over wifi, and then put your laptop to sleep, then bring it back, the plugin won't be able to connect my phone over wifi, even if I try to reconnect it with usb. It helps to relaunch android studio.

@y-polek
Copy link
Owner

y-polek commented Dec 2, 2020

@GrigorAmBC I'll need your help to reproduce this bug.
Which OS do you use?
Is USB connected device visible in a list after you bring your laptop back from sleep?
Does Log view print anything when you try to connect the device? (click Toggle Log button in plugin window's toolbar to open the Log)

@GrigorAmBC
Copy link
Author

GrigorAmBC commented Dec 2, 2020

OS is Windows 10 2004 Home. Here's is a document with some description:
Error description.docx

@MuthuHere
Copy link

MuthuHere commented Dec 10, 2020

same for me..

image
you can see from the image, samsung device is connected and in the device list of ABD, its not showing up.

here is the settings screen

image

Edit:
MacBook Pro OS : macOS Catalina

@GrigorAmBC
Copy link
Author

It seems the problem is not with the plugin, but rather with adb itself. I started using adb commands eg connect, disconnect. The same issue happens sometimes. Solution is to adb disconnect and connect again

@y-polek
Copy link
Owner

y-polek commented Dec 22, 2020

I cannot reproduce the issue after sleep, but I can see similar behavior with unauthorized devices.
It happens only if I skip the Always allow from this computer checkbox in the Allow USB debugging? prompt.

When I connect Wi-Fi device using adb connect 192.168.1.179 command (and agree to Allow USB debugging? prompt) I get the following adb devices output:

List of devices attached
R23M52Y7E0H	device
192.168.1.179:5555	unauthorized

Even though I agreed to the Allow USB debugging? prompt the device is still unauthorized.
unauthorized devices aren't displayed by the plugin because it's impossible to fetch any information (name, IP, android version) besides device ID.

For me, the only way to connect that device over Wi-Fi is to disconnect it and reconnect with checked Always allow from this computer checkbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants