yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] :
My cell phone was dead, with this tutorial it revived.

Can I make this update appearing in my notification bar?
[Moto G4 Plus Guides, News, & Discussion] Finovsk:
Quoting from this thread:

"Still if it shows QHSUSB_BULK then you may try installing RiffBox drivers from the attachment below. You need to install this manually (google if you don't know how to do it) by disabling the driver signature verification on windows (google it if you don't know). Choose correct sys file to install (x64 or x32)."

Also, I got stuck on fastboot erase modemst1, so I used mfastboot instead.

You, sir, saved my ass.
[Moto G4 Plus Guides, News, & Discussion] mohsinsaifi1:
I am getting Sahara greet error

C:\Users\Mohsin Khan\Downloads\Compressed\blankflash\blankflash>.\qboot.exe blank-flash

Motorola qboot utility version 3.40

[ 0.000] Opening device: \\.\COM3

[ 0.002] Detecting device

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

[ 4.017] Check qboot_log.txt for more details

[ 4.017] Total time: 4.018s

FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error

C:\Users\Mohsin Khan\Downloads\Compressed\blankflash\blankflash>pause

Press any key to continue . . .
[Moto G4 Plus Guides, News, & Discussion] echo92:
What device are you running and how did you brick your device? Is this with the blank flash in the opening post?
[Moto G4 Plus Guides, News, & Discussion] mohsinsaifi1:
It's working now... Thank you soooo much

Athene 1643, the device is working fine now
[Moto G4 Plus Guides, News, & Discussion] makinox:
I fond this of the rar that i donwloaded

--

BUILD REQUEST INFO:

SW Version: athene-user 6.0.1 MPJ24.139-23.4 4 release-keysM8952_70004.04.03.32R

MBM Version: B0.0E

Modem Version: M8952_70004.04.03.32R

FSG Version: FSG-8952-03.49

Build Fingerprint: motorola/athene/athene:6.0.1/MPJ24.139-23.4/4:user/release-keys

VERSION INFO FOUND UNDER 'ABOUT PHONE' SCREEN:

System Version: Unknown

Model number: Moto G (4)

Android Version: 6.0.1

Baseband Version: M8952_70004.04.03.32R

Build Number: athene-user 6.0.1 MPJ24.139-23.4 4 release-keys

Build Date: Sat May 14 20:53:21 CDT 2016

OTHER MISC VERSION INFO:

Subsidy Lock Config: slcf_rev_d_latam_selfperso_v1.0.nvm

Blur Version: Unknown

Version when read from CPV: athene-user 6.0.1 MPJ24.139-23.4 4 release-keys

--

that i founded here: https://firmware.center/firmware/Motorola/Moto G4 (Plus)/Stock/XT1621/
[Moto G4 Plus Guides, News, & Discussion] echo92:
Was your device formally updated to stock Nougat? If so, then flashing that old firmware would have not been wise. Though the flash may have gone okay, the bootloader would still be Nougat, so any OTA updates you took whilst on the old marshmallow stock ROM would have corrupted your Nougat bootloader. Hence the hardbricks.

As a result, you need to flash stock firmware now that is as new or newer than your bootloader to repair your device. In general, only flash firmware of the same or newer patch level as your bootloader. If you really want marshmallow, then once your device is working, you could flash marshmallow but forget about using OTA updates, else you'll keep hard bricking.
[Moto G4 Plus Guides, News, & Discussion] makinox:
I had the nougat january update i think not may because yesterday start to appear so my last update was before that.

Let me understand, i have to flash a nougat stock version but have to be the same i had or newer?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yes, else your flashes may keep failing.

I would recommend you try flashing the NPJS25.93-14-15 or the NPJS25.93-14-18 stock ROMs as I linked a few posts back. They are the Feb 2018 and April 2018 security patch firmwares respectively (there are no Jan 2018 or may 2018 patches). One of them should be new enough to repair your device.
[Moto G4 Plus Guides, News, & Discussion] makinox:
i will flash NPJS25.93-14-15, i wish this works.

I really appreciate your time and help.

and sorry for my bad english jejeje.
[Moto G4 Plus Guides, News, & Discussion] roboman2444:
I cant seem to get the phone back into fastboot mode... Blankflash appears to work, no visible errors, and even says "rebooting to fastboot" at the end. However, the phone just stays connected as a Qualcomm HS-USB QDLoader 9008.

fastboot devices lists nothing, and running blankflash again does the same thing again.

Manually pressing power and volume down still boots it into QDLoader mode.

output of blankflash - https://pastebin.com/dxP4CpbH
[Moto G4 Plus Guides, News, & Discussion] alonsotherion:
first, I tried to root my xt1640 and it has bricked.. I was able to install stock rom nougat, then I did an OTa update and it has bricked again, this time I couldn't even enter bootloader, then I followed your guide, then, I entered some kind of a bootloader with "start", then, when I try to flash gpt.bin, I get an error with the warning "Security version downgrade" and after that, a failed message... I tried lots of gpt's with no success! Please, help! Here is my getvar:

C:\adb>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: moto-msm8952-B1.06(*)

(bootloader) product: athene_16mp

(bootloader) board: athene_16mp

(bootloader) secure: yes

(bootloader) hwrev: P2A

(bootloader) radio: 6

(bootloader) storage-type: emmc

(bootloader) emmc: 32GB SAMSUNG QX13MB RV=08 PV=07 FV=0000000000000007

(bootloader) ram: 2GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=1F

(bootloader) cpu: MSM8952

(bootloader) serialno: 499adaa7

(bootloader) cid: 0x0032

(bootloader) channelid: 0x01

(bootloader) uid: 8855EA0000000000000000000000

(bootloader) securestate: oem_locked

(bootloader) iswarrantyvoid: yes

(bootloader) max-download-size: 536870912

(bootloader) reason: Failed to initialize partition table

(bootloader) imei: 000000000000000

(bootloader) meid:

(bootloader) date: 01-01-1970

(bootloader) sku: 000000000000000

(bootloader) battid:

(bootloader) iccid:

(bootloader) cust_md5:

(bootloader) max-sparse-size: 268435456

(bootloader) current-time:

(bootloader) ro.build.fingerprint:

(bootloader) ro.build.version.full:

(bootloader) ro.build.version.qcom:

(bootloader) version-baseband:

(bootloader) kernel.version:

(bootloader) sbl1.git: sbl1.git

(bootloader) rpm.git: rpm.git

(bootloader) tz.git: tz.git

(bootloader) hyp.git: hyp.git

(bootloader) keymaster.git: keymaster.git

(bootloader) cmnlib.git: cmnlib.git

(bootloader) aboot.git: git=MBM-NG-VB1.06-0-g0edfb0d

(bootloader) qe:

(bootloader) frp-state: no protection (err)

(bootloader) ro.carrier:

all: listed above

finished. total time: 0.118s

C:\adb> [MENTION=309187]edit[/MENTION]: Oh, and OEM is locked...
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, can you remember what stock ROM you had on your device before rooting, or at least what stock security patch you received?

With the blankflash, you must flash the bootloader from a firmware as new or newer than the latest bootloader you had previously. Downgrades of your stock firmware do not matter. You can try flashing the GPT and bootloaders from the Feb 2018 security patch from this link here https://drive.google.com/folderview?id=0B-GUyOfb8OgzcUl1NUtHYWNIR2M but you must subsequently flash the latest firmware onto your device, else you will keep hard bricking if you receive OTA updates.

If that doesn't work, try flashing the April 2018 firmware from here https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

Once you get a proper bootloader onto your device, your bootloader should become unlocked if it was previously.

By the way, rooting on stock Nougat requires a custom kernel before rooting, attempts to root without the kernel may cause bootloops as you've found.
[Moto G4 Plus Guides, News, & Discussion] alonsotherion:
Hey, sry, I forgot to tell u.... nearly 20 minutes after I posted my issue, I managed to solve by downloading an April 2018 rom, extracted only gpt and bootloader files, and it worked... plus, it tells me my firmware is "Original", not "modified" as it was b4, and I also relocked my bootloader... anyway, thanx 4 ur help, especially ur info bout rooting... I'm gonna look further into kernell stuff b4 attempting to root again. Cheerz from Brazil!
[Moto G4 Plus Guides, News, & Discussion] minilandl:
Will This work for Moto G3 Osprey are the devices similar enough.
[Moto G4 Plus Guides, News, & Discussion] alonsotherion:
THAT I can answer.. I used to have an Osprey and have rooted it like 3 times.. the process is the same as if it were a moto e xt1022, just download the right TWRP (Osprey) and SuperSu 2.79 (2.82 probably will cause bugs) and root it normally.. just don't forget to wipe cache after the process.
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you're referring to the blankflashes, unfortunately I do not think G4 blankflashes will work on the G3. They are different CPUs for starters (SD 617 Vs 410) and the blankflashes are generally device and CPU specific.

Your best bet may be the jtag you mentioned or perhaps a compatible SD410 blankflash, if one exists.
[Moto G4 Plus Guides, News, & Discussion] minilandl:
Yeah You're right I tried it and it didn't work even after replacing the firmware files with ones from a factory image for osprey. I've tried everything on xda i could find. I will never ever brick another device :crying: I guess its a Learning experience
[Moto G4 Plus Guides, News, & Discussion] gioyocho:
Lol my phone is dead. i survive it to stock android marshmallow unbrick but after nougat update installing it is dead now

i do not know reason. phone won't turn on. computer can not see it
[Moto G4 Plus Guides, News, & Discussion] djtstar:
Okay so I'm stuck. I was on custom ROM and now I'm planning to go to stock ROM. I had taken a twrp recovery backup. Now when I try to restore it l, nothing happens. It comes back recovery page. Let me know what can be done in this case
[Moto G4 Plus Guides, News, & Discussion] echo92:
Do you see any messages when you restore the backup in TWRP, or does it flash the backup okay? Is this a full backup of your stock ROM before you flashed a custom ROM and are you using the same TWRP version (that you made the backup with) to restore?

After restoring, are you able to boot via the bootloader (reboot to bootloader, and then select Start) or do you keep being sent to the TWRP even if you boot via the bootloader?

You may have to consider a firmware flash if your TWRP backup doesn't work.
[Moto G4 Plus Guides, News, & Discussion] djtstar:
I don't know about full backup. I just did a backup of stock rom before flashing custom rom.

No. I'm not able to boot via the bootloader. I was sent to twrp.

How to flash firmware and where can I get it?
[Moto G4 Plus Guides, News, & Discussion] gioyocho:
Thanks to this topic it helped. my phone was hard bricked

what situation do you have now? i suggest you do not try use custom rom if you are a newbie. you can use nova launcher for new tweaks
[Moto G4 Plus Guides, News, & Discussion] echo92:
If the backup was taken in TWRP, that should work. Are you using the same TWRP when you made the backup, or perhaps using the 32 bit TWRP?

If you're thinking about flashing the stock firmware, here's a guide and links to the firmware. https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Guides, News, & Discussion] djtstar:
No the twrp version is different now. It's a 64 bit version now.

---------- Post added at 07:49 AM ---------- Previous post was at 07:47 AM ----------

Can't roll back to stock os. Boot screen takes me to twrp recovery.

This is not the first time I'm playing with custom rom. But I'm facing this problem for the first time
[Moto G4 Plus Guides, News, & Discussion] echo92:
Right, given you're using the 64 bit TWRP, I'm not sure if you can successfully restore a 32 bit backup on a 64 bit recovery. You may wish to re-flash the 32 bit TWRP then use your backup, see if that works.
[Moto G4 Plus Guides, News, & Discussion] gioyocho:
http://www.mediafire.com/file/owo07yg79m3mxw6/Minimal ADB and Fastboot.rar

djtstar

if you have hard brick, you must download these rar file and go to instruction

first time your phone must seen in device manager as qualcomm driver in ports section
[Moto G4 Plus Guides, News, & Discussion] djtstar:
I tried. And the result is same
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, looks like a stock firmware flash may be worth trying if you want to get back to stock still.

If you do not wish to lock your bootloader, then you can use the following fastboot commands.

fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot

Be aware that these commands will wipe your userdata, so back up via TWRP if you can. Also, ensure that you flash the same firmware that you had before you flashed custom ROMs, or if you cannot remember you could try flashing the NPJS25.93-14-18 firmware in the thread I mentioned. This is the latest April 2018 firmware, I've only seen it deployed currently to Brazil and EU/UK devices, however, usually updates to those regions are usually deployed to India as well.
[Moto G4 Plus Guides, News, & Discussion] RandomZord:
Hi guys. I just did this guide and restored my device. But, instead of restoring the stock rom I restored the RR rom. Once I was in fastboot mode I started the recovery and did a clean flash of the rom. Will this be a problem? Until now, everything is working fine
[Moto G4 Plus Guides, News, & Discussion] mukesdas10:
After mobile rebooted to Fastboot Mode .....i stuck here

AP Fastboot Flash Mode(secure)

BL: B1.06(*) (sha-0edf0d, 2017-06-01 12:10:43)

Baseband:

Product/Varient: athene_16mp 000000000000000 32GB P2A

Serial Number: ee24fea2

CPU: MSM8952

eMMC: 32GB SAMSUNG RX1BMB RV=08 PV=07 FV=0000000000000007

DRAM: 3GB SAMSUNG LP3 DIE=6GB M5=01 M6=05 M7=00 M8=7B

Console [NULL]: null

Tools Mode Config: DISABLED

Battery OK [Charging]

oem_locked

Software Status: Modified

Transfer Mode: USB Connected

AFTER PRESSING THE POWER KEY IT SHOWS BELOW

Bootloader logos

Start up failed:

Your device didn't start up successfully. Use the Software Repair Assistant on computer to repair your device. connect your device to your computer to get the software repair assistant.

AP FAstboot Flash Mode (Secure)

Fastboot Reason: Failed to initialize partition table

USB connected

[/COLOR]ERROR: No bootimage found. Skip to fastboot

Boot up failed
[Moto G4 Plus Guides, News, & Discussion] echo92:
I'm confused - are you now on the stock ROM (if so, what version), or are you on the RR custom ROM?

---------- Post added at 03:59 PM ---------- Previous post was at 03:56 PM ----------

What happened before you got this error? Is your bootloader locked?

Have you tried to re-flash the stock ROM from here? https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

You may be able to save your data by using only the following fastboot commands, but you may still have to wipe your device if it's unstable:

fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot reboot

If this doesn't work, you may have a hardware fault, possibly requiring a service centre visit.
[Moto G4 Plus Guides, News, & Discussion] mukesdas10:
I tried to re flash this and it worked. But after intial set up finished, i got a pop up showing a new system update. After this upadte my screen went blank. Than used blankflash to get this fastboot mode
[Moto G4 Plus Guides, News, & Discussion] echo92:
That's odd - the April 2018 stock firmware should be the latest firmware. I've not seen any OTA updates for it, though there are a few users reporting that they have received the Feb 2018 OTA update in error.

Can you remember what update you received?

If you've just used this blankflash, you must re-flash the stock ROM, preferably the latest stock ROM for your region (I think for Indian devices, the Feb 2018 build is the latest released - https://androidfilehost.com/?fid=818070582850507483 for the Feb 2018 retail firmware, though the April 2018 firmware may still work).
[Moto G4 Plus Guides, News, & Discussion] mukesdas10:
I didn't remember exactly but the upadte about 40mb

---------- Post added at 04:46 PM ---------- Previous post was at 04:42 PM ----------

Is any problem with oem_locked
[Moto G4 Plus Guides, News, & Discussion] mukesdas10:
Is any problem with oem_locked
[Moto G4 Plus Guides, News, & Discussion] echo92:
Bootloaders appear to be OEM_locked after using the blankflash - once you flash the GPT and bootloader from a stock ROM, you should get back an unlocked bootloader if your bootloader was unlocked previously.

The only issue with the OEM_locked status is that you must flash stock firmware as new or newer than the latest stock firmware you had on your device. That means if you previously flashed the April 2018 stock firmware (NPJS25.93-14-18) then you need to flash the April 2018 stock firmware: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

In theory, if you previously had the April 2018 firmware you could just flash the NPJS25.93-14-18 GPT and bootloader to get your device booting ( https://drive.google.com/drive/folders/0B-GUyOfb8OgzcUl1NUtHYWNIR2M ) but you must flash the latest stock ROM else you may keep hard bricking. If you do get an OTA update on the April 2018 firmware, check it's not the NPJS25.93-14-15 (Feb 2018) OTA update - it should say in the description about security updates to 1st Feb 2018.
[Moto G4 Plus Guides, News, & Discussion] mukesdas10:
Dear Sir

I have no word how to thank you...... Your last reply worked for me ( Feb 2018 retail firmware). Today Moto service center advised me to change the board......

Thanks a lot Sir
[Moto G4 Plus Guides, News, & Discussion] RandomZord:
RR custom rom.
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you're on RR, then you'll need to clean flash the stock ROM if you wish to revert to stock firmware (or restore your stock ROM TWRP backup). Or is that what you did before you flashed RR? You do not have to re-lock your bootloader.

For Brazil, India and EU/UK retail G4/Plus devices, the stock firmware is here: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Guides, News, & Discussion] Ayan Uchiha Choudhury:
Now i got my device bricked today like 30 mins before i post this around. Lastest blankflash did not work directly. this is what i did

1. Followed the guide throughly

2. Last command is fastboot reboot, it went to twrp and then tried running some scripts but FAILED. so it was looping in and out of recovery

3. From here press vol - + power button

4. You can access bootloader

5. You can reflash stock ROM

Any side effects i am NOT aware off. Hope it helps
[Moto G4 Plus Guides, News, & Discussion] sanjaybaidya:
Please help
[Moto G4 Plus Guides, News, & Discussion] echo92:
What blankflash are you using, the same one from this thread?

You may have to try a few times for the blankflash to connect properly.
[Moto G4 Plus Guides, News, & Discussion] sanjaybaidya:
Thanks for replying. It finally worked when is disabled test mode in my pc
[Moto G4 Plus Guides, News, & Discussion] charuvilapauljohn:
Hai,

I got repaired my moto g4 plus ,but their isa problem ,when i turn off my mobile and turn back it on directly bootloader comes instead of power on,by this problem i cant even update my phone
[Moto G4 Plus Guides, News, & Discussion] echo92:
Are you still able to boot by selecting 'Start' in the bootloader menu, and does your device fully boot afterwards?

If your device does boot, it just enters the bootloader when powered on, then try this:

1)Reboot your device to the bootloader. Connect to your computer via USB (with the original cable or a high quality data cable).

2)Open the ADB terminal, verify that your device is communicating by typing 'fastboot devices' without quotes. Press Enter.

3)If you receive a serial number response, then type 'fastboot oem fb_mode_clear' without quotes. Press Enter.

4)Reboot your device, hopefully your device should now boot properly.
[Moto G4 Plus Guides, News, & Discussion] prashanthrasakatla:
its keep dectecting usb not recognized it is malfunctioned
[Moto G4 Plus Guides, News, & Discussion] echo92:
Are you using the USB cable provided by Motorola or another high quality USB data cable (not a charging cable)?

Also, do you have the Motorola USB drivers installed on your computer and have you disabled driver signature enforcement if on Windows 10 or 8.1?
[Moto G4 Plus Guides, News, & Discussion] SHAWN_FROST:
my moto g4 plus is showing complete blank screen but i can boot to bootloader mode.

and when i tried to flash the stock rom it is flashing the files but now it takes around 5-10 times more time than before what could be the problem can anyone please tell me
[Moto G4 Plus Guides, News, & Discussion] navaneethkrishnans4:
saved my life bro!
[Moto G4 Plus Guides, News, & Discussion] Makxie:
Hi,

I bricked mine today and came across this guide. Thank you very much, God bless you, you saved my phone ;)
[Moto G4 Plus Guides, News, & Discussion] s.atha:
Not getting flash gpt.bin

several times i tried to flash these gpt.bin's but nothing worked for me, still problem is same mensioned on above, tried every gpt file and the bootloader to flash did all process, as u said to do.. but still the problem is same, tried every gpt.bin here followed all process, but nothing worked for me , But blankflash repaired, My phone was bootloader unlocked when i gave the OTA update and i was on Android 6 ...
[Moto G4 Plus Guides, News, & Discussion] echo92:
What is not working when you flashed gpt.bin? Did you see a 'security downgrade error' when you tried to flash? Have you tried flashing the NPJS25.93-14-18 April 2018 GPT/bootloader from here: https://drive.google.com/drive/u/0/folders/0B-GUyOfb8OgzcUl1NUtHYWNIR2M

Did you have stock Nougat(Android 7) before you were on Marshmallow (Android 6)?
[Moto G4 Plus Guides, News, & Discussion] kykinvc:
My Moto g4 doesn't boot as qualcomm

Hi, I'm stuck, when I connect my moto g4, the computer doesn't recognize it as a Qualcomm device, it is recognized as Moto g(4) or if I push volume down plus power it is detected as fastboot athene_13mp, thank you for your support.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, that suggests you have fastboot working, do you have a bootloader screen (a screen with the green Android and text with AP fastboot mode secure)?

Is your device not booting properly, or what are you trying to accomplish?
[Moto G4 Plus Guides, News, & Discussion] kykinvc:
Hard bricked

I think my Moto g4 is hard bricked, the screen is black and there is only one light blinking when I connect it to the computer or to the charger. I wanted to flash it and install again the firmware. Could it be a problem with the screen?