关于adb命令没有权限访问手机设备的问题
关于adb命令没有权限访问手机设备的问题
在使用Ubuntu的朋友应该碰到过在执行adb相关命令的时候会提示如下的错误:
Configuring USB AccessUnder GNU/linux systems (and specifically under Ubuntu systems),regular users can't directly access USB devices by default. Thesystem needs to be configured to allow such access.
The recommended approach is to create a file
/etc/udev/rules.d/51-android.rules
(as the root user) and to copythe following lines in it.<username>
must be replaced by theactual username of the user who is authorized to access the phonesover USB.SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", ATTR{idProduct}=="7112", MODE="0600", OWNER="liubzh"
转载请著名出处。