Majority of fastboot commands fail - Sony Xperia XZ1 Questions & Answers

Brand new XZ1. Right after unpacking, it offered me to upgrade to Android 9, which I did. The next step was to unlock bootloader/root. So I enabled USB debugging, got my unlock code from Sony, enabled bootloader unlock via Developer options, rebooted into fastboot and entered oem unlock command. Nothing. I mean, it did absolutely nothing - system just kept waiting... and waiting... and waiting...
Rebooted computer and phone a few times, result was still the same; command "fastboot devices" finds phone, but further commands just don't work - system is waiting and waiting for command to finish executing, which never happens. So I connected my old XZ and fastboot worked perfectly. Connected Moto G5 Plus - all fastboot commands worked too. Connected XZ1 again - system kept waiting and waiting...
Tried this on 3 different computers (2xLinux, 1xWindows) using 3 different cables and result was always the same. Only 2 commands work for XZ1 - "fastboot devices" and "fastboot reboot". Any other fastboot command freezes... Any suggestions?

If you are using Linux, just use an usb hub and should work fine

manxp85 said:
Brand new XZ1. Right after unpacking, it offered me to upgrade to Android 9, which I did. The next step was to unlock bootloader/root. So I enabled USB debugging, got my unlock code from Sony, enabled bootloader unlock via Developer options, rebooted into fastboot and entered oem unlock command. Nothing. I mean, it did absolutely nothing - system just kept waiting... and waiting... and waiting...
Rebooted computer and phone a few times, result was still the same; command "fastboot devices" finds phone, but further commands just don't work - system is waiting and waiting for command to finish executing, which never happens. So I connected my old XZ and fastboot worked perfectly. Connected Moto G5 Plus - all fastboot commands worked too. Connected XZ1 again - system kept waiting and waiting...
Tried this on 3 different computers (2xLinux, 1xWindows) using 3 different cables and result was always the same. Only 2 commands work for XZ1 - "fastboot devices" and "fastboot reboot". Any other fastboot command freezes... Any suggestions?
Click to expand...
Click to collapse
Had the same problem on mine but I just pressed "enter" after a while and the phone booted with "bootloader unlock sign". Using windows 10.

WalterCool said:
If you are using Linux, just use an usb hub and should work fine
Click to expand...
Click to collapse
Hm, this one sounds unusual... Do you mean I should connect external USB device to my USB port? But for some reason, all other devices work fine (and yes, I tried switching USB ports too).

sinkoo1979 said:
Had the same problem on mine but I just pressed "enter" after a while and the phone booted with "bootloader unlock sign". Using windows 10.
Click to expand...
Click to collapse
Thanks, just tried... Now, I always get "command failed" message instantly and phone just turn offs (resets into "charging" mode). If I switch it on, everything works as usually, but after I reboot into fastboot again, all fastboot commands (that previously freezed) now display "command failed" messages... So, double-clicking Enter really had some effect, just not sure if it's good or bad

manxp85 said:
Hm, this one sounds unusual... Do you mean I should connect external USB device to my USB port? But for some reason, all other devices work fine (and yes, I tried switching USB ports too).
Click to expand...
Click to collapse
Correct, I had this discussion at xperia github, and we all found this as a solution. With Xperia phones seems to be a common issue at Linux, and usb-hub manage to solve this. That's just fastboot (blue light), using service mode (green-light) there is no problem.

Will give a try. Even if original Xperia works fine in fastboot.

Related

fastboot "waiting for device"

Hi there,
I have a problem that i suspect others may have, i did my searching on google and on xda but found nothing so i have no other choice but to post. I am trying to fastboot flash a prerooted .67 firmware, i put my phone into fastboot and connected the usb cable, the led STAYS blue that seems to be fine(i have installed fastboot drivers using flashtool /drivers directory), i type in the fastboot command to flash it and it just sticks at "waiting for device".
Any ideas?
Thanks
What happens when you type:
fastboot.exe -i 0x0fce getvar version
Also:
1. Disable any antivirus
2. reboot your PC
3. Change to another USB port
4. Make sure the .img is in the same folder as the fastboot.exe
Try fastbooting an official firmware instead if that works then I believe you have encountered the 'bug' in the bootloader that is currently stopping any custom roms
unrealboot1 said:
Hi there,
I have a problem that i suspect others may have, i did my searching on google and on xda but found nothing so i have no other choice but to post. I am trying to fastboot flash a prerooted .67 firmware, i put my phone into fastboot and connected the usb cable, the led STAYS blue that seems to be fine(i have installed fastboot drivers using flashtool /drivers directory), i type in the fastboot command to flash it and it just sticks at "waiting for device".
Any ideas?
Thanks
Click to expand...
Click to collapse
Hi,
you know that every smartphone has a flash and a fast boot Feature ?
Some Smartphone, look´s like Sony, use:
Speaker UP Button and USB Connect for Fastboot
(by Sony the Home Button lights blue)
and
Speaker Down Button and USB Connect for Flash
(by Sony the Home Button lights green)
For Fastboot.exe ........ xy.img must be use the Fastboot
Feature.
In first using Fastboot.exe, after Phone Connect you must
wait that the PC find all Drivers.
If Fastboot doesn´t work again, maybe you need "SDK Android"
and "Google SDK Driver"... will find over Net.
Doesn´t work again, the use "Flashtool.exe" Methode and
convert the xy.xy Firmware to xy.ftf for Flashtool use.
Onex1
my version is 0.5
i tried all of this except the last point of Onex1. Nothing works still sticks at waiting for device. Also havent restarted my pc i will try that soon but i think that might be a long shot.
Also my device is recognised as an adb device if that helps.
Any ideas guys? I have been trying but now im all spent. My xperia s is unlocked and factory bootloader unlocked if that helps
I know this thread is really old, but I was having this same issue and it was fixed by using a newer version of the Android SDK. So if you're having problems, try updating!
U must enable USB debugging mode
Send from Xperia U
i have the same issue
power on off button is broke
i can boot to recovery but i cant select to flash anything because of the button its not working
adb works for me too because its recognized when i write adb devices but when i write fastboot devices nothing happens and everything i do it says waiting for device
anyway PrakashGD, he said adb is working, that means USB Debugging is ON, if it was off adb would've not worked duh
Ensure fastboot driver is installed
Sent from my ST25i using xda premium

Root problem

I have the tmobile lg v10 h901. I'm trying to unlock the boot loader. I have adb and fastboot files installed and the lg drivers. I have the oem. Unlock and usb debugging checked in the setting. I can open the command prompt and use adb devices and it sees my device. I can use adb reboot bootloader and it will take me to the fastboot bootloader unlock screen. From here the command prompt no longer sees my device. I type fastboot oem Unlock and it says waiting on device... Any one have a idea what's going on. Am I missing something?
Try booting into fastboot manually by turning off the phone and holding vol down while plugging it in,then try it but make sure you fastboot devices first to make sure its even detecting it
No that didn't work. When the phone is on adb devices it sees the phone I type fastboot devices and it does nothing. But when the phone goes to fastboot even volume down then plug the phone In it won't recognize the phone just says <waiting on device>
Yeah I keep uninstalling everything and reinstall everything fast boot threw cmd fastboot with the volume button and always get waiting on device when I get to the "fastboot oem Unlock"
So sad ...
Use nexus toolkit for it all. I did. Works great.
Exconvict said:
Use nexus toolkit for it all. I did. Works great.
Click to expand...
Click to collapse
Wugs nexus toolkit ? That will work with the v10?
cwalton4077 said:
Wugs nexus toolkit ? That will work with the v10?
Click to expand...
Click to collapse
I used Mfastboot and it worked like a champ. Could not get nexus toolkit to see my device.
Yes. It boots temp recovery,flashes recovery and root. Also used it to relock the boot loader for sh*ts and giggles. To get it to see my phone I had to download LG bridge on my computer and run it.
I have tried mfastboot and the nexus toolkit and both stop working when it gets to the fastboot oem Unlock. Waiting on device. I have not installed lg bridge so I will try that later and see if that helps.
If you run Windows, you may be missing the USB driver for fastboot. If possible, use Linux where all the USB drivers are included from the start.
I'm having the same problem as well.
cwalton4077 said:
I have tried mfastboot and the nexus toolkit and both stop working when it gets to the fastboot oem Unlock. Waiting on device. I have not installed lg bridge so I will try that later and see if that helps.
Click to expand...
Click to collapse
When starting all of this (essentially becoming addicted to learning rooting) I noticed that no one mentioned to make sure to enable the "usb tethering" option on their device!! Once I did that, an entire plethora of additional options opened up. That being said, this option won't necessarily make rooting possible, but I think it may help out in this particular situation.
? I really hope this works for you.
1500 years ago, everybody "knew" that the earth was the center of the universe. 500 years ago, everybody "knew" that the earth was flat. And 15 minutes ago, you "knew" that humans were alone on this planet. Imagine what you'll "know" tomorrow.
-Kay
I got it working I had to go to device manager on the pc then put the phone in boot loader. Then on device manager the phone changed to Android unknown so I set the drivers to Android adb services and it worked fastboot would see the phone and I got root on the v10
cwalton4077 said:
I got it working I had to go to device manager on the pc then put the phone in boot loader. Then on device manager the phone changed to Android unknown so I set the drivers to Android adb services and it worked fastboot would see the phone and I got root on the v10
Click to expand...
Click to collapse
Glad you got it rooted
Great!
cwalton4077 said:
I got it working I had to go to device manager on the pc then put the phone in boot loader. Then on device manager the phone changed to Android unknown so I set the drivers to Android adb services and it worked fastboot would see the phone and I got root on the v10
Click to expand...
Click to collapse
Now can you post a YouTube vid for us who are still having this issue! ?

Fastboot mode on Acer A3-A30

Hi!
I recently got my new Acer Tablet A3-A30. After unlocking developer options and activating debugging I was able to use adb. So I rebooted into bootloader to see if fastboot works - it did not! The output of fastboot devices was empty (this and the following commands were typed as root).
So I killed adb with adb kill-server, disconnected it from my computer and turned it off. After a few moments I turned it on by pressing power while holding Vol[-]-Key. Again the tablet booted into fastboot mode. Now I connected it with my computer and hoped fastboot will recognize the device now. Again, the output was empty.
I noticed, that after connecting the tablet, the text fastboot mode on the display didn't change - all other devices I put into fastboot mode showed fastboot usb mode or similar after I connected them with my computer.
I tried different USB ports - nothing changed.
I'm just wondering, since I'm not familiar with acer devices: Is there a hidden key sequence to get into fastboot usb mode?
Thanks,
Tintom1
Tintom1 said:
Hi!
I recently got my new Acer Tablet A3-A30. After unlocking developer options and activating debugging I was able to use adb. So I rebooted into bootloader to see if fastboot works - it did not! The output of fastboot devices was empty (this and the following commands were typed as root).
So I killed adb with adb kill-server, disconnected it from my computer and turned it off. After a few moments I turned it on by pressing power while holding Vol[-]-Key. Again the tablet booted into fastboot mode. Now I connected it with my computer and hoped fastboot will recognize the device now. Again, the output was empty.
I noticed, that after connecting the tablet, the text fastboot mode on the display didn't change - all other devices I put into fastboot mode showed fastboot usb mode or similar after I connected them with my computer.
I tried different USB ports - nothing changed.
I'm just wondering, since I'm not familiar with acer devices: Is there a hidden key sequence to get into fastboot usb mode?
Thanks,
Tintom1
Click to expand...
Click to collapse
I have an a1-830 and it can be a real pain in the ass to get anything working on them. Try this, since you got adb working, adb reboot bootloader, then wait till it says fastboot cmd waiting or something. If that din't work, reply!
RAZERZDAHACKER said:
I have an a1-830 and it can be a real pain in the ass to get anything working on them. Try this, since you got adb working, adb reboot bootloader, then wait till it says fastboot cmd waiting or something. If that din't work, reply!
Click to expand...
Click to collapse
It worked, I got the fastboot mode with fastboot cmd waiting message!
Tintom1 said:
It worked, I got the fastboot mode with fastboot cmd waiting message!
Click to expand...
Click to collapse
Ayyy, hit thanks if I helped
RAZERZDAHACKER said:
Ayyy, hit thanks if I helped
Click to expand...
Click to collapse
But this is what I already got. It says fastboot mode (now with the waiting message), but not fastboot usb, so fastboot still doesn't see the device
Tintom1 said:
But this is what I already got. It says fastboot mode (now with the waiting message), but not fastboot usb, so fastboot still doesn't see the device
Click to expand...
Click to collapse
And fastboot devices shows...?
RAZERZDAHACKER said:
And fastboot devices shows...?
Click to expand...
Click to collapse
Nothing:
# fastboot devices
#
Tintom1 said:
Nothing:
# fastboot devices
#
Click to expand...
Click to collapse
If you are using Linux, try running fastboot with the sudo command. Also, the drivers might not be properly installed, check out this to download them.

Unlock bootloader

My Z5 compact was updated to Nougat using the OTA service.
The bluetooth integration to my car stopped working and I read that this was a noted problem I decided to flash my phone back to Marshmallow.
I'd installed custom ROMs on previous HTC phones following info from XDA so was pretty confident.
After following the Sony guidelines and obtaining my unlock key I am unable to get it to work in fastboot mode.
I suspect that it is a USB problem at one end or another.
If I connect up the phone to the PC using the original lead I can find it using adb devices and the device is showing up as error free "Sony sa0113 ADB Interface Driver" in Windows 10 device manager.
However the phone isn't charging and I can't get it into Fastboot by holding the up vol key and plugging in the USB lead.
I can get a black screen with the blue led by running adb reboot bootloader and the phone is recognised from fastboot devices but when I try to unlock the bootloader I get an error:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -i 0x0fce oem unlock 0xB4D9AxxxxC359F2C
...
FAILED (remote: Command did not succeed)
finished. total time: 0.042s
Any help appreciated.
PhilG57 said:
My Z5 compact was updated to Nougat using the OTA service.
The bluetooth integration to my car stopped working and I read that this was a noted problem I decided to flash my phone back to Marshmallow.
I'd installed custom ROMs on previous HTC phones following info from XDA so was pretty confident.
After following the Sony guidelines and obtaining my unlock key I am unable to get it to work in fastboot mode.
I suspect that it is a USB problem at one end or another.
If I connect up the phone to the PC using the original lead I can find it using adb devices and the device is showing up as error free "Sony sa0113 ADB Interface Driver" in Windows 10 device manager.
However the phone isn't charging and I can't get it into Fastboot by holding the up vol key and plugging in the USB lead or by running adb reboot fastboot
If feels like I haven't go the fastboot USB drivers but I can't see how or where I can add them.
Any help appreciated.
Click to expand...
Click to collapse
Disable driver signature enforcement then reinstall sony drivers
tapiwasam said:
Disable driver signature enforcement then reinstall sony drivers
Click to expand...
Click to collapse
Thanks. I think I am OK there because I accepted the drivers from an unverified source during installation.
Also I can see the phone with both adb devices and fastboot devices
However when I run adb reboot bootloader the phone reboots but comes up with a blank screen with the blue led.
adb reboot bootloader just goes into bootloader mode and not fastboot mode which is needed to unlock it. Go directly into fastboot by typing adb reboot fastboot
Then when your phone led is flashing blue, run your fastboot "oem unlock" command.
Saw now that you already tried that sorry about that.
Tried running cmd with admin privileges to see if that shows any difference?
Also from sony:
Please note! It will only be possible to unlock the boot loader for certain releases. You can check if it is possible to unlock the boot loader of your device in the service menu by following the steps below:
In your device, open the dialler and enter *#*#7378423#*#* to access the service menu.
Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.
Click to expand...
Click to collapse
PhilG57 said:
My Z5 compact was updated to Nougat using the OTA service.
The bluetooth integration to my car stopped working and I read that this was a noted problem I decided to flash my phone back to Marshmallow.
I'd installed custom ROMs on previous HTC phones following info from XDA so was pretty confident.
After following the Sony guidelines and obtaining my unlock key I am unable to get it to work in fastboot mode.
.... snip....
Click to expand...
Click to collapse
You don't need to unlock your bootloader to simply downgrade to official MM! Just use flashtool to flash the appropriate MM ftf. There are plenty guides available on XDA and elsewhere.
I'm lost in your explanation.
You wanted to unlock your bootloader to be able to downgrade your phone? That's right? And it's fine to me, but you don't need to do that if you don't feel like. Unlocking your bootloader is nog necessary to downgrade to MM via flashtool.
So you tried to unlock your bootloader. But what you write what happened afterwards is completely unclear to me, because it contradicts itself.
-->> "Also I can see the phone with both adb devices and fastboot devices"
Fine. This means your connected with your phone and fastbook recognizes your phone. So bootloader is unlocked and software to control that works fine.
-->> "However when I run adb reboot bootloader the phone reboots but comes up with a blank screen with the blue led."
Fine, so you unlocked your bootloader, and rebooted in fastboot.
-->> Obviously. It's an unlocked bootloader, you can double unlock it or something like that. You can relock it if you want (which doesn't make any difference for what you want to do) but that's a different method.
Is there any reason that you absolutely need to a second method to enter fastboot mode? Or any fastboot mode? It could be possible with another kernel, but I don't see the point to flash another kernel. I would just leave it like it is.
PhilG57 said:
Thanks. I think I am OK there because I accepted the drivers from an unverified source during installation.
Also I can see the phone with both adb devices and fastboot devices
However when I run adb reboot bootloader the phone reboots but comes up with a blank screen with the blue led.
Click to expand...
Click to collapse
that is notmal behaviour, that is fastboot mode, indicated by that blue LED
Thanks for the clarification that I don't need to unlock the bootloader to downgrade using flashtool. What I didn't say was that I couldn't reinstall Nougat using the Sony tool software restore option or get anywhere with flashtool because the phone won't go into the blue led mode by inserting the USB and holding the up vol button. I did try running flashtool in one window and the command line tools in another with the idea of running flashtool first and then unplugging the phone and replugging it to use command line to get the blue LED state, but that doesn't work because the command line tools can't see the phone once flashtool is running and has addressed the phone.
From what i read, i assume you are on nougat and want to go back to MM, right?
So you would need flashmode instead of fastboot mode.
You get there with holding Vol down button and plugging in USB cable on turned off phone.
Flashmode also shows a green notification light instead of the blue one.
If you having Problems to get there, please check following:
make sure to have latest version of flashtool installed http://www.flashtool.net/downloads.php
install drivers from your flashtool\drivers folder
don't use an USB 3.0 port or cable(have heard of some people having trouble with)
PhilG57 said:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -i 0x0fce oem unlock 0xB4D9AxxxxC359F2C
...
FAILED (remote: Command did not succeed) <- this
finished. total time: 0.042s
Any help appreciated.
Click to expand...
Click to collapse
OP, I had the exact same problem as you. At the time I tried absolutely everything but never found the culprit. So after several months I actually succeeded today
This is the guide I followed - https://forum.xda-developers.com/z5-compact/general/guide-how-to-root-z5c-painful-using-t3549388 and it worked perfectly.
A few pointers:
- Go to the service menu (*#*#SERVICE#*#*) before you begin, before you turn OEM Unlocking ON from Dev Options .
- Take note of what it says in Configuration and Firmware.
- Now enable OEM Unlocking and take note again, it should say stuff like Model Number: Unknown and other unknown stuff.
- Reboot - IMPORTANT.
- Use the guide I gave you and you will be fine, it took me ages to find a solution but now I'm on MM and rooted
Hope I helped :fingers-crossed::fingers-crossed::fingers-crossed:

adb commands work but fastboot says "waiting for any device"?

I am on an older macbook pro running High Sierra. the phone I'm using is a Blu G5 running android 9. I have the developer options unlocked and oem unlocked and usb debugging checked. When i open my terminal i type cd and drag and drop the platform tools folder into the terminal window changing the directory to the folder containing the adb and fastboot files. I can use adb commands such as adb devices and get the serial number and it says devices. So far so good. Then i reboot the phone into the bootloader manually or using command adb reboot bootloader and the phone goes into fastboot mode. I know because it says it on top of the screen in white letters. Then i run into the problem fastboot commands don't work. If I type in fastboot devices nothing but a new command line shows up. When i type in any other command like fastboot device or fastboot oem unlock it says "waiting for any devices." I wait and wait but nothing happens. I have looked on the internet for a solution but all i find is that the driver may not deinstalled properly. I have tried manually installing fastboot driver and used sdk manager to install the fastboot driver and I have tried it using the terminal in android studio but no matter what when i try useing fastboot commands i get the "waiting for any device" message. Does any have a solution or could anyone recommend and forum for android development on MacOSX?
@DimDreams
Seems the Fastboot driver is invalid.
jwoegerbauer said:
@DimDreams
Seems the Fastboot driver is invalid.
Click to expand...
Click to collapse
I have literally tried like 10 different sdk tool downloads just platform tool download basically every thing i can find. By chance would you or anyone out there have a working driver for MacOSX 10.13.6? or link a guide that can help me figure this out. I have made a little progress with a forum on xda about fastboot on macs but i still just keep getting the waiting for any device message.
@DimDreams
May also be that the Fastboot Android mode is not available on the phone in question.
I've had similar issues before and noticed that fastboot mode works better via USB 2.0 than USB 3.0. Maybe check which port you're using and switch. ADB seems to work well either way, however. Hope that helped.
I just had this problem as well and I found this, what worked for me is first boot your phone into bootloader mode with
Code:
adb reboot bootloader
. While in the bootloader fastboot worked for me. Hope this helps someone!

Categories

Resources