How to connect Android to PC

时光总嘲笑我的痴心妄想 提交于 2019-12-04 05:33:32

You should add a rule to /etc/udev/rules.d (i.e.: 51-android.rules):

SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"

just in case verify that the id for your phone matches 0x04e8 using lsusb. Once the new rule is added just reload them by

$ sudo udevadm control --reload-rules

You have to install the ADB/USB driver corresponding to your Android device.

Summary:

  1. [ -s /etc/udev/rules.d/51-android.rules ] || sudo echo 'SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"' >/etc/udev/rules.d/51-android.rules
  2. sudo udevadm control --reload-rules
  3. Download a patched for Linux ADB executable: http://floe.butterbrot.org/external/adb.gz
  4. Replace android-sdk-linux_86/tools/adb with a new one.

Thanks.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!