Andrew Mercer

Pixel 7

Windows 11 with WSL

Prerequisites

Required Hardware

  • Google Pixel 7 (works with all Pixel devices)
  • USB-C cable (preferably the original Google cable)
  • Linux desktop (Ubuntu, Debian, Fedora, Arch, etc.)
  • Sufficient storage space (recommend 2x your phone's used storage)

Software Requirements

Install usbipd on Windows

Open PowerShell as Administrator and run:

winget install usbipd
Install ADB in WSL Ubuntu
# Debian/Ubuntu
sudo apt-get update
sudo apt-get install -y \
    adb \
    android-tools-adb \
    android-tools-fastboot \
    git \
    python3 \
    python3-pip \
    rsync \
    gvfs-backends \
    gvfs-fuse \
    mtpfs \
    jmtpfs

# Fedora
sudo dnf install -y \
    android-tools \
    git \
    python3 \
    python3-pip \
    rsync \
    gvfs-mtp \
    simple-mtpfs

# Arch Linux
sudo pacman -S \
    android-tools \
    git \
    python \
    python-pip \
    rsync \
    gvfs-mtp \
    android-udev
# Add yourself to plugdev group (for USB access)
sudo usermod -aG plugdev $USER
sudo usermod -aG adbusers $USER  # On Arch

# Log out and back in for group changes to take effect

Enable USB Debugging on your Pixel 7

  1. Settings → About phone → tap Build number 7 times
  2. Settings → System → Developer options → enable USB debugging

Attach your phone to WSL

Plug your Pixel 7 in via USB, then in PowerShell as Administrator:

# List USB devices to find your phone
usbipd list

You'll see something like:

BUSID  VID:PID    DEVICE
2-3    18d1:4ee7  Google Pixel 7

Then bind and attach it to WSL:

# Replace 2-3 with your actual BUSID
usbipd bind --busid 2-3
usbipd attach --wsl --busid 2-3

Step 5 — Verify ADB sees your phone (in WSL Ubuntu)

adb kill-server
adb start-server

Your phone will show a prompt — tap "Always allow from this computer", then:

adb devices
List of devices attached
1234567890ABCDEF    device
mkdir -p ~/pixel7-backups/{full,photos,media,documents,contacts,sms,apps}

# Quick photo backup
adb pull /sdcard/DCIM ~/pixel7-backups/photos/
adb pull /sdcard/Pictures ~/pixel7-backups/photos/