Skip to content

Instantly share code, notes, and snippets.

@brosahay
Created January 25, 2021 11:15
Show Gist options
  • Save brosahay/a91e6e0ae4a1a0ea80689e13b1336b2e to your computer and use it in GitHub Desktop.
Save brosahay/a91e6e0ae4a1a0ea80689e13b1336b2e to your computer and use it in GitHub Desktop.
Using `adb-sync` in Windows 10 WSL

ADB Sync on WSL 2

  • Disable firewall for WSL vEthernet so that the Windows adb binary can communicate with the Linux adb package and start the adb server on Windows side.

    Set-NetFirewallProfile -DisabledInterfaceAliases "vEthernet (WSL)"
    adb -a -P 5037 nodaemon server
  • Connect to the adb server on Windows from WSL.

    adb kill-server
    export ADB_SERVER_SOCKET=tcp:{IP_ADDRESS_OF_vEthernet_(WSL)}:5037
  • Follow the 'adb-sync' instructions from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment