Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Created March 2, 2026 00:49
Show Gist options
  • Select an option

  • Save cmbaughman/d816cd82bed416874f3faa917858b56d to your computer and use it in GitHub Desktop.

Select an option

Save cmbaughman/d816cd82bed416874f3faa917858b56d to your computer and use it in GitHub Desktop.
Get Android Dev Tools Working Right With USB
#!/usr/bin/bash
sudo apt update
sudo apt install android-sdk-platform-tools-common
# If it's already installed, manually add the Google vendor ID
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"' | sudo tee /etc/udev/rules.d/51-android.rules
sudo udevadm control --reload-rules
sudo service udev restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment