adb devices 偵測不到 手機

Environment

Ubuntu 14.04.5 LTS (Trusty Tahr)

 

現象

 

system 有偵測到 mobile phone,

xxx@xxx-ThinkPad-T460p:~/.android$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 5986:0708 Acer, Inc 
Bus 001 Device 003: ID 8087:0a2b Intel Corp. 
Bus 001 Device 002: ID 138a:0090 Validity Sensors, Inc. 
Bus 001 Device 008: ID 0e8d:200a MediaTek Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

 

adb devices 沒有偵測到 mobile phone

xxx@xxx-ThinkPad-T460p:~/.android$ adb devices
List of devices attached 

 

 

adb shell 顯示 device not found

xxx@xxx-ThinkPad-T460p:~/.android$ adb shell
error: device not found

 

 


 

 

solution

 

create adb_usb.ini then add VID to it

xxx@xxx-ThinkPad-T460p:~/.android$ echo "0x0e8d" > ~/.android/adb_usb.ini

 

 

restart ADB

xxx@xxx-ThinkPad-T460p:~/.android$ adb kill-server
xxx@xxx-ThinkPad-T460p:~/.android$ adb start-server

 

 

xxx@xxx-ThinkPad-T460p:~/.android$ adb devices
List of devices attached 
0123456789ABCDEF    device

 

posted @ 2016-12-14 15:11  wangchangruei  阅读(540)  评论(0编辑  收藏  举报