-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Support for Android Debug Bridge (adb) #60
Comments
I'll try this myself in a bit to see if it works for me. I've been handling this use case by running ADB in windows with |
Got it working. I had the wrong kernel version and needed to setup the udev rules:
Your device should now be visible in WSL and should be in debug mode before continuing:
2 . Follow these instructions to configure your udev rules for the device. EDIT: Also, I find I have to do the following for every boot of WSL (also, after every change to the udev rules):
If I'm not missing anything, ADB should now be able to see your device:
|
Thanks for your response, @cjshearer. Unfortunately, it won't work for me just yet. I set up everything like this:
As you can see, there is no |
I tried to connect my device again this morning and ran into the same problem you did. I spent a couple hours trying to find the minimal set of instructions to connect my device (after having already followed the WSL Support instructions). Also, I switched to using these udev rules for android, although it did work for me before then. I find I have to do the following for every boot of WSL (also, after every change to the udev rules):
After which, the device is visible to ADB. Having done this once, I can unplug/plug my device back in and (after reattaching to WSL) it is still visible to ADB, so long as I don't restart WSL. It seems rather silly that I need to restart the udev service every time, but looking around online I'm not the only one who has had problems with udev not triggering at the appropriate time. I don't really know how it works, so I can't speculate, but this is good enough for me. Besides, I was going to write a script that I can call from WSL to attach my pixel 5 anyway, so I'll just make restarting udev a part of that. |
@cjshearer Thanks for sharing! It works for me now too, althoug sometimes I have to run Now the question is who is responsible for making the process a bit more user friendly. Is it related to usbipd, WSL or ADB? |
Hello. I already follow the instruction to add
Edit: I am on ArchWSL, but there should be no difference. Output of some commands:
Edit: Edit: At some point, Edit: You may ignore above |
After further investigation, turns out I need to run Aside from that, I can say that I have successfully connected my device to WSL2 |
I don't know if this is under the scope of this project, but I will put the context of my comment above: My device only detected under
As far as I know, running |
WSL documentation has been updated with |
Hey, awesome project! I am using Windows 11 and WSL2 and tried to play around with ADB. Unfortunately, it does not seem to work at the moment. My current output is the following:
As you can see, my phone is available in WSL, but ADB does not see it. Do you have any idea if it might be a configuration issue or is it simply not currently supported?
The text was updated successfully, but these errors were encountered: