zoukankan      html  css  js  c++  java
  • adb报错:no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]

    第一步:找到USB  地址

    ubuntu@ubuntu:~$ lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 003: ID 77be:f9ff
    Bus 001 Device 002: ID 413c:2113 Dell Computer Corp.
    Bus 001 Device 008: ID 0e8d:xxxx MediaTek Inc.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    ubuntu@ubuntu:~$ lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 003: ID 77be:f9ff
    Bus 001 Device 002: ID 413c:2113 Dell Computer Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    ubuntu@ubuntu:~$ sudo gedit /etc/udev/rules.d/51-android.rules

    第二步:sudo gedit /etc/udev/rules.d/51-android.rules

    ATTR{idProduct}=="xxxx", SYMLINK+="android_adb", MODE="0660", GROUP="plugdev", TAG+="uaccess", SYMLINK+="android" 写入文档

    xxxx是你的usb地址Bus 001 Device 008: ID 0e8d:xxxx MediaTek Inc. 

    第三步:执行如下命令

     sudo usermod -a -G plugdev $(id -u -n)
    sudo udevadm control --reload-rules
    sudo service udev restart

    第四步:重启adb

    sudo udevadm trigger
    adb kill-server
    adb start-server

  • 相关阅读:
    React初步学习-利用React构建个人博客
    React入门介绍(2)- React Component-React组件
    React入门介绍(1)-ReactDOM.render()等基础
    (3)Gojs model简介
    javascript脚本的延时加载
    javascript中的this作用域详解
    mongodb命令
    vim
    关于格式转换
    公告栏添加时钟
  • 原文地址:https://www.cnblogs.com/littleboy123/p/12958159.html
Copyright © 2011-2022 走看看