All fastboot commands hang except 'fastboot devices' - bad hardware? - Moto G7 Play Questions & Answers

I have a brand new Moto G7 Play XT1952-4 (old stock, new in box) that I bought specifically to flash LineageOS. I have done this process with two previous Motorola phones over the years, but I seem to be the only person on the Internet with this particular problem: When I restart the phone into bootloader/fastboot mode, any fastboot commands that I send over to the phone hang the process. So this works:
>fastboot devices
XXXXXXXNVN Motorola Fastboot Interface
But this or any other fastboot command that communicates with the phone does not work:
>fastboot getvar all
<process hangs, ctrl-c will not interrupt it>
Sometimes while this command is hung, the simple interface on the phone locks up and the volume up/down and power keys are not responsive. If I unplug the USB cable, the fastboot command will fail and return and the phone is responsive as normal. What is strange is that fastboot worked initially.
When I first powered up the phone without Internet access, I enabled Developer mode and ADB debugging, and fastboot worked: I was able to run 'fastboot oem get_unlock_data' and I used that to retrieve my unlock code from Motorola. When I ran 'fastboot oem unlock XYZ' the phone told me to enable OEM unlocking. I rebooted the phone to find this option was disabled, so eventually I connected my phone to Wifi and the option was enabled. However, the phone began applying updates, so I waited until the updates were applied and resumed my operation. This is when the trouble started.
From that point on, fastboot has failed to work: no error messages, it just hangs. I have tried two laptops, two USB cables, two versions of fastboot (the Ubuntu 20.04 stock version and the 'latest' 30.0.4-6686687 from Google). I have factory reset the phone from Settings, factory reset from Recovery, and I let it go ahead and update to Android Q and repeated all of these things.
The only thing I am left with is this is some kind of hardware error with the USB port on the phone. If so, I wonder if I can make a warranty claim on 'fastboot commands do not work'? I am able to 'adb shell/push' fine, and the phone charges fine.
Any ideas?

I had the same problem i reinstalled adb and fastbood but that not worked than i reinstalled my entire system and installed fastboot + adb and it worked
The the command on a other pc out.

Exinu said:
I have a brand new Moto G7 Play XT1952-4 (old stock, new in box) that I bought specifically to flash LineageOS. I have done this process with two previous Motorola phones over the years, but I seem to be the only person on the Internet with this particular problem: When I restart the phone into bootloader/fastboot mode, any fastboot commands that I send over to the phone hang the process. So this works:
>fastboot devices
XXXXXXXNVN Motorola Fastboot Interface
But this or any other fastboot command that communicates with the phone does not work:
>fastboot getvar all
<process hangs, ctrl-c will not interrupt it>
Sometimes while this command is hung, the simple interface on the phone locks up and the volume up/down and power keys are not responsive. If I unplug the USB cable, the fastboot command will fail and return and the phone is responsive as normal. What is strange is that fastboot worked initially.
When I first powered up the phone without Internet access, I enabled Developer mode and ADB debugging, and fastboot worked: I was able to run 'fastboot oem get_unlock_data' and I used that to retrieve my unlock code from Motorola. When I ran 'fastboot oem unlock XYZ' the phone told me to enable OEM unlocking. I rebooted the phone to find this option was disabled, so eventually I connected my phone to Wifi and the option was enabled. However, the phone began applying updates, so I waited until the updates were applied and resumed my operation. This is when the trouble started.
From that point on, fastboot has failed to work: no error messages, it just hangs. I have tried two laptops, two USB cables, two versions of fastboot (the Ubuntu 20.04 stock version and the 'latest' 30.0.4-6686687 from Google). I have factory reset the phone from Settings, factory reset from Recovery, and I let it go ahead and update to Android Q and repeated all of these things.
The only thing I am left with is this is some kind of hardware error with the USB port on the phone. If so, I wonder if I can make a warranty claim on 'fastboot commands do not work'? I am able to 'adb shell/push' fine, and the phone charges fine.
Any ideas?
Click to expand...
Click to collapse
I think if it was a hardware issue, 'fastboot devices' would not display you ESN, thus indicating fastboot is ready. But I have to agree that this is quite unusual behavior for fastboot mode to hang up like you described. It could certainly be a corrupt bootloader partition (/aboot ??). You should try using the Lenovo-Moto Smart Assistant utility to do a full rescue of the firmware. Treat the phone just as you would if it was unstable or failing to boot. The LMSA utility actually utilizes fastboot mode to do the firmware rescue. So if you could get this to work it could possibly solve the problem. Here is a link to the 32- & 64-bit Windows versions of LMSA. I know you mentioned using Ubuntu, but I'm not sure if the utility is available for Linux. https://support.lenovo.com/us/en/downloads/ds101291

Viva La Android said:
I think if it was a hardware issue, 'fastboot devices' would not display you ESN, thus indicating fastboot is ready. But I have to agree that this is quite unusual behavior for fastboot mode to hang up like you described. It could certainly be a corrupt bootloader partition (/aboot ??). You should try using the Lenovo-Moto Smart Assistant utility to do a full rescue of the firmware. Treat the phone just as you would if it was unstable or failing to boot. The LMSA utility actually utilizes fastboot mode to do the firmware rescue. So if you could get this to work it could possibly solve the problem. Here is a link to the 32- & 64-bit Windows versions of LMSA. I know you mentioned using Ubuntu, but I'm not sure if the utility is available for Linux. https://support.lenovo.com/us/en/downloads/ds101291
Click to expand...
Click to collapse
We have a Macbook and I downloaded the "Command-line tools only" kit for MacOS from https://developer.android.com/studio/, and it worked! Strange that it didn't work on two different Linux machines with essentially the same software. Of course, there could be some other problem that I'll run into later, and I'll use the LMSA utility if so. Thanks for the ideas.

Exinu said:
We have a Macbook and I downloaded the "Command-line tools only" kit for MacOS from https://developer.android.com/studio/, and it worked! Strange that it didn't work on two different Linux machines with essentially the same software. Of course, there could be some other problem that I'll run into later, and I'll use the LMSA utility if so. Thanks for the ideas.
Click to expand...
Click to collapse
:good:

Adding this here as I ran into the same issue and was able to work around it.
Performing fastboot "oem'"commands from my Linux Mint machine (Ubuntu based) was failing.
I discovered that if I ran the commands from just any directory, the command would hang (and not even a ^C would break the command!). This action referenced the file '/usr/bin/fastboot'. (This file from the 'fastboot' package.)
$ fastboot oem get_unlock_data
<hangs>
HOWEVER, if I referenced the version of 'fastboot' stored in the Android SDK directory '/usr/lib/android-sdk/platform-tools', the command worked as normal.
$ /usr/lib/android-sdk/platform-tools/fastboot oem get_unlock_data
...
(bootloader) Unlock data:
<snip>
What's strange:
- Both files (/usr/bin/fastboot & /usr/lib/android-sdk/platform-tools/fastboot) are both from the 'fastboot' package
- Both files are identical.
Why one would work and the other wouldn't is a mystery for another day.

Related

Trouble with Fastboot

I just can't seem to get fastboot to see the phone...
I have a Z00AD2 with 2.19.40.22 software. USB Debugging is turned on. ADB sees the phone, both from my Ubuntu host system, and from a Windows 8.1 virtual machine. When I use "fastboot device" I just get "<waiting for device>" and when I run scripts/batch files (such as the one-click root) it hangs as well.
I'm assuming there's something very simple, and probably obvious, that I'm missing - but after 8hrs of messing with it yesterday, I'm a little fried.
Appreciate any thoughts!
This morning I installed a new Windows8.1 VM, installed the Intel drivers and adb/fastboot from the sticky page in the general forum. During adb/fastboot install, should I use the drivers provided if I've already installed the Intel version? I think I've tried both ways at this point... Plug the phone in, and it is recognized in adb. Fastboot displays "waiting for device".
I tried the one-click root batch file, and when running CheckBeforeAction.bat my phone restarts into fastboot mode, with the android opened-up on its back, and the batch file continues to "make sure 'asus android bootloader interface' installed on your computer successfully" (I'm not sure it is? I don't see any reference to it anywhere...).
If I proceed further I get the "if you see '123456789 ... fastboot' then you are ready to root" message - where is that supposed to display? On the phone's screen? Finally I hit a key and the batch file says it's rebooting my phone, and it gets stuck on <waiting for device>
Again, I'm sure I'm missing something simple; but I just can't figure what step(s) I'm missing.
Solved the problem, at least in terms of running fastboot on my virtual machine... I had only set up one device filter in VirtualBox, for the phone when it was in it's normal state. When in fastboot mode it uses a different driver, and thus needed a second device filter set up - once I did that, everything went smoothly as far as adb and fastboot functionality go. Having trouble now with flashing twrp...

Why can't I get Windows to recognize a G4 in Fastboot mode?

I'm trying to unlock the bootloader on my daughter's G4, and I have run into a heavy snag. I get "code 10" (driver can not start) when it's in fastboot mode, but I'm fully able to connect with adb when the phone's up and running. This is not my first rodeo, and I'm sure the USB cable works (original cable), I have enabled USB Debugging (or ADB wouldn't work in the first place) and I think I have done everything else that should be done. But the damn thing won't work on any of my computers, under Windows 7 or 10. Driving me nuts! Also when it's booted up I see it as an LG Mobile ADB interface, but when it's on Fastboot it insists that it is an MTP device, even if I have set it as a PTP device when it's booted up. Can anybody please tell me what I have to do to get this to work? Another thing is that if I run "adb reboot-bootloader" (or even the wrong syntax (at least I think the dash should be there) "adb reboot bootloader", which LG's page says), it will not boot into fastboot/bootloader, it reboots into Android. So I have to get into the setup by holding in vol + and plugging in the USB cable. But I don't know if this is related.
Edit: Oh, btw, I have tried to find the latest drivers, so far I'm on 4.0.0.0. They are dated May 2015.

Inconsistent Fastboot???

TL;DR: Have latest updates in SDK Manager. Pixel always detected properly by computer when in ADB and fastboot mode. However, seems to randomly fail/succeed when unlocking and flashing factory image. Is this common? Or is this a malfunction that should be exchanged for a new Pixel?
Detailed Version:
Has anybody experienced weird inconsistency issues with fastboot, where commands won't work over and over again, but then finally go through randomly? I have all the latest updates in SDK Manager, and flashing has never given me any issues on any of my Nexus devices. But unlocking the bootloader on my Pixel 2 XL was a PAIN last night. USB debugging and OEM unlocking was checked in Developer Options. I know I did everything right. Phone was always detected correctly when sending "fastboot devices" or "adb devices". Yet, when I would send "fastboot flashing unlock", it would say "FAILED: command write failed (no error)". Out of frustration, I tried "Fastboot OEM unlock" (even though I knew it wouldn't work) and it returned "FAILED: remote unknown command".
So after trying about TEN TIMES between switching cables (one being the Google cable that came with my 6P), and USB 3.0 and 2.0 ports, it randomly decided to work! Thought it was odd that when I selected to unlock the bootloader on the Pixel, it didn't automatically restart (I had to select Start in the bootloader menu). Then, I went through the whole thing all over again with the "fastboot flashing unlock_critical". Then AGAIN when trying to flash the latest factory image that Google posted yesterday. What should've taken me 5 minutes ended up taking OVER AND HOUR. Was kind of worried about flashing the factory image, as I didn't want it to error out in the middle and brick me, but I figured what the heck. It failed to start once and restarted the phone while the command prompt was "waiting for device", Once I put it back in fastboot mode and connected it, it flashed the factory image like normal. This whole thing is very weird odd. Anybody else experience this? Is the Pixel that picky with some cables, where it will only work intermittently? Could my Pixel be defective in some way? Wondering if I need to exchange it, or if this is common and would just happen on the new one as well. Any help is welcome. THANKS!

Device unrecognized on multiple systems

I've been researching and trying to sort this out on my own for a while now. I've turned up nothing, so I figured I'd ask for some help. I'll try to provide as much information as possible here.
I was attempting to unlock and root my Razer Phone from my Windows PC. I plugged it in and had it recognized over ADB with no issue. I sent "adb reboot bootloader" to start things off. Once it was in download mode, I sent the "fastboot -i 0x1532 devices" command to make sure it was recognized. It wasn't. I checked devices manager, and sure enough, it was not picking up the Google driver that every other device I own works with. I attempted to update the driver manually by pointing it to the inf file. It gave me an error stating that the driver is not designed to work with 64-bit Windows. I found that odd, as this is the exact same driver that I've used with my other devices for this stuff. I plugged in my HTC 10, since that was nearby. It was recognized via fastboot like it always was. Same cable I was using with the Razer and everything.
I booted to Linux Mint on the same machine and tried the same stuff. It would pick up the Razer only in fastboot, but not ADB. In fastboot, I could detect it with "fastboot -i 0x1532 devices", and it showed up just fine. When I attempted to run "fastboot -i 0x1532 flashing unlock" it just gave me the fastboot command reference list. (I don't have a screenshot, but it looked like this, in case you're unsure what I am referring to.) I rebooted back to the system and double checked that I had checked "Enable OEM Unlock", and I had done that already. I double checked everything with my HTC 10, and again, it all works fine on the HTC 10. ADB and fastboot are both recognized correctly on Linux.
So armed with this information, I moved over to my Linux server. I used a different cable this time, and got a similar result. The Razer phone was recognized over ADB and I was able to get into fastboot. Once there, it was detected with the fastboot devices command. I attempted to run the unlock command, and again was presented with the fastboot reference list as before. Double checked with the HTC 10, and all was workign fine with that device.
Does anyone have any ideas, or is it possible that it's the Razer phone that's the problem? I may have access to a Mac laptop later on, and I could attempt this from there, but this is getting nuts. I don't think I've ever had this much trouble getting into a device before.
Yeah I had this as well, basically you may have the latest drivers but are missing the latest adb/Fastboot executables. Apparently they have changed a few commands in the newer one and that way of unlocking isn't in the old version. Just google for the adb/Fastboot package from the Google site, can remember the exact name but it was the first hit on Google. I just extracted the whole zip to a directory and used it right from there. The reason you are getting the help screen from Fastboot is cause for that version at least, your giving it an illegal command.
I got the same problem till I put my usb in a usb 2.0 in the back of the pc in a highlight usb port witch I read after on Asus Website that suppose to charge your phone if you turn off your pc so basically a always on usb. Also I managed to unlock and brick my device only with one cable I tried 4 cables none of them worked .so for you to keep In mind
Try different cables
Try usb 2.0
Try driver from twrp for razer phone thread that worked for me
Seems to be an ongoing issue for me on my main desktop. I grabbed my old development laptop out of the closet, booted it up, and I was able to get everything recognized and working. I tried doing some more work this morning on my desktop and noticed that I'm having driver issues elsewhere, so it seems to be an issue with this machine. I'm still not sure why the Linux installation on the same machine was exhibiting the same issue, though.

Trying to unlock the Bootloader, can't get fastboot to work

Hello,
I've been trying for the past several hours to unlock the bootloader of my Moto Z2 Play (model:XT1710-09) by following different tuturials but fastboot don't seem to detect my phone, no matter what i do.
Nothing happens when i type “fastboot devices” in the command window.
I've noticed that my phone appear in the device manager in "other devices" as "Fastboot albus S" when it is in bootloader mode, which doesn't seems normal.
Edit: Some additional info: -i am on windows 10 pro
-ADB detect the phone whit no problem but Fastboot doesn't
-when connected with usb debugging enabled, windows detect it as "ADB interface" (which seems normal) and use "C:\\WINDOWS\system32\DRIVERS\winusb.sys" as driver (which seems less normal to me, i may be wrong)
-i tried installing Motorola specific drivers but i only found MotorolaDeviceManager, which doesn't seem to do anything, and no way to download the drivers manually
Edit 2: I still don't know why i can't get it to work on windows but i just managed to do it using a linux bootable usb, my device is unlocked \o/
If anyone know why fastboot doesn't wok on my windows and how to get it to work, i'm still interested

Categories

Resources