Doubts with fastboot - Moto X Q&A

Hi there i am trying to fix GPS issues on my moto x xt1058 and fastboot is giving me this:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash modem NON-HLOS.bin
(bootloader) Variable not supported!
error: cannot load 'NON-HLOS.bin'
what am i supposed to do?

Related

XT1095 - forgot to unlock before attempting to downgrade 5.1->5.0

I have an XT1095. I flashed the 23.1.28 leaked OTA a couple of months ago to get to 5.1, and now I'm attempting to get to the final 5.1 OTA. My phone was unrooted, and had the stock recovery.
I downloaded the nycgraffix 5.0 image. I followed this guide, but I forgot to unlock the bootloader. I got partway though flashing the files before I realized my mistake. Here's how it went, to the best of my memory:
Unzip the stock 5.0 image SUCCEEDED
Boot into fastboot SUCCEEDED
fastboot flash logo logo.bin SUCCEEDED
fastboot flash boot boot.img SUCCEEDED
fastboot flash recovery recovery.img SUCCEEDED
fastboot flash system system.img_sparsechunk.0 FAILED
Here's what happened on the failure:
Code:
C:\android\x\gnyc>fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (256598 KB)...
OKAY [ 8.081s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.190s
At this point, I realized I forgot to unlock, so I issued the "fastboot oem unlock" command with the key I got from Motorola. Unfortunately, this now fails:
Code:
C:\android\x\gnyc>fastboot oem unlock JQ3QVNTEBxxxxxxxxxx
...
(bootloader) Check 'Enable OEM Unlock' in Developer Options.
FAILED (remote failure)
finished. total time: 0.016s
The phone now only boots into fastboot, saying "Fastboot Reason: Last time flashing failed".
I'd be grateful for any help bailing out of this.
I decided to try the stock image that Motorola posted (note: this image won't allow you to get the 5.1 OTA!). Using the fastboot from Android's SDK, I did this:
Code:
1. Make sure you have a Moto Pure Edition or a Developer Edition device.
2. Make sure you download the corresponding recovery image from the above portal.
3. To flash, put the phone in fastboot mode: Power OFF...then Power ON+Volume Down .Alternatively, you can reboot into fastboot mode if you have adb... adb reboot bootloader
4. Next flash the images using fastboot:
$ fastboot flash partition gpt.bin
$ fastboot flash motoboot motoboot.img
$ fastboot reboot-bootloader
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
All these succeeded except the boot.img. So I tried unlocking again:
Code:
C:\android\x\official\TMO_LXE22.46-11_22.21.11.victara_tmo.tmo.en.US\TMO_LXE22.4
6-11_22.21.11.victara_tmo.tmo.en.US>fastboot oem unlock JQ3QVxxxxxxxxxxxx
...
(bootloader) Unlock code = JQ3QVxxxxxxxxxxxx
(bootloader) Unlock completed! Wait to reboot
Since that succeeded, I tried again:
Code:
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
$ fastboot flash recovery recovery.img
$ fastboot flash system system.img
$ fastboot flash modem NON-HLOS.bin
$ fastboot erase modemst1
$ fastboot erase modemst2
$ fastboot flash fsg fsg.mbn
$ fastboot reboot
These all succeeded and I'm booting to 5.0 again. Now I'll re-attempt the nycgraffix image so I can finally get the real 5.1 OTA.
I got the 5.1 OTA update as soon as I booted into the GraffixNYC image. I donated $20, since Motorola's own image is screwed up.
My next phone will be a Nexus. This phone has been a complete mess.

Moto g4 bootload and fastboot fails

Something messed up with my phone from last night. All of sudden it was dead and no signs of wake up expect battery led notification while charging. System showed.= qhsusb_bulk driver failed and I managed to fix it using SDK studio. Later it detected as Qualcomdevice loader. I did Blankflash, after few sec rebooted to fastboot mode. Downloaded the latest GPT files for the version NPJS25.93-14-8 and executed the below commands (pasted the result below)
C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
be51d16 fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash partition gpt.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slotartition: not found
error: cannot load 'gpt.bin': No such file or directory
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash bootloader bootlo
ader.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:bootloader: not found
error: cannot load 'bootloader.img': No such file or directory
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot-bootloader
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
rebooting into bootloader...
OKAY [ 0.015s]
finished. total time: 0.020s
Can you please hep to fix it.
Thanks
Suhi77 said:
Something messed up with my phone from last night. All of sudden it was dead and no signs of wake up expect battery led notification while charging. System showed.= qhsusb_bulk driver failed and I managed to fix it using SDK studio...
Click to expand...
Click to collapse
I don't have this device but, I believe that one or both of the following threads may be helpful for what you need and don't be afraid to ask for some member guidance within one of them.
https://forum.xda-developers.com/showthread.php?t=3475832
https://forum.xda-developers.com/showthread.php?t=1770816
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
Thanks Ibuprophen for the reply. As I was travelling last week I find no time to check this.
I downloaded the latest unviersal adroid flasher to troubleshoot my phone.
However I failed in first step. My phone is not recognized under devices.
I think its coz of the issue
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot partition: not found
error: cannot load 'gpt.bin': No such file or directory
Is there anyway I can get my device listed on the list.
Thanks.

Flashing back to stock ends with errors

I was trying to go back to stock 10 from latest official lineage as I did few times before, but what I get is errors like below:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
ZY225F37PD fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar max-sparse-size
getvar:max-sparse-size FAILED (remote: unknown command)
finished. total time: 0.003s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem fb_mode_set
(bootloader) slot-count-size: not found
(bootloader) slot-suffi: not found
...
(bootloader) 'fb_mode_setfixes' is not a supported oem command
(bootloader) See 'fastboot oem help'
FAILED (remote failure)
finished. total time: 0.005s
C:\Program Files (x86)\Minimal ADB and Fastboot> fastboot flash partition gpt.bin
(bootloader) slot-countxes: not found
(bootloader) slot-suf: not found
(bootloader) slot-suffi: not found
(bootloader) partition-typ: not found
(bootloader) max-download-: not found
target didn't report max-download-size
sending 'partition' (37 KB)...
Then the flashing process hangs.
Has anyone have an idea what may be causing this behavior?
I tried different cables, different PC's (windows and linux), phone boots to lineage, fastboot mode states flashing unlocked, boots to TWRP or lineage recovery so all seems to be fine but obviously isn't.
Anyone else experienced a problem of this sort?
[SOLVED] If anyone is interested I came to this last idea and dug out the oldest laptop we have at home and it came through with minimal adb and fastboot!
No idea why, my bet is that this has to do with USB on three other computers I had used being 3.0 only and a 2.0 on the old ASUS.
Anyways, I'm happy I made it and hope this can help someone looking for a solution to a similar problem.

Unlocking Bootloader Issue

Hello guys!
I have an XT1929-4 on android pie and I am having issues with unlocking my bootloader.
I am using the fastboot unlock method and I am always getting stuck with the "fastboot oem get_unlock_data" command. "fastboot devices" shows my device serial number. OEM unlock and USB debugging is also turned on in the devices settings. The tool I am using is the minimal ADB and Fastboot software. Tools mode config is enabled when I do the fastboot commands, If 'fastboot oem help' should work, then maybe all 'fastboot oem' commands are not working for me.
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
ZY2268BV45 fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem get_unlock_data
...
FAILED (remote: unknown command)
finished. total time: 0.003s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem get_unlock_data
(bootloader) slot-countta: not found
(bootloader) slot-suffi: not found
...
FAILED (remote: unknown command)
finished. total time: 0.002s
^I did the fastboot oem get_unlock data twice here.
I was planning to flash pixelexperience rom when I saw the thread here. Thank you in advance and I hope somebody can help.
FIXED: i used all three usb A ports of my laptop. I tried using the usb c port of the laptop by using a usb c to usb a adapter. fastboot oem get_unlock_data worked.

[ROM][13][amogus] AOSP 13.0

AOSP 13
This is a moto-common project release under the codename amogus. This build supports the following devices: rav, rav_t, sofia, sofiap, sofiap_ao, sofiap_sprout, sofiar.​
Code:
/*
* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
What's AOSP?
AOSP is Android as Google publish without any modifications.
Whats not working?
Speakerphone on sofia variants​
Instructions to install the ROM:
Reboot to bootloader:
Code:
adb reboot bootloader
The following will wipe your internal data:
Code:
fastboot -w
Code:
fastboot update package.zip
It will reboot your device to fastbootd, you might get the following warning:
Code:
FAILED (remote: 'Old partitions are not compatible with the new super layout; wipe needed')
, but you can continue with the following commands
Fastbootd:
Code:
fastboot flash product product.img
Code:
fastboot flash system system.img
Code:
fastboot flash vendor vendor.img
Code:
fastboot reboot
Downloads: Here
Source Code: Here
Sept 2: Fixed USB Mode Switching, Switched to new rebased kernel, Switched to EROFS
Sept 12: EGIS Fingerprint gestures fixed, Switch BtAudio to AIDL and September Patch level
Sept 28:
System Responsiveness has been tuned and improved
Introduce Multigenerational LRU Framework
Tune Dalvik Heap Sizes
Switched to QTI Thermal HAL
DT2W has been fixed for RAV (HIMAX) variants of amogus
Signature Spoofing support has been added to the ROM
Jan 26:
January Security Patch
Feb 27:
Feb security patch
Electimon said:
AOSP 13
This is a moto-common project release under the codename amogus. This build supports the following devices: rav, rav_t, sofia, sofiap, sofiap_ao, sofiap_sprout, sofiar.​
Click to expand...
Click to collapse
Great job! Thank you!
Would love to try but I can't downgrade :/
spiral777 said:
Great job! Thank you!
Would love to try but I can't downgrade :/
Click to expand...
Click to collapse
You can't downgrade? What do you mean by this?
Electimon said:
You can't downgrade? What do you mean by this?
Click to expand...
Click to collapse
I'm on a11, I don't have to downgrade to a10 to apply this update.zip?
spiral777 said:
I'm on a11, I don't have to downgrade to a10 to apply this update.zip?
Click to expand...
Click to collapse
No you don't, moto-common projects use custom vendors.
i got this to boot on my moto g fast thank you
edit: its still on android 11
just incase anyone might need it and something unexpected happens... https://support.lenovo.com/us/en/downloads/ds101291-rescue-and-smart-assistant-lmsa
spiral777 said:
i got this to boot on my moto g fast thank you
edit: its still on android 11
just incase anyone might need it and something unexpected happens... https://support.lenovo.com/us/en/downloads/ds101291-rescue-and-smart-assistant-lmsa
Click to expand...
Click to collapse
Microsoft Windows [Version 10.0.22000.856]
(c) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
xxxxx fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -w
wiping userdata...
Erase successful, but not automatically formatting.
File system type raw not supported.
erasing 'userdata'...
OKAY [ 0.835s]
finished. total time: 0.835s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot update package.zip
W/ziparchive(11136): Unable to open 'package.zip': No such file or directory
error: failed to open zip file 'package.zip': I/O error
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash product product.img
target reported max download size of 799954944 bytes
sending 'product_b' (273816 KB)...
OKAY [ 9.958s]
writing 'product_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.048s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img
target reported max download size of 799954944 bytes
Invalid sparse file format at header magic
sending sparse 'system_b' 1/2 (778517 KB)...
OKAY [ 28.791s]
writing 'system_b' 1/2...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 28.885s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash vendor vendor.img
target reported max download size of 799954944 bytes
sending 'vendor_b' (471860 KB)...
OKAY [ 17.570s]
writing 'vendor_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 17.649s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot
rebooting...
finished. total time: 0.016s
spiral777 said:
Microsoft Windows [Version 10.0.22000.856]
(c) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
xxxxx fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -w
wiping userdata...
Erase successful, but not automatically formatting.
File system type raw not supported.
erasing 'userdata'...
OKAY [ 0.835s]
finished. total time: 0.835s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot update package.zip
W/ziparchive(11136): Unable to open 'package.zip': No such file or directory
error: failed to open zip file 'package.zip': I/O error
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash product product.img
target reported max download size of 799954944 bytes
sending 'product_b' (273816 KB)...
OKAY [ 9.958s]
writing 'product_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.048s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img
target reported max download size of 799954944 bytes
Invalid sparse file format at header magic
sending sparse 'system_b' 1/2 (778517 KB)...
OKAY [ 28.791s]
writing 'system_b' 1/2...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 28.885s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash vendor vendor.img
target reported max download size of 799954944 bytes
sending 'vendor_b' (471860 KB)...
OKAY [ 17.570s]
writing 'vendor_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 17.649s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot
rebooting...
finished. total time: 0.016s
Click to expand...
Click to collapse
Uh you actually have to use the name of the zip in place of package.zip
Sept 2: Fixed USB Mode Switching, Switched to new rebased kernel, Switched to EROFS
So like are we able to go back to 11 if we don’t like 13?
TS_Brittany said:
So like are we able to go back to 11 if we don’t like 13?
Click to expand...
Click to collapse
Yes
Sept 12: EGIS Fingerprint gestures fixed, Switch BtAudio to AIDL and September Patch level
amogus
Truly an amogus moment
ive followed the install instructions as much as i can...factory reset...but this rom just bootloops on my moto g...anyone else get this to boot up?
spiral777 said:
ive followed the install instructions as much as i can...factory reset...but this rom just bootloops on my moto g...anyone else get this to boot up?
Click to expand...
Click to collapse
Can you show me the output of the commands?
Electimon said:
Can you show me the output of the commands?
Click to expand...
Click to collapse
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
xxxxx fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -w
wiping userdata...
Erase successful, but not automatically formatting.
File system type raw not supported.
erasing 'userdata'...
OKAY [ 0.835s]
finished. total time: 0.835s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot update aosp_amogus-img-eng.electimon-1.zip
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash product product.img
target reported max download size of 799954944 bytes
sending 'product_b' (273816 KB)...
OKAY [ 9.958s]
writing 'product_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.048s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img
target reported max download size of 799954944 bytes
Invalid sparse file format at header magic
sending sparse 'system_b' 1/2 (778517 KB)...
OKAY [ 28.791s]
writing 'system_b' 1/2...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 28.885s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash vendor vendor.img
target reported max download size of 799954944 bytes
sending 'vendor_b' (471860 KB)...
OKAY [ 17.570s]
writing 'vendor_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 17.649s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot
rebooting...
finished. total time: 0.016s
on rav moto g fast, thank you
spiral777 said:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: no devices/emulators found
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
xxxxx fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -w
wiping userdata...
Erase successful, but not automatically formatting.
File system type raw not supported.
erasing 'userdata'...
OKAY [ 0.835s]
finished. total time: 0.835s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot update aosp_amogus-img-eng.electimon-1.zip
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash product product.img
target reported max download size of 799954944 bytes
sending 'product_b' (273816 KB)...
OKAY [ 9.958s]
writing 'product_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.048s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img
target reported max download size of 799954944 bytes
Invalid sparse file format at header magic
sending sparse 'system_b' 1/2 (778517 KB)...
OKAY [ 28.791s]
writing 'system_b' 1/2...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 28.885s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash vendor vendor.img
target reported max download size of 799954944 bytes
sending 'vendor_b' (471860 KB)...
OKAY [ 17.570s]
writing 'vendor_b'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 17.649s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot
rebooting...
finished. total time: 0.016s
on rav moto g fast, thank you
Click to expand...
Click to collapse
Please use official platform-tools and not ancient Minimal ADB and Fastboot from like 2015. Thanks.
touchscreen and fingerprint reader not working on my retus moto g fast.
Electimon said:
Please use official platform-tools and not ancient Minimal ADB and Fastboot from like 2015. Thanks.
Click to expand...
Click to collapse
updating platform tools worked ty
https://app.box.com/s/voj724lqdb7cc8z3i8xt6mx3wxc96e3p
but product, system, and vendor failed to flash from twrp

Categories

Resources