adb shell : device unauthorized
Added by Fil Lupin almost 8 years ago
Hello,
I open a new thread since I am not sure this is the same issue than https://redmine.replicant.us/boards/3/topics/14337?r=14341
I installed recently replicant 6 on my i9300.
I tried to access to my device with adb and here are the outputs I got :
When in recovery mode (I tried even if I do not find any adb activation menu in recovery mode):
$adb devices
List of devices attached
hexa_string unauthorized
$sudo adb shell
error: device unauthorized.
This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I tried to kill server as suggested :
$sudo adb kill-server && sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
but it does not solve anything.
When in "normal" mode :
$sudo adb devices
List of devices attached
$adb root
error: device '(null)' not found
$sudo adb shell
error: device '(null)' not found
I tried to kill server as suggested :
$sudo adb kill-server && sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
but it does not solve anything either.
I already checked lsusb and /etc/udev/rules.d/51-android.rules :
$lsusb
Bus 001 Device 027: ID 04e8:xxxx Samsung Electronics Co., Ltd GT-I9250 Phone [Galaxy Nexus] (Mass storage mode)
Note : it is strange that my device is recognized as a i9250 and not a i9300, isn't it?
$cat /etc/udev/rules.d/51-android.rules
## Samsung Galaxy s3 i9300
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
I added the google line after a lsusb giving me this device, when in recovery mode only.
Do you have any idea how to access my device through adb?
Replies (4)
RE: adb shell : device unauthorized - Added by Fil Lupin almost 8 years ago
The only solution I found was by reinstall replicant-4.2 and using adb through recovery mode.
RE: adb shell : device unauthorized - Added by Wolfgang Wiedmeyer almost 8 years ago
See the instructions for ADB and what I wrote in your other thread. It should work if you follow these instructions.
RE: adb shell : device unauthorized - Added by Fil Lupin almost 8 years ago
Thank you for your answer.
In fact, the issue was I did not had access to developper mode (https://redmine.replicant.us/boards/3/topics/14337).
Because of this issue, I had no way to make some backup.
RE: adb shell : device unauthorized - Added by Fil Lupin almost 7 years ago
Hi there, on my new phone, I encounter exactly the same situation except that lsusb does not print anything related to my device.
I tried reboot, adb kill-server, changing usb port, disabling/enabling debug mode: nothing works.
Do you know what could make adb work?
Thank you.