Last active
February 6, 2022 13:01
-
-
Save nmelihsensoy/97ba8b03480418506cb1837e887b286b to your computer and use it in GitHub Desktop.
wsl adb connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| With using 'usbipd-win': | |
| From Windows(Windows 11) : | |
| usbipd wsl list | |
| usbipd wsl attach --busid <DEVICE_BUSID> | |
| if gives 'WSL Virtual Switch' error : | |
| find interface that Windows and Wsl can ping each other then | |
| From WSL(Ubuntu 20.04) : | |
| usbip list -r <WINDOWS_IP> | |
| sudo usbip attach -r <WINDOWS_IP> -b <DEVICE_BUSID> | |
| From WSL(Ubuntu 20.04) : | |
| lsusb | |
| sudo adb kill-server | |
| sudo adb start-server | |
| adb devices | |
| if device not shown : | |
| From Android(Android 11) : | |
| Developer Settings -> Default USB Configuration : PTP | |
| With using adb over network: | |
| From Windows(Windows 11) : | |
| adb tcpip 5555 | |
| From WSL(Ubuntu 20.04) : | |
| adb connect [device ip]:5555 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment