本站长期提供ROM下载,可以定制多国语言刷机包和和刷机方案。点击这里给我发消息

adb无法连接添加端口参数

ROM相关 半夏月 384℃ 0评论

$ adb shell 无法连接手机的时候,需要自己添加vendor ID(多见山寨厂商)
查看 adb
$ adb version

添加ID
$ notepad .android\adb_usb.ini

添加完保存就可以了。
GV[WL7PGJ75MN)ABVL9$0HP

 

 

 

 

 

 

以上部分为windows部分下面是说在linux下配置USB,配置完adb就可以连上了

配置USB:
执行:

$ gksudo gedit /etc/udev/rules.d/51-android.rules

添加:

Acer
SUBSYSTEM==”usb”, ATTR{idVendor}==”0502″, MODE=”0666″

#ASUS
SUBSYSTEM==”usb”, ATTR{idVendor}==”0b05″, MODE=”0666″

#Dell
SUBSYSTEM==”usb”, ATTR{idVendor}==”413c”, MODE=”0666″

#Foxconn
SUBSYSTEM==”usb”, ATTR{idVendor}==”0489″, MODE=”0666″

#Garmin-Asus
SUBSYSTEM==”usb”, ATTR{idVendor}==”091E”, MODE=”0666″

#Google
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, MODE=”0666″

#HTC
SUBSYSTEM==”usb”, ATTR{idVendor}==”0bb4″, MODE=”0666″

#Huawei
SUBSYSTEM==”usb”, ATTR{idVendor}==”12d1″, MODE=”0666″

#K-Touch
SUBSYSTEM==”usb”, ATTR{idVendor}==”24e3″, MODE=”0666″

#KT Tech
SUBSYSTEM==”usb”, ATTR{idVendor}==”2116″, MODE=”0666″

#Kyocera
SUBSYSTEM==”usb”, ATTR{idVendor}==”0482″, MODE=”0666″

#Lenevo
SUBSYSTEM==”usb”, ATTR{idVendor}==”17EF”, MODE=”0666″

#LG
SUBSYSTEM==”usb”, ATTR{idVendor}==”1004″, MODE=”0666″

#Motorola
SUBSYSTEM==”usb”, ATTR{idVendor}==”22b8″, MODE=”0666″

#NEC
SUBSYSTEM==”usb”, ATTR{idVendor}==”0409″, MODE=”0666″

#Nook
SUBSYSTEM==”usb”, ATTR{idVendor}==”2080″, MODE=”0666″

#Nvidia
SUBSYSTEM==”usb”, ATTR{idVendor}==”0955″, MODE=”0666″

#OTGV
SUBSYSTEM==”usb”, ATTR{idVendor}==”2257″, MODE=”0666″

#Pantech
SUBSYSTEM==”usb”, ATTR{idVendor}==”10A9″, MODE=”0666″

#Philips
SUBSYSTEM==”usb”, ATTR{idVendor}==”0471″, MODE=”0666″

#PMC-Sierra
SUBSYSTEM==”usb”, ATTR{idVendor}==”04da”, MODE=”0666″

#Qualcomm
SUBSYSTEM==”usb”, ATTR{idVendor}==”05c6″, MODE=”0666″

#SK Telesys
SUBSYSTEM==”usb”, ATTR{idVendor}==”1f53″, MODE=”0666″

#Samsung
SUBSYSTEM==”usb”, ATTR{idVendor}==”04e8″, MODE=”0666″

#Sharp
SUBSYSTEM==”usb”, ATTR{idVendor}==”04dd”, MODE=”0666″

#Sony Ericsson
SUBSYSTEM==”usb”, ATTR{idVendor}==”0fce”, MODE=”0666″

#Toshiba
SUBSYSTEM==”usb”, ATTR{idVendor}==”0930″, MODE=”0666″

#ZTE
SUBSYSTEM==”usb”, ATTR{idVendor}==”19D2″, MODE=”0666″
# adb protocol on passion (Nexus One)
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, ATTR{idProduct}==”4e12″, MODE=”0600″, OWNER=”<cdytze>”
# fastboot protocol on passion (Nexus One)
SUBSYSTEM==”usb”, ATTR{idVendor}==”0bb4″, ATTR{idProduct}==”0fff”, MODE=”0600″, OWNER=”<cdytze>”
# adb protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, ATTR{idProduct}==”4e22″, MODE=”0600″, OWNER=”<cdytze>”
# fastboot protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, ATTR{idProduct}==”4e20″, MODE=”0600″, OWNER=”<cdytze>”
# adb protocol on stingray/wingray (Xoom)
SUBSYSTEM==”usb”, ATTR{idVendor}==”22b8″, ATTR{idProduct}==”70a9″, MODE=”0600″, OWNER=”<cdytze>”
# fastboot protocol on stingray/wingray (Xoom)
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, ATTR{idProduct}==”708c”, MODE=”0600″, OWNER=”<cdytze>”
# adb protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM==”usb”, ATTR{idVendor}==”04e8″, ATTR{idProduct}==”6860″, MODE=”0600″, OWNER=”<cdytze>”
# fastboot protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, ATTR{idProduct}==”4e30″, MODE=”0600″, OWNER=”<cdytze>”
# adb protocol on panda (PandaBoard)
SUBSYSTEM==”usb”, ATTR{idVendor}==”0451″, ATTR{idProduct}==”d101″, MODE=”0600″, OWNER=”<cdytze>”
# fastboot protocol on panda (PandaBoard)
SUBSYSTEM==”usb”, ATTR{idVendor}==”0451″, ATTR{idProduct}==”d022″, MODE=”0600″, OWNER=”<cdytze>”

保存退出

执行:
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules

转载请注明:半夏月 » adb无法连接添加端口参数

喜欢 (2)or分享 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(2)个小伙伴在吐槽
  1. 真的谢谢了!
    睿婕2015-12-02 17:32 回复
  2. 超級精彩,我非常喜歡
    睿婕2015-12-02 17:33 回复