Does anybody get the prompt for authorizing the PCs that connect through ADB?
According to several articles (example here), whenever a computer connects it's RSA key will be validated and a prompt will appear on the device if it's still not registered:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm running 4.2.2 (10.3.A.0.423 Generic ES) and never get this prompt, despite using the latest ADB version (1.0.31).
/data/misc/adb/ exists on the device but is empty, BTW.
Can anyone else confirm this, or preferably a way to activate the behavior?
UPDATE
I found the problem :victory:
On the /default.prop file (which is part of the kernel and therefore can't be manipulated directly), there's this:
Code:
ro.secure=1
It controls whether adb connections will run as root (if 0) or as shell (if 1).
But there's an additional parameter that should be there:
Code:
ro.adb.secure=1
which if set, triggers the standard behavior described before - prompting for a visual confirmation of the RSA key of the incoming connection.
Once I added an init.d script with
Code:
[COLOR="SeaGreen"][B]setprop ro.adb.secure 1[/B][/COLOR]
everything is working properly.
Bump!
Apparently the prompt only appears when you issue a command via adb. I would try it for you, but cannot be bothered to boot my laptop just now
If you haven't already, just try adb devices or something and see if the prompt appears.
If you already tried it (I realise you probably have, just throwing ideas around ) and the prompt doesn't appear, Sony probably removed the functionality from their rom for whatever reason (I can't think of any valid reason!).
Sent from my C6603 using Tapatalk 2
kingvortex said:
Apparently the prompt only appears when you issue a command via adb. I would try it for you, but cannot be bothered to boot my laptop just now
If you haven't already, just try adb devices or something and see if the prompt appears.
If you already tried it (I realise you probably have, just throwing ideas around ) and the prompt doesn't appear, Sony probably removed the functionality from their rom for whatever reason (I can't think of any valid reason!).
Click to expand...
Click to collapse
I had tried all that
After digging into the code I found the solution, check the OP.
Like this one
http://forum.xda-developers.com/showpost.php?p=43886371&postcount=104
Sent from my C6603 using xda premium
gm007 said:
Like this one
http://forum.xda-developers.com/showpost.php?p=43886371&postcount=104
Click to expand...
Click to collapse
It would be useful if I had stumbled on that earlier
Actually, I want mine to be "secure" in the sense that it only allows adb connections from my computer, and prompt for any new ones.
That's what the ro.adb.secure is for.
As for the uid of the shell once you're connected, I want to be root and therefore ro.secure=0.
But since I'm running the stock kernel and can't unlock my bootloader to run a custom one, I use an insecure adbd binary, instead of changing ro.secure to 0.
Related
I want to change the icons for all my apps and APK edit needs the .apk file. Unless there's an easier way to do this.
Adb shell
Would give u terminal
Then su.
Would give you root access
But you could also do ...
Adb pull /where/your/app/is/located
Sent from my SAMSUNG-SGH-I897 using XDA App
^ What he said. You can also use DroidExplorer but in my opinion it isn't the best thing to depend on.
For some reason I just couldn't get adb to work right. Every time I tried to launch it it screwed up and then closed again. I'll try DroidExplorer. If that doesn't help I'll try adb again. Thanks guys.
You have to use a command prompt. You don't just double click it to open.
Hm, when I tried to install DroidExplorer I got this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
BigTortoise said:
Hm, when I tried to install DroidExplorer I got this:
Click to expand...
Click to collapse
Learn how to use adb or go home
Sent from my SAMSUNG-SGH-I777
you could use a root file explorer on your phone and copy all the apks to your sdcard, mount that to the pc, modify the apks, and then either drop all those back in with the same file explorer or make a flashable zip containing all of them...
studacris said:
you could use a root file explorer on your phone and copy all the apks to your sdcard, mount that to the pc, modify the apks, and then either drop all those back in with the same file explorer or make a flashable zip containing all of them...
Click to expand...
Click to collapse
adb pull /system/app/nameoffile.apk
or
adb pull /system/app/*
so much faster.
if you dont learn how to use ADB, you will find yourself up **** creek at some point, if you plan on doing ANY modifications/theming. especially theming, because if you screw up your framework-res.apk, you have no way of fixing it without adb access....
lets not take the lazy ass way out of it here. when you are doing anything to your phone, you should know basic adb commands. if you dont, you shouldnt be touching your phone
This page should help with learning the commands
>>HERE<<
This page is a thread where I had problems with adb on Ubuntu
>>HERE<<
And this is a page that Pirateghost recommends on getting you started with adb
>>HERE<<
Now, we have done about everything we can for at this point, short of coming to your home and doing it for you. Have fun, and be careful out there.
Hello, I have tried to follow the AIO guide that has a sticky, but I had no luck there. I ended up installing "adb-setup-1.4.2" by snoop05 on my windows PC and that got me started in the right direction (I think). I've unlocked my bootloader, it says device is UNLOCKED: status code 3. Awesome.
Now to use CF-Auto-Root. I have my phone in bootloader mode. I run "root-windows" batch file and the cmd prompt comes up (ran as admin), I press any key to continue and this happens:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://imgur.com/bcliyxO
I then press any key again, and nothing changes. No red android, no change.
What the f*** am I doing wrong?!
Please halp!
Thank you.
What I did was shift right click in the explorer window and you should see a option to open cmd window here. Then type in root-windows.bat and hit enter.
Basically the cmd prompt is not at the right directory. Which is causing the failure
Wow ok, I figured it out. Don't run as administrator, just run the batch file normally.
/facepalm.
kyrue said:
Wow ok, I figured it out. Don't run as administrator, just run the batch file normally.
/facepalm.
Click to expand...
Click to collapse
I don't know that administrator mode was the problem. Like Elevate08 wrote, just opening the batch file probably didn't work because adb wasn't in the same directory. I added adb/fastboot to the PATH variable so I can run it from anywhere. I don't use the explorer for this sort of thing though. I just open a command prompt.
He wasnt in the correct place to do what he did.....the files are in a folder called root and the batch file called cmd.exe from windows\system32
Open a command prompt in the root folder as administrator, then run the batch file from the command line. Or open the command prompt and then run the batch file as administrator which is the same difference
GL
Hey thanks everyone for the replies. I didn't do anything different other than running the windows batch file normally, instead of running as administrator. I'm sure it was cringe worthy to a lot of people on here but at least I got it done. I installed TWRP and did a backup, which I then transferred to my PC. downloading a custom ROM now, and going to give that a try too
Hi,
I have been trying to connect my Nexus 6 to my work pc but I just can't get the MTP file copying mode to work properly. I have used the latest Google USB driver and actually it's not so bad. With USB Debugging turned ON, I see "Android Deivce > Android ADB Interface" properly installed in device manager. I even see my phone's serial no. when I type "adb devices" in command prompt. BUT the bloody MTP mode just refuses to work. It keeps showing up in Device Manager as "Other devices" > MTP, with a question mark next to it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When I switch USB debug off, there's no Android ADB Interface, and the unknown MTP entry in "other devices" transforms to "Nexus 6", again with a question mark next to it.
I have tried to manually install the proper driver but for starters, if I just select the folder where the .inf files are located Windows don't seem to anything inside it and when I force it to use that file ("Show All Devices > Have Disk") it only shows ADB and Bootloader drivers:
So what am I suppose to choose there in order for MTP to work as it should?
Have you tried other pc or laptop??
Yes, the phone shows up correctly in all modes on my home pc.
Just for giggles you ought to download the Nexus toolkit and let it go find the drivers it thinks it needs to work. afterwards you could just delete the tool. http://www.wugfresh.com/nrt/
Sent from my Google N6 on VZ
DebianDog said:
Just for giggles you ought to download the Nexus toolkit and let it go find the drivers it thinks it needs to work. afterwards you could just delete the tool. http://www.wugfresh.com/nrt/
Sent from my Google N6 on VZ
Click to expand...
Click to collapse
I did that to no success but in the end, I just tried a different USB2.0 port and it worked, all drivers installed correctly. Now the weird thing is I can read from the internal memory of the phone, I can delete stuff from it, but when I try to copy something to it it says: "Error copying. The device has either stopped responding or has been disconnected" so I can't yet copy to it. This is driving me crazy right now...
I have this issue this morning. Right click and Update Drivers > Browse For Drivers > Let me pick > Portable Devices > Standard MTP Device > MTP Device.
Hi there,
I have a E6335, isn't there released adb drivers for windows 10 pro x64?
I've used the "Minimal ADB and Fastboot" pack from here, and i can get it to reboot through ADB, but after that it isn't recognized, so i have to perform a hard reboot throug the button beside the sim.
Im not that familiar with adb and fastboot, so if anyone could guide me, i'll be very thankful.
Kind regards.
driver signed in Windows 10
Try this:
http://forum.xda-developers.com/crossdevice-dev/sony/minitut-installing-adb-drivers-sony-t3185585
... and tell us if it works (should with the proper drivers from SONY's developer site).
Hi there,
It dosn't work.
Genuine drivers was installed, but i did a reinstall, same problem, the S1 Fastboot driver is not installed.
Drivers works fine, until i perform the "adb reboot bootloader" command in adb, after that, the fastboot driver is unknown in device manager.
I've tried to perform the unlock command afterwards, but it keeps hanging on the "waiting for device".
Performing the "fastboot devices" dosn't work.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I guess i have to go on a win7 machine then?
Thanks.
I guess i have to go on a win7 machine then?
Click to expand...
Click to collapse
I recommend Debian Jessie
Read Androplus's advice. http://forum.xda-developers.com/showpost.php?p=62577784&postcount=2
I see the wrong command in your screenshot.
You know how to get into fastboot mode?
Power off the device. Hold "Volume up" (until the LED turns blue) and plug in USB cable.
I do not know, what you are up to with unlocking the bootloader but if these first steps go so badly you better stop here before attempting to root the device or doing something else. You could end up with a brick.
reboot w10 with advanced startup > advanced options > disable driver signature enforcement.
then install S1 driver from flashtools package. this issue has been covered since win8.
I'm not a newb in droid phones, just the adb. And i've just used the commands from this thread: http://forum.xda-developers.com/xperia-z4/general/bootloader-unlock-tip-t3165018
And if thats wrong, i think that it should be corrected.
And same issue as the before mentioned, when i use the vol up option.
@monx
I'll try that right away. I've just updated all 6 machines to win10 from 7, so im not that familiar with it yet
reboot w10 with advanced startup > advanced options > disable driver signature enforcement.
then install S1 driver from flashtools package. this issue has been covered since win8.
Click to expand...
Click to collapse
That did the trick, thank you buddy
Hey guys,
First time trying to flash a rom (using Windows 11). At first the Razer phone 2 showed up in my device manager as 'Android' with a yellow warning sign. I managed sort that by installing the latest android_winusb.inf drivers, and it shows up in the device manager As oculus Device>Andriod Composite ADB interface (not sure why it's under the Oculus tab, I didn't use the Oculus driver).
I've tried all three drivers (ADB Interface, Bootloader interface and Composite ADB interface) and the results are the same. When I send the 'fastboot devices' command, it will report
''???????????? fastboot'' and then it switches to the razer logo with 'Powered by Android' and 'Press any key to shutdown' text and is no longer in fastboot mode.
I assume the question marks are supposed to be a serial number.
Anyone have any ideas of what I might be doing wrong?
FYI, I've also tried 2 usb 2 ports, a usb 3, and two different Type A to C cables.
This happened to me. You need to run Powershell/Terminal in the path of the folder containing the Platform Tools. See example photo.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also, make sure to follow this exactly. https://s3.amazonaws.com/cheryl-fac...stall_Android_Fastboot_Drivers_on_Windows.pdf
Thank you so much for your help, I will give this a try.
There is some sort of issue with Windows 11 and arter97-r12 and -r13. I was going to do a fresh install of SMR3 because of a few software issues and Google Play app updates. When booted into Recovery and making backups and moving files, I ended the session and rebooted "System" from TWRP boot menu. Upon execution, TWRP warned me there was no OS installed.. WORST NIGHTMARES. I've finally gotten it recovered, but what a MESS. Download platform-tools v33.0.1 from google and follow the directions from Razer to properly install ADB Fastboot drivers. See links below:
Platform-Tools: https://developer.android.com/studio/releases/platform-tools
Razer Driver installation: PDF attached
UPDATE: I found the issue was NOT necessarily my version of platform tools, It was my USB port. I am using a Surface Pro7 and tried multiple different cable and both the USB-C and -A ports to no avail. Would not communicate in fastboot mode, BUT, I then used a 4-port USB 3.0 hub, connected the phone, and all ADB/fastboot commands and communication functioned normally. once I figured this out, I was able to reinstall the proper drivers on Windows.
Same problem, u PC AMD?