1.Windows上用PowerShell运行:
winget install --interactive --exact dorssel.usbipd-win
2.在WSLUbuntu上终端运行:
sudo apt install linux-tools-generic hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/*-generic/usbip 20
3.在Windows PowerShell上
usbipd list
usbipd attach -w -b <busid>
usbipd detach -w -b <busid>
解决端口block问题:新建防火墙出站规则
如果出现device busy
解决方案:打开windows任务管理器结束adb进程
问题解决后: