how to solve adb_devices_no_permissions

Introduction

If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property.

For more infomation,please visit
http://developer.android.com/tools/device.html.
http://www.linux-usb.org/usb.ids

System requirements

Ubuntu,Fedora or other linux systems.


Install

1.Open the console to copy the file "51-android.rules" to "/etc/udev/rules.d/51-android.rules" by executing the command below. To Achieve it,you should be sure that you have the root permission.

sudo curl --create-dirs -L -o /etc/udev/rules.d/51-android.rules -O -L https://raw.githubusercontent.com/snowdream/51-android/master/51-android.rules

2.To give it appropriate permissions next execute the command:

sudo chmod a+r /etc/udev/rules.d/51-android.rules

3.Then execute:

sudo service udev restart

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章