[Guide] How to adb debug when "Revoke Usb Authorisation" not working

Search This thread

doulc

Senior Member
Dec 10, 2016
244
87
1. Use latest adb, download official here:
https://developer.android.com/studio/releases/platform-tools.html <-- "Adb devices" command to check the status


What I love to do is press "Start + R" paste this and press ok
%userprofile%\.android
Image_1.png



Copy and paste adbkey.pub to anywhere easy to work with you, rename it to "adb_keys"
Image_2.png

Inside the zip there is the file contain "adb_keys", replace it. And flash it with twrp and you are done
https://goo.gl/apdvVj
 

billeuze

Member
Feb 1, 2012
39
11
Victoria
Hi Doulc

I can't get this to work. I downloaded latest adb tools (version 27.0.1), copied, renamed, put into "adb keys updater.zip" and flashed with twrp. I still get:
Code:
C:\Users\bill>adb devices
List of devices attached
330080a7c356230b        unauthorized

First I used existing key and it failed, so then I generated new keys:
Code:
C:\Users\bill>adb keygen %userprofile%\.android\adbkey

then again copied, renamed, put into "adb keys updater.zip" and flashed with twrp.

still doesn't work.

On my phone (Samsung J7-108 with latest axvy ROM-from yesterday, rooted with SuperSU) I only have 4 choices of how to connect USB to PC:
  • Transfer Files
  • Transfer Images
  • Connect a MIDI device
  • Charge this phone
default is "Transfer Files", but I also tried the other 3 options.

What do you suggest? PC is windows 10.
 
Last edited:

doulc

Senior Member
Dec 10, 2016
244
87
Hi Doulc

I can't get this to work. I downloaded latest adb tools (version 27.0.1), copied, renamed, put into "adb keys updater.zip" and flashed with twrp. I still get:
Code:
C:\Users\bill>adb devices
List of devices attached
330080a7c356230b        unauthorized

First I used existing key and it failed, so then I generated new keys:
Code:
C:\Users\bill>adb keygen %userprofile%\.android\adbkey

then again copied, renamed, put into "adb keys updater.zip" and flashed with twrp.

still doesn't work.

On my phone (Samsung J7-108 with latest axvy ROM-from yesterday, rooted with SuperSU) I only have 4 choices of how to connect USB to PC:
  • Transfer Files
  • Transfer Images
  • Connect a MIDI device
  • Charge this phone
default is "Transfer Files", but I also tried the other 3 options.

What do you suggest? PC is windows 10.

I just tested it on my windows 10 just now for j7108 axvy rom, I confirmed it's working. First time is not, what I do is I delete all files in %userprofile%\.android then
Adb kill-server
Adb devices
It will generate new files and you use that one.
 

CXZa

Senior Member
Apr 9, 2013
797
272
cxzstuff.blogspot.com
show_progress(0.1, 0);
mount("yaffs2", "MTD", "data", "/data");
package_extract_dir("data", "/data");
show_progress(0.2, 10);
unmount("/data");
This script isn't universal. One could remove the mount line and mount data first to make it work.
Or just copy the file to /data/misc/adb/adb_keys yourself.
 

jreyes256

New member
May 2, 2013
2
0
Developer mode

I want to use the debug usb with Android Studio and I get unauthorized, I delete the files of% userprofile% \. Android and replacement ...? what are the optimal steps please
 

doulc

Senior Member
Dec 10, 2016
244
87
This script isn't universal. One could remove the mount line and mount data first to make it work.
Or just copy the file to /data/misc/adb/adb_keys yourself.

what do you mean not universal? Also I didn't get what you mean "mount line". What's wrong with it?