Skip to content

Instantly share code, notes, and snippets.

@macbre
Last active May 27, 2017 21:12
Show Gist options
  • Save macbre/e4db85bcf14a7a6eeb5108339960ab25 to your computer and use it in GitHub Desktop.
Save macbre/e4db85bcf14a7a6eeb5108339960ab25 to your computer and use it in GitHub Desktop.
Huawei and Debian - MTP
sudo echo 'ATTR{idVendor}=="12d1", ATTR{idProduct}=="1037", SYMLINK+="libmtp-%k", MODE="660", GROUP="disk", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"' >> /etc/udev/rules.d/51-android.rules
sudo apt-get install mtp-tools jmtpf gmtp
May 27 23:11:10 debian kernel: [29094.824014] usb 1-1: new high-speed USB device number 25 using ehci-pci
May 27 23:11:10 debian kernel: [29094.973019] usb 1-1: New USB device found, idVendor=12d1, idProduct=1037
May 27 23:11:10 debian kernel: [29094.973023] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 27 23:11:10 debian kernel: [29094.973025] usb 1-1: Product: Android
May 27 23:11:10 debian kernel: [29094.973027] usb 1-1: Manufacturer: Android
May 27 23:11:10 debian kernel: [29094.973030] usb 1-1: SerialNumber: xxxxxxx
May 27 23:11:10 debian kernel: [29094.973811] usb-storage 1-1:1.0: USB Mass Storage device detected
May 27 23:11:10 debian kernel: [29094.973974] scsi host7: usb-storage 1-1:1.0
May 27 23:11:10 debian systemd[1]: Starting USB_ModeSwitch...
May 27 23:11:10 debian /etc/gdm3/Xsession[1897]: thunar-volman: Nieobsługiwany typ urządzenia USB.
May 27 23:11:11 debian /etc/gdm3/Xsession[1897]: thunar-volman: Nieobsługiwany typ urządzenia USB.
May 27 23:11:11 debian usb_modeswitch: switch device 12d1:1037 on 001/025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment