Skip to content

Instantly share code, notes, and snippets.

@medvid
Created February 5, 2014 17:34
Show Gist options
  • Save medvid/8829103 to your computer and use it in GitHub Desktop.
Save medvid/8829103 to your computer and use it in GitHub Desktop.
# Skip this section below if this device is not connected by USB
SUBSYSTEM!="usb", GOTO="android_usb_rules_end"
LABEL="android_usb_rules_begin"
# Devices listed here in android_usb_rules_{begin...end} are connected by USB
# HTC
ATTR{idVendor}=="0bb4", ENV{adb_user}="yes" MODE="0660", GROUP="plugdev"
# ZP900S : Auto-start USB tethering
ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0005", RUN="/usr/local/bin/tether.sh"
# Enable device as a user device if found
ENV{adb_user}=="yes", MODE="0660", GROUP="adbusers", TAG+="uaccess"
# Devices listed here {begin...end} are connected by USB
LABEL="android_usb_rules_end"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment