zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Android Activity
    Android 五大布局
    Android 使用线性布局LinearLayout和Button实现一个点红块游戏
    邻接表、逆邻接表
    view的绘制原理
    IPC机制
    图的深度优先遍历
    最短路径算法
    几种编码方式
    Android APK反编译问题
  • 原文地址:https://www.cnblogs.com/youchihwang/p/6179377.html
Copyright © 2011-2022 走看看