Below is the procedure to be followed for on device debugging in android.
Open terminal and traverse to platform-tools in android SDK where you will find adb
Give $ ./adb devices then you will find
List of devices attached
???????????? no permissions
So we need to give USB permission in order to do on device debugging
Step 1.
Create/edit a file in /etc/udev/rules.d called 99-android.rules:
$ sudo gedit /etc/udev/rules.d/99-android.rules
Add the following line to it and save it:
SUBSYSTEM==”usb”, ATTRS{idVendor}==”18d1″, SYMLINK+=”android_adb”, MODE=”0666″
Step 2. Restart udev:
$ sudo restart udev
Step 3.
$ ./adb kill-server
$ ./adb start-server
$ ./adb devices
Note: Sometimes device require to disconnect the usb cable at this point and then reconnect it.
No comments:
Post a Comment