• 【Linux】Android手机在Ubuntu上无法被adb识别解决办法(权限相关)


    创建并编辑个文件:sudo vim /etc/udev/rules.d/51-android.rules,输入以下内容

    SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666" OWNER="scue"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666" OWNER="scue"

    >>"scue"是当前我的用户名,替换成自己的就可以了

    以上方法可以解决的错误:

    $ adb devices
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    List of devices attached 
    ????????????    no permissions
    
    $ adb shell
    error: insufficient permissions for device
    ------------
    微博:http://weibo.com/scue
    Github:http://github.com/scue
  • 相关阅读:
    [转载]为 Windows 下的 PHP 安装 PEAR 和 PHPUnit
    作品和案例
    js创建对象的最佳实践
    log4j的PatternLayout参数含义
    Java线程池——ThreadPoolExecutor的使用
    登录mysql 报 Access denied for user 'root'@'localhost' 错误
    CentOS 7下使用yum安装MySQL5.7
    linux下MySQL停止和重启
    Linux 命令 -- chown
    Linux 命令 -- chmod
  • 原文地址:https://www.cnblogs.com/scue/p/2754468.html
Copyright © 2020-2023  润新知