yashsingh1/xdaforums huggingface dataset:
[Moto G7 Power Guides, News, & Discussion] sluggedlemon:
This guide aims to recover your G7 power from a hard brick that leaves it in emergency download (EDL) mode.

Will this work with my device?

This should work on any device in EDL mode. To check for this mode, first try entering fastboot by holding the power button and volume down at the same time. If the screen comes on, use this guide instead.

If your device can't enter fastboot, connect it to a computer using it's USB-c cable, and open device manager using the search bar. Scroll down to "Ports" and open it, then look for a device called "qualcomm hs-usb qdloader 9008". if it appears, you might just be in luck.

The fix

Recovering from this brick is quite a simple process, as a blank flash is available.

Connect your device to a computer

Download blankflash.zip from https://mega.nz/#!tVd1VaoZ!epk2yLEqnQBKEwT2QbQaOe8-4675pfj76Hs7pC5kbQE onto your computer, and extract it to it's own folder

Run "blank-flash.bat", and wait for it to finish

If you receive an error message like "ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error" on your computer, try holding the power button on your phone for about 10 seconds and trying again, or unplug and reconnect your phone.

After Running blank-flash.bat

From here, your phone should be able to start. If it enters recovery mode, boot loops or has other problems, but CAN now boot, follow this guide to reset your phone to stock, or you can use Lenovo smart assistant's recovery option.

Thanks to ChampC for finding the blankflash to make this recovery possible.
[Moto G7 Power Guides, News, & Discussion] sithuphyo:
Thank

Work XT1955-4.

:fingers-crossed::fingers-crossed::fingers-crossed:
[Moto G7 Power Guides, News, & Discussion] Romathon:
Decryption Key

What's the decyption key to download the file?
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
https://mega.nz/#!PHRD1KhI!epk2yLEqnQBKEwT2QbQaOe8-4675pfj76Hs7pC5kbQE
[Moto G7 Power Guides, News, & Discussion] sluggedlemon:
Seems like there was a problem with the link. Not sure why, as it should have been identical to the one I used to download it, but either way it's fixed now.
[Moto G7 Power Guides, News, & Discussion] levpard:
Another sucessfull resurrection of an 1955-4 Thanks a lot!!! You saved my life... i mean phone :D :D
[Moto G7 Power Guides, News, & Discussion] Romathon:
Saved my phone.

Man....I never thought the universe would align for me to

A. Have my phone back after a failed TWRP flash. (Which in ten years I've never bricked a phone.) Thank you so very much for providing the blank flash needed to fix my phone. and B. I mounted a new tire to a rim I had to buy because mine was cracked so my car is also saved.

So thank you. So very very much.

p.s thanks for fixing the download link as well.
[Moto G7 Power Guides, News, & Discussion] disobey:
EDIT: I'm currently stuck here. This is what I get in the qboot_log:

**** Log buffer [000001] 2019-10-31_05:53:29 ****

[ 0.000] Opening device: \\.\COM3

[ 0.001] Detecting device

[ 4.004] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error

[ 4.004] Check qboot_log.txt for more details

[ 4.004] Total time: 4.005s

[ 4.004]

[ 4.004] qboot version 3.40

[ 4.004]

[ 4.004] DEVICE {

[ 4.004] name = "\\.\COM3",

[ 4.004] flags = "0x64",

[ 4.004] addr = "0x61FE4C",

[ 4.004] api.bnr = "0xF92F20",

[ 4.004] }

[ 4.004]

[ 4.004]

[ 4.004] Backup & Restore {

[ 4.004] num_entries = 0,

[ 4.004] restoring = "false",

[ 4.004] backup_error = "not started",

[ 4.004] restore_error = "not started",

[ 4.004] }

[ 4.004]
[Moto G7 Power Guides, News, & Discussion] sluggedlemon:
Blankflashes can be temperamental, try disconnecting your phone and holding the power button for 10 seconds to make sure it's off before retrying. I've also heard it can help if you run it quickly after reconnecting it, but I've never needed to.

-ps: sorry for not responding earlier
[Moto G7 Power Guides, News, & Discussion] gigawatt:
Hi, does this blank flash flash the bootloader from the unlocked varient so that I can flash the factory image from the unlocked version and relock the bootloader without loading a carrier bootloader?
[Moto G7 Power Guides, News, & Discussion] sluggedlemon:
I believe that this is the unlocked version, but I don't have experience unlocking phones so I'm not sure if it's what you need.
[Moto G7 Power Guides, News, & Discussion] fawazed:
Thank you in advance

Kindly need help with my phone since I tried for almost 5 hours (google/softwares/threads), but still no success.

I tried installing lineageos and I got a bootloop so silly me wiped everything in twrp and formatted data hoping to repeat the steps all over again and make it work. Now, I'm stuck in fastboot mode (no android logo on top), oem_locked, and barcode IMEI shows zeros. PS Fastboot commands won't work and it gives me (permission denied) every time. When I turn off the phone and plug the cable, fastboot mode comes up right in.

any idea whats going here, or any help with the matter is really appreciated :)
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
Try

fastboot oem blankflash

That should put the device into

Emergency download mode

Then you can follow instructions in post #1
[Moto G7 Power Guides, News, & Discussion] fawazed:
Okay, will try that.. thank you :good:
[Moto G7 Power Guides, News, & Discussion] fawazed:
Thank you it worked now .. much appreciated :victory::good:

For those who might face issue of getting stuck on "waiting for devices" when running the bat file, try updating the moto/qualcomm drivers, and choosing the drivers manually in Device Manager. :)
[Moto G7 Power Guides, News, & Discussion] kerelberel:
It doesn't seem to work for my XT1955-4.. I get that same error as other people. But I can't seem to restart my phone. I hold the power button hoping it will turn off, then when I connect it to laptop, it instantly pops up in the device manager.

Unbelievable how annoying it is to install custom stuff on this phone.

EDIT: I still had my SD card in it. After I removed it, it worked..
[Moto G7 Power Guides, News, & Discussion] flash713:
...

---------- Post added at 12:53 AM ---------- Previous post was at 12:52 AM ----------

I get same exactly as you do on my metro g7 power when running ./blank-flash.sh ??

Did you ever resolve this issue and get yours fixed or still bricked?
[Moto G7 Power Guides, News, & Discussion] ShadowPanzer:
Update 2: Managed to get it to work this time! Just took a few attempts to run the BAT file successfully immediately after plugging in the device.

Update 1:

Swapped out for another USB cable and it started, but failed in the end. Here's the result:

--------------------------------------------------------------------------------------------------------------------------------------

Hi all,

I believe I hard bricked my phone when trying to install TWRP earlier today. I had just fastbooted the TWRP image and tried to install the TWRP zip but it did not succeed. I switched over to partition B and accidentally restarted and now it won't boot at all. Tried to use the solution here, but I keep getting the IO error.

Any ideas on what to try next?
[Moto G7 Power Guides, News, & Discussion] Virtual187:
This solution does not work on my XT1995-4

I just get errors about IO over and over, tried 3 different computers and 3 different USB C cables.
[Moto G7 Power Guides, News, & Discussion] Hyoretsu:
So, this is the worst that can happen to my device right?

"The key is you fastboot the TWRP img, then you MUST WIPE system, data, dalvik/cache and internal storage - in TWRP - then flash the copypartitions.zip, then flash the ROM, then INSTALL TWRP, then Gapps, then flash Magisk and it works fine. See and follow the OP." Also this is the correct procedure, CrDroid especifically, right? (Asking because I found 3 different instructions, planning to go straight to unlocking bootloader and following that when I receive my device for permanent twrp+custom rom)
[Moto G7 Power Guides, News, & Discussion] KUSANAGUI:
please help me my moto g7 power does not turn on nor can i enter fastboot mode

I unlocked the bootloader first, then I installed the twrp, and in the end I tried to install magisk, but I got an error and I couldn't install magisk.

And then before leaving the twrp, I first selected without realizing the option to switch to the slot b and then select to restart the system, and now it does not turn on the phone, not even charging it, it was 70% battery, nor can I enter mode fastboot, and the pc does not recognize the cell phone.

I have the version xt1955-2 (ocean)

what should I do?

I first installed the Qualcomm HS-USB QDLoader 9008 drivers

but they don't appear after restarting the pc,

in device manager /ports does not appear: qualcomm hs-usb qdloader 9008!!!
[Moto G7 Power Guides, News, & Discussion] KUSANAGUI:
help !!!

**** Log buffer [000001] 2020-01-23_07:34:41 ****

[ -0.000] Opening device: \\.\COM3

[ -0.000] ERROR: device_open()->error opening device

[ -0.000] Check qboot_log.txt for more details

[ -0.000] Total time: 0.002s

[ -0.000]

[ -0.000] qboot version 3.40

[ -0.000]

[ -0.000] DEVICE {

[ -0.000] name = "\\.\COM3",

[ -0.000] flags = "0x60",

[ -0.000] addr = "0x61FE4C",

[ -0.000] api.bnr = "0xF82D68",

[ -0.000] }

[ -0.000]

[ -0.000]

[ -0.000] Backup & Restore {

[ -0.000] num_entries = 0,

[ -0.000] restoring = "false",

[ -0.000] backup_error = "not started",

[ -0.000] restore_error = "not started",

[ -0.000] }

[ -0.000]
[Moto G7 Power Guides, News, & Discussion] flash713:
Anyone that can't get this to go know that I was one who ran it probably 50 times without success until just now I got it to work and my phone's alive again! God bless the blank flash provider and all involved. :) My best advise is play with your power button hold it down a few seconds unplug, plug back in run it in different terminal windows at the same time. That's what I did and I literally looked away and back a few seconds later and my phone was booted into fastboot flash mode. I swear it had something to do with having multiple windows in my terminal open and running the ./blank-flash.sh on a few all at once. But play with your power button on your phone... Hold it in, let it go, plug up, unplug, multiple windows in terminal and run it one after the other in another terminal window. Worked for me! Much thanks op and all involved! :good:

PS: I am using Linux mint 19.3. Not that that matters a whole lot just wanted to put down all the details.
[Moto G7 Power Guides, News, & Discussion] TheTom83:
XT1955-4 black-screen

Hi together!

I just bought a brand new Moto G7 XT1955-4 (West-European / G7 Power).

Now i´ve done something wrong in the flash-process of "TeamWin - TWRP"-Image - I used the River-IMG, not the OCEAN-IMG of twrp.

Tried to fix my failure and now I´m stuck in a totally black-screen (no charging-image, no possibility to get a connection via fastboot/ adb).

I´ve installed the Qualcomm HS-USB QDLoader 9008, mentioned in another post and if i plug in the device, I can see/ hear that Windows (10/64Bit) detects it (Devicemanager).

I´ve modified the "blank-flash.bat" to a infinite-loop...

------------------

bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit -set TESTSIGNING ON
:START
.\qboot.exe blank-flash %*
ping 127.0.0.1 -n 5
goto START

------------------

... and started 5 instances of that batch-file as administrator.

Now and then I press the "POWER-Button" on the device for ~12sec. and reconnect the device to the USB-Port.

No luck by now :(

Do you have any further suggestions what I should try?

Thanks a lot!

Tom from Germany :)

Output-Log of "blank-flash.bat":

------------------

[ -0.000] Opening device: \\.\COM3
[ 0.002] Detecting device
[ 2.006] ERROR: sahara_greet_device()->device_open()->error opening device
[ 2.006] Check qboot_log.txt for more details
[ 2.008] Total time: 2.010s
[ 2.009]
[ 2.009] qboot version 3.40
[ 2.009]
[ 2.009] DEVICE {
[ 2.009] name = "\\.\COM3",
[ 2.009] flags = "0x64",
[ 2.009] addr = "0x61FE4C",
[ 2.009] api.bnr = "0x8C2E10",
[ 2.009] }
[ 2.009]
[ 2.009]
[ 2.009] Backup & Restore {
[ 2.009] num_entries = 0,
[ 2.009] restoring = "false",
[ 2.009] backup_error = "not started",
[ 2.009] restore_error = "not started",
[ 2.009] }
[ 2.009]

------------------

Once i´ve noticed " flags = "0x64" was logged as " flags = "0x60" - is ithis an issue? Whats correct?
[Moto G7 Power Guides, News, & Discussion] flash713:
I just unbricked my G7 Power again, for the 5th time. It took me five days of 20 minutes or so each day of running the sudo ./blank-flash.sh on my laptop that uses Linux Mint 19.3 before I got it to boot into fastboot this time. During this time I had many different errors show up on my terminal, some that have never showed up before during my last 4 unbrick successes. I say just run it until your tired of it every day until it completes. I think it will eventually work. The key for me has been trying different USB cords, different ports-i would switch ports every seven runs or so and open new terminal windows. As soon as one session would freeze up on me I'd open another new terminal, change port, hold power + volume up or volume down for 2-12 seconds randomly then initiate the blank flash and plug in my usb. Sometimes I'd let go of buttons immediately after plugging in sometimes I'd hold them and count a few seconds then release them. Running it then switching up ports and opening new window in terminal while other was still open I think may have played a role in getting it to complete. Sounds insane but I now have 5 successful resurrections from a phone that wouldn't turn on at all and was definitely hard bricked.

Don't give up. Just set it aside and return to it another day or another time. If you don't give up I believe it will eventually work. Probably when you least expect it to. Hahaha. That's what's happened in my experiences with this. Good luck. :good:
[Moto G7 Power Guides, News, & Discussion] TheTom83:
Woooha! :D

I did it!

< waiting for device >
Motorola qboot utility version 3.40
[ -0.000] Opening device: \\.\COM4
[ 0.003] Detecting device
[ 0.007] ...cpu.id = 186 (0xba)
[ 0.010] ...cpu.sn = xxxxxxxxxxxxxxxxxxxxxxxx)
[ 0.010] Opening singleimage
[ 0.023] Loading package
[ 0.029] ...filename = singleimage.pkg.xml
[ 0.033] Loading programmer
[ 0.035] ...filename = programmer.mbn
[ 0.035] Sending programmer
[ 0.322] Handling things over to programmer
[ 0.323] Identifying CPU version
[ 0.329] Waiting for firehose to get ready
[ 3.335] ...MSM8953 1.0
[ 3.336] Determining target secure state
[ 3.337] ...secure = yes
[ 3.361] Configuring device...
[ 3.367] Flashing GPT...
[ 3.368] Flashing partition with gpt.bin
[ 3.371] Initializing storage
[ 3.385] ...blksz = 512
[ 3.452] Re-initializing storage...
[ 3.452] Initializing storage
[ 3.506] Flashing bootloader...
[ 3.510] Flashing aboot_a with emmc_appsboot.mbn
[ 3.740] Flashing rpm_a with rpm.mbn
[ 3.799] Flashing tz_a with tz.mbn
[ 4.051] Flashing devcfg_a with devcfg.mbn
[ 4.078] Flashing cmnlib_a with cmnlib_30.mbn
[ 4.284] Flashing cmnlib64_a with cmnlib64_30.mbn
[ 4.476] Flashing keymaster_a with keymaster64.mbn
[ 4.663] Flashing prov_a with prov.mbn
[ 4.715] Flashing sbl1_a with sbl1.mbn
[ 4.821] Rebooting to fastboot
[ 4.822] Total time: 4.827s

What I did:

- Removed my "ping-command" mentioned in my first post.

- Ran 3 instances of the script as administrator.

- Random clicked buttons / removed cable / port

As far as I can say/remember: On the sucessful try I pressed all (power /volume (middle)) buttons and reconnected the USB-cable - took me ~15min. (today) but I guess it was kind of much luck :silly:

PS: For those wondering - If you succeed - the 9008-connection will be gone, the 3 instances of the script (infinite loop) will not rune it / reboot / re-blank-flash the device.

Thanks for your support :good::D
[Moto G7 Power Guides, News, & Discussion] badatthings:
Saved me a phone

so i clearly have no idea what i'm doing and hard-bricked my phone. i was about to go get a new one and then tried this. and it worked. just wanted to say thanks.
[Moto G7 Power Guides, News, & Discussion] skalnas:
Thanks for the blankflash, saved my device

I recently hardbricked my motog7 power somehow when I was trying to restore my system after a failed flash

in twrp. Screen would not turn on, could not enter fastboot. Took a few tries, but this flash file was able to get

me into fastboot so i could restore via rsd lite. Eternally grateful.
[Moto G7 Power Guides, News, & Discussion] pwn.luca:
./blank-flash.sh < waiting for device >

Good morning everyone.

Before I did some mistakes (besides not taking a backup, yup) I reflashed stock ROM because of modem-problems in LineageOS. My modem is now active again.... was:

After an unsuccessful try of installing the official TWRP on my XT1955-4 ocean (RETEU) and wanted to blankflash my device.

I can enter fastboot via

volume-down + power

and can enter temporary twrp with the command

fastboot boot twrp-3.3.1-2-ocean.img

When I want to change the Boot Slot within TWRP it said that /data couldn't be mounted (besides the cache folder /data is empty).

Both slots are bootlooping fastboot. If I click "START" with my power-button within fastboot it is saying this nice message "This device has been unlocked and can't be trusted. Bad key" and boots back into fastboot.

I tried to reflash with the stockROM from lolinet dot com firmware moto ocean (RETEU)

(with this I did lastly the reflash for which point I tried to install TWRP and reflash a CustomROM).

I run within a .sh script:

fastboot oem lock begin
fastboot oem lock begin
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.2
fastboot flash vendor vendor.img_sparsechunk.0
fastboot flash vendor vendor.img_sparsechunk.1
fastboot flash oem oem.img
fastboot flash oem_b oem_other.img
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot oem lock
fastboot reboot

which outputs

Running the command

./blank-flash.sh

outputs:

So I ran

adb devices

which gave me:

but

fastboot devices

gave:

[user@hostname moto_g7_stock]$ fastboot devices
ZY326XR9MW fastboot
[user@hostname moto_g7_stock]$

I'm out of ideas so I thought it would be a good idea if I descripe my problem.

If you need more log output, I will help wherever I can.

~ Luca from Germany
[Moto G7 Power Guides, News, & Discussion] KUSANAGUI:
the same problem and it is not solved with anything.

the same problem and it is not solved with anything.
[Moto G7 Power Guides, News, & Discussion] horekdestroyer:
ReadFile() failed, GetLastError()=0 eso me aparece
[Moto G7 Power Guides, News, & Discussion] lolcos:
it says waiting fo firehose, can anyone upload it?

[ 0.000] Opening device: \\.\COM3

[ 10.013] Detecting device

[ 13.005] ReadFile() failed, GetLastError()=0

[ 13.538] ...cpu.id = 186 (0xba)

[ 13.538] ...cpu.sn = 948261486 (0x3885526e)

[ 13.539] Opening singleimage

[ 13.540] Loading package

[ 13.543] ...filename = singleimage.pkg.xml

[ 13.561] Loading programmer

[ 13.563] ...filename = programmer.mbn

[ 13.565] Sending programmer

[ 13.882] Handling things over to programmer

[ 13.883] Identifying CPU version

[ 13.884] Waiting for firehose to get ready

[ 74.809] Waiting for firehose to get ready

[126.880] ReadFile() failed, GetLastError()=0

[126.884] ReadFile() failed, GetLastError()=0

[135.484] ...MSM8953 unknown

[135.485] Determining target secure state

[135.491] Waiting for firehose to get ready

[142.436] ReadFile() failed, GetLastError()=0

[151.643] ReadFile() failed, GetLastError()=0

[151.647] ReadFile() failed, GetLastError()=0

[197.184] ...secure = no

[197.468] Initializing storage

[197.476] Waiting for firehose to get ready
[Moto G7 Power Guides, News, & Discussion] lcsvcn:
Motorola qboot utility version 3.40

[ -0.000] Opening device: \\.\COM3

[ 0.001] Detecting device

[ 0.004] ...cpu.id = 186 (0xba)

[ 0.004] ...cpu.sn = 2492818968 (0x94956618)

[ 0.004] Opening singleimage

[ 0.005] Loading package

[ 0.006] ...filename = singleimage.pkg.xml

[ 0.007] Loading programmer

[ 0.007] ...filename = programmer.mbn

[ 0.007] Sending programmer

[ 0.291] Handling things over to programmer

[ 0.292] Identifying CPU version

[ 0.293] Waiting for firehose to get ready

[ 60.846] Waiting for firehose to get ready

[120.934] ...MSM8953 unknown

[120.934] Determining target secure state

[120.935] Waiting for firehose to get ready

[181.021] ...secure = no

[181.043] Initializing storage

[181.045] Waiting for firehose to get ready

[241.127] Configuring device...

[241.128] Waiting for firehose to get ready

[301.202] Waiting for firehose to get ready

[361.277] Waiting for firehose to get ready

[421.352] Waiting for firehose to get ready

[481.427] Initializing storage

[481.429] Waiting for firehose to get ready

[541.501] Configuring device...

[541.502] Waiting for firehose to get ready

[601.591] Waiting for firehose to get ready

[661.679] Waiting for firehose to get ready

[721.763] Waiting for firehose to get ready

[781.851] Waiting for firehose to get ready

[841.925] Configuring device...

[841.926] Waiting for firehose to get ready

[901.997] Waiting for firehose to get ready

[962.072] Waiting for firehose to get ready

[1022.147] Waiting for firehose to get ready

[1082.222] ERROR: do_package()->do_recipe()->do_configure()->buffer_read()->device_read()->IO error

[1082.222] Check qboot_log.txt for more details

[1082.223] Total time: 1082.224s

[1082.223] There were some hiccups in backup and restore.

[1082.224] Please save the following files and see a Bootloader member.

[1082.224] 1) ./qboot_log.txt

[1082.225] 2) ./backup_0x94956618_2020-03-09_213236.img

[1082.225]

FAILED: qb_flash_singleimage()->do_package()->do_recipe()->do_configure()->buffer_read()->device_read()->IO error

Twice resulting the same running blank-flash

Here is the generated backup file
[Moto G7 Power Guides, News, & Discussion] Miinoru:
It would be good if they manage to work, put the version phone model to know that it works and keep trying. in my case it is xt1955-2 (AT&T MX) still without results and trying every day with the same logs errors.
[Moto G7 Power Guides, News, & Discussion] CHICHAN14:
Hello everyone, I tell you that I am having the same problems. I get the same errors ReadFile () failed, GetLastError () = 0 ...

In my particular case I updated my cell phone to the last update of February and restart brick. I believe that the error in this case is that the bootloader was updated so there would be a bank flash with the files of the February update.

I'm wrong?

Thank you all very much and sorry for the translation..
[Moto G7 Power Guides, News, & Discussion] williamcarmo:
Moto g7 power xt1955-1

Friends, i need help, i am with my dead device in hard brick after deleting pasta system by twrp.

I have tried all blank flash available on the site but it doesn't work because my model has tv and two chips, for me it would be the blank flash xt1955-1 brazilian model, someone help me for the love of god!