Forums » Replicant installation »
adb deviced unauthorized error when trying to downgrade from replicant 6.0.0004 to 6.0.0003
Added by Larry Cotton 7 months ago
Hi
I recently installed replicant on my Galaxy s3 i9300, but having had some issues with connecting via usb it has been pinted out that the latest version for this device is 6.0.0003 and I installed 6.0.0004, so I assume that is the reason I have had some problems.
As such I am now trying to wind back to 6.0.0003 - I tried to do this by booting in to the recovery image and using adb to install the 0003 image using the command:adb sideload replicant-6.0-0003-i9300.zip
However when I try to do that I get the following error message:$ adb sideload replicant-6.0-0003-i9300.zip
adb: sideload connection failed: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
Anyone know why I might get the unauthorized message and how I can prevent it ?
Do I need to do a factory reset (or at least is that a safe option to try) ?
Or possibly a complete re-wipe of system partions and cache as I did for the original install (thought I would not have to do that) ?
Replies (6)
RE: adb deviced unauthorized error when trying to downgrade from replicant 6.0.0004 to 6.0.0003 - Added by Larry Cotton 7 months ago
My searches are saying a lot about :
unlocking developer features
usb dubugging enabled
revoke usb debugging authorisation
But these options do not seem to exist in Replcant Recovery
Does anyone know if this needs doing when using Recovery and if so how it can be done from there ?
RE: adb deviced unauthorized error when trying to downgrade from replicant 6.0.0004 to 6.0.0003 - Added by SomeThing toAskAbout 7 months ago
I recently installed replicant on my Galaxy s3 i9300, but having had some issues with connecting via usb it has been pinted out that the latest version for this device is 6.0.0003 and I installed 6.0.0004, so I assume that is the reason I have had some problems.
Have you installed transition image? I'm asking because Galaxy s3 definitely has up-to-date version. I had a thought that only galaxy s2 gt-i9100 is supported for the latest version. But it was wrong. I guess you just installed usual, non-transitional version. And that's why you've got a trouble with your device.
So unless i'm wrong for each device exists partions which you can download (or something like that) to apply if you kind of have been experiencing some troubles with your system.
RE: adb deviced unauthorized error when trying to downgrade from replicant 6.0.0004 to 6.0.0003 - Added by Larry Cotton 7 months ago
Have you installed transition image?
Not sure what you mean by this?
What I did originally was follow the installation instructions here:
https://redmine.replicant.us/projects/replicant/wiki/Installation
Which instructed me to first install a recovery image, then use adb to install the downloaded Replicant image.
This seemed to go fine, but I found I could not install F-Droid and could not connect the phone via USB (it just wasn't recognised), so I put a post out about that, at which point someone pointed out this Link:
[[https://redmine.replicant.us/projects/replicant/wiki/GalaxySIIIGTI9300]]
states that the official latest version for the s3 is 6.0 0003, I had downloaded and installed 6.0 0003.
So I booted in to recovery, plugged the phone in to my computer and tried to use adb to download 6.0 0003 - at which point I got the unauthorized message, for which there does not seem to be a solution.
My searches have have come across the problem for android, with various solutions:restat adb daemon, remove/check permisions of .android/public key, many involving various settings when you have the android os already on the phone, but not (as far as I can tell) in Recovery. None of these have worked so far. One thing that is universal is that the device needs to be in download mode, but I do not know how to check or change that from Recovery - is it possible ?
I'd really like understand what check is being done that is causing the error - I don't suppose there are any adb logs that might tell me ?
One thing that does not seem quite right is when I type:
$ lsusb
The device is identified as:
Bus 002 Device 035: ID 18d1:d001 Google Inc. Nexus 4 (fastboot)
In the notes is says it would normally be something like:
Bus 004 Device 002: ID 04e8:685d Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II] (Download mode)
Does that give anyone a clue ?
Options I have seen, but not tried yet:
Downloading the sdk and using that (but it looks like that would open a rather large can of worms)
Try installing using a microSD card
RE: adb deviced unauthorized error when trying to downgrade from replicant 6.0.0004 to 6.0.0003 - Added by SomeThing toAskAbout 7 months ago
Have you installed transition image?
Not sure what you mean by this?
https://redmine.replicant.us/projects/replicant/wiki/Images#Replicant-60
When you would visit that web-site you would see the table of contents and in it you could see below than "Replicant 6.0 0004 images" following: "Replicant 6.0 0004 Transition images". I guess it's specially made for you)
I'm lazy to read all your message. Maybe I would read this topic again when would want to install Replicant on Galaxy S3.
RE: adb deviced unauthorized error when trying to downgrade from replicant 6.0.0004 to 6.0.0003 - Added by Larry Cotton 7 months ago
Ok.
It seems if I go to the download adb before doing anything then I can at least use adb to sideload.
Thank you for pointing out the transition images - could anyone clarify how I should go about os image upgrades ? I'm generally a bit confused about upgrading:
Do I need to install a new recovery image for each os version I try to install, or once I've installed it once is that enough ?
What exactly is a transition image - is it an image in it's own right - i.e a development image for a version that has not been fully tested, or is it something you install as a stepping stone to an upgrade (or downgrade) ?, so in order to install 6.0.0003 I would need to install the transition image and then after that install 6.0.003 ?
RE: adb deviced unauthorized error when trying to downgrade from replicant 6.0.0004 to 6.0.0003 - Added by Larry Cotton 6 months ago
Well I installed the transition image and can now access the phone via USB, so it's at least working a little better with that image, though I am still not sure whether I should be using it.
I'll play around with it to see if it seems to be working.