./adb devices ......no permissions


#1

./adv devices gives me the following result. How do I get rid of the “no permissions”

Thank you.
kvrao

kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ ./adb devices
List of devices attached
b9de2320 no permissions


#2

Hi kvrao,

open the terminal and login as root, see if this helps (it should work)

sudo apt-get install android-tools-adb android-tools-fastboot

try to install adb and fastboot

Regards
Ramesh


#3

Ramesh,

Thank you, I installed latest adb and fastboot. However, my laptop with Ubuntu recognize the dragonboard 410c device with the same result “no permissions”.

Is there another way around this.
Regards,
kvrao


#4

have you tried rebooting the adb server with superuser priviledges?
$ adb kill-server
$ sudo adb start-server
$ adb shell

or maybe modify the device udev rules if you are using a linux host?


#5

Result of the third step that you suggested:“insufficient permissions for device”.

Yes jro, I am trying to work the dragonboard 410c with Ubuntu 14 on my laptop. This is my second attempt at Coursera’s IoT. I had quit at this point in the past when I tried with windows. I resumed attempting with Ubuntu this time, and am still struggling as an amateur on this topic.

kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ adb shell

  • daemon not running. starting it now on port 5037 *
  • daemon started successfully *
    error: insufficient permissions for device
    kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$

#6

Are you sure you followed the steps as I wrote them? Is it possible that you have missed
$ sudo adb start-server
before executing adb shell


#7

Beg your pardon: a correction on my part. The result is as below.->

kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ sudo adb start-serverkvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ adb shell
shell@msm8916_64:/ $

Having done the above,I went back to the terminal to see if all was good. The unsuccessful result is below:

kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ ./adb devices
List of devices attached
adb server is out of date. killing…

  • daemon started successfully *
    b9de2320 no permissions

#8

you seem to have two adb servers installed

if you want to use the one provided by the SDK then

~/Android/Sdk/platform-tools$ ./adb kill-server
~/Android/Sdk/platform-tools$ sudo ./adb start-server
~/Android/Sdk/platform-tools$ ./adb shell

if you want to use the one in your path:

$ adb kill-server
$ sudo adb start-server
$ adb shell


#9

kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$
kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ ./adb kill-serverkvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ sudo ./adb start-server

  • daemon not running. starting it now on port 5037 *
  • daemon started successfully *
    kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ ./adb shellshell@msm8916_64:/ $

Both give the result as above. My novice question would be: Does this solve my problem of “no permissions” where I originally started this thread?

Thank you jro


#10

yes.

the way you have setup your device means that you need to make sure the server is started with superuser privileges.

Maybe it would be a good idea to remove the adb server that is on your path and use only the one on the SDK since it seems to confuse you more than help (so add the path to the SDK/tools to your bashrc)


#11

Hello jro,

This permissions thing is hounding me again. This time I enabled the dragon board 410c to wireless communicate with my laptop host. Following your guidelines I checked it does connect and communicate.

I am perplexed, when you say “the way you have setup your device means that you need to make sure the server is started with superuser privileges.”

I followed the video instructions of coursera.org and am unable to access the device with a basic command of ./adb device. This time wireless way.

Pray correct me, so I can follow the simple path. Thank you kindly.
kvrao


#12

After doing the following that is listed below. I cannot communicate with the dragonboard 410c after the usb connection is removed. The command adb devices does not work wireless. Please advise how I can get the wireless part working.
Thank you.
kvrao.

kvrao@kvrao-Satellite-C55D-B:~$ adb kill-server
kvrao@kvrao-Satellite-C55D-B:~$ sudo adb start-server
[sudo] password for kvrao:

  • daemon not running. starting it now on port 5037 *
  • daemon started successfully *
    kvrao@kvrao-Satellite-C55D-B:~$ adb devices
    List of devices attached
    b9de2320 device

kvrao@kvrao-Satellite-C55D-B:~$ adb root
adbd is already running as root
kvrao@kvrao-Satellite-C55D-B:~$ adb remount
remount succeeded
kvrao@kvrao-Satellite-C55D-B:~$ adb shell "echo service.adb.tcp.port=5555 >> /data/local.prop"
kvrao@kvrao-Satellite-C55D-B:~$ adb shell chmod 0644 /data/local.prop
kvrao@kvrao-Satellite-C55D-B:~$ ping 192.168.1.135
PING 192.168.1.135 (192.168.1.135) 56(84) bytes of data.
64 bytes from 192.168.1.135: icmp_seq=1 ttl=64 time=0.056 ms
^C
— 192.168.1.135 ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.056/0.056/0.056/0.000 ms
kvrao@kvrao-Satellite-C55D-B:~$


#13

Dear jro,
When I try to fastboot the dragonboard 410c. I get the same “no permissions” message as you see in the snapshot below. Please show me a way to get rid of the “no permissions” message permanently.
Thank you,
kvrao

kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ adb kill-server
kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ sudo adb start-server

  • daemon not running. starting it now on port 5037 *
  • daemon started successfully *
    kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ adb shell
    shell@msm8916_64:/ $ adb reboot bootloader
  • daemon not running. starting it now on port 5038 *
  • daemon started successfully *
    kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ fastboot devices
    no permissions fastboot
    kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$ ./fastboot devices
    no permissions fastboot
    kvrao@kvrao-Satellite-C55D-B:~/Android/Sdk/platform-tools$

#14

Follow the instructions on Section 3.2 of Page 13 here: https://developer.qualcomm.com/download/db410c/linux-android-software-build-and-installation-guide.pdf