yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] echo92:
1) Please don't quote the entire opening post... Edit the post to just your question please.

2)Provided your device is now working (and preferably flashed with the latest stock ROM firmware after unbricking), you should be okay to flash TWRP and custom ROMs. Neither TWRP or custom ROMs should touch your bootloader. The bootloader appears to be the primary source of hardbricks from users applying old OTA updates to newer bootloaders.

3)However, Nougat and Oreo based custom ROMs may require the latest baseband/modem firmware, which as of writing ends in .62.01R. If you do not have that, you may wish to investigate if there's a June 2017/September 2017 stock ROM to flash before you flash TWRP/custom ROMs. For Indian, Brazil, EU and UK devices, for example, this stock ROM will suffice https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 You may be able to flash that stock ROM on devices from other regions, but may make you ineligible for stock Motorola OTA updates.

Flashing this latest stock ROM should also bring your bootloader up to the latest patch level and hopefully properly repair it. As a result, if you do decide to flash an older Motorola stock ROM, do NOT accept/install OTA updates. If you downgrade, you must flash a stock ROM of the same patch level or newer than your bootloader patch level (which if you've downgraded is different to your system patch level). If you attempt to apply OTA updates - whilst downgraded with a mixed patch level device - that may likely result in a hard brick again. With Motorola issuing new updates and possible updates to the bootloader, that might mean the blankflashes we currently have may not work in future.

Therefore, one of the safest ways to not have to worry about hard bricking is to flash custom ROMs or TWRP flashables of stock ROMs.
[Moto G4 Plus Questions & Answers] Durai C10:
now i recovered my phone from hardbrick

now i installed stock rom nougat of September 1 security patch level ........after i unbricked my g4plus ......can I now install the ota updates from motorola if any ota update comes to my mobile.....or i should neglect them......??:confused::confused:

---------- Post added at 05:32 PM ---------- Previous post was at 05:29 PM ----------

so you are saying that i can install twrp recovery and custom roms to my phone.....it won't affect the bootloader?
[Moto G4 Plus Questions & Answers] echo92:
Provided you flashed the entire stock ROM, including the GPT and bootloader, so your bootloader is version B1:06, yes, you should be okay to use OTA updates. By flashing the whole stock ROM, your device should be on the same patch level and thus OTA updates should not be an issue to use. OTA updates are generally a no-no if your device is of different stock ROM patch levels, especially if you downgraded (so you've got a newer bootloader and older system, you cannot downgrade bootloaders).

Yes - TWRP only should affect the recovery partition of your device (and you may even choose to boot TWRP rather than flashing TWRP, so maintaining your stock recovery). Custom ROMs generally only replace your system partition and wipe your data/cache partitions; the custom ROMs I've seen do not generally touch any other part of your firmware, including your bootloader. By extension, custom ROM security patch levels shouldn't be an issue if your stock firmware is of a different patch level to the custom ROM patch level. Hence, they are generally safer than flashing stock ROMs - stock ROMs appear to have authorisation to flash to critical parts of your device, which as you've found if you flash old stock ROMs over newer stock ROMs, bricks can occur when you attempt to use OTA updates.
[Moto G4 Plus Questions & Answers] Durai C10:
very responsive reply .....

thank you bro .......for giving knowledge and a advice that we should follow after unbricking moto g4 plus.....i think this will help many ........pls come with more useful thread like this and help the guys who are in trouble with Thier mobiles......... cheers bro:good::good::)
[Moto G4 Plus Questions & Answers] Xmaster111:
XT1557 Motorola Moto G Turbo Edition 16GB Bricked solution?

Type MB167

Model : AP3697AE7X3

-----Status quo----

I'm reading the thread, I ‘m on page 17.

Black screen, no image; no led on.

The phone does not respond to commands power + vol-down; the phone is recognized by the PC as: Qualcomm HS-USB QDLoader 9008 (COM6)

I did not understand how to combine the files contained in the archives: blankflash1.zip, blankflash2.zip, blankflash3.zip, how to do it?; and if this combination of files is useful.

I installed the TWRP recovery but I can not access it.

I was re-installing the stock-rom, and up to here everything was ok, when I first upgraded via OTA, the phone was blocked.

BLANKFLASH 1 (no combine)

**** Log buffer [000001] 2017-12-23_10:01:54 ****

[ 0.000] Opening device: \\.\COM6
[ 0.000] Detecting device
[ 0.000] ...cpu.id = 2315 (0x90b)
[ 0.000] ...cpu.sn = 117189349 (0x6fc2ae5)
[ 0.000] Opening singleimage
[ 0.094] Loading package
[ 0.094] Failed identify board. Wrong package?
[ 0.094] ERROR: error loading package
[ 0.094] Check qboot_log.txt for more details
[ 0.094] Total time: 0.094s
[ 0.094]
[ 0.094] qboot version 3.40
[ 0.094]
[ 0.094] DEVICE {
[ 0.094] name = "\\.\COM6",
[ 0.094] flags = "0x64",
[ 0.094] addr = "0x28FE6C",
[ 0.094] sahara.current_mode = "3",
[ 0.094] api.buffer = "0x5F0020",
[ 0.094] cpu.serial = "117189349",
[ 0.094] cpu.id = "2315",
[ 0.094] cpu.sv_sbl = "0",
[ 0.094] api.bnr = "0x481C90",
[ 0.094] }
[ 0.094]
[ 0.094]
[ 0.094] Backup & Restore {
[ 0.094] num_entries = 0,
[ 0.094] restoring = "false",
[ 0.094] backup_error = "not started",
[ 0.094] restore_error = "not started",
[ 0.094] }
[ 0.094]

BLANKFLASH 2 (no combine)

C:\Users\Nos\Desktop\blank-flash power\blankflash2\blankflash2>.\qboot.ex
e blank-flash
opening device: \\.\COM6
OKAY [ 0.000s]
greeting device for command mode
OKAY [ 0.000s]
identifying device
...serial = 0x6FC2AE5
...chip-id = 0x90B
...chip-rev = 0x0
...sv-sbl = 0x0
OKAY [ 0.000s]
finding files
...programmer = programmer.mbn
...singleimage = singleimage.bin
OKAY [ 0.000s]
validating files
OKAY [ 0.016s]
switching to download mode
OKAY [ 0.000s]
greeting device for image downloading
OKAY [ 0.000s]
sending programmer
Unexpected packet: 4. Was expecting: 3
FAILED (blank-flash:sahara-transfer-image:send-image:unexpected packet)

C:\Users\Nos\Desktop\blank-flash power\blankflash2\blankflash2>pause
Premere un tasto per continuare . . .

XT1557 Motorola Moto G Turbo Edition 16GB BRICKED!!!
[Moto G4 Plus Questions & Answers] aveejnasv:
My phone got in to fake fastboot mode. But failing to accept original rom. When I am going with the command "fastboot oem lock begin" Its showing that "phone is not in unlocked state".
[Moto G4 Plus Questions & Answers] echo92:
What device do you have and which stock ROM are you attempting to flash?

I would suggest omitting the OEM lock begin and OEM lock commands from being flashed in fastboot, as your priority is to get your device operational.
[Moto G4 Plus Questions & Answers] aveejnasv:
I tried with the build 14-10 it worked. Previously I was try with older builds...
[Moto G4 Plus Questions & Answers] Xmaster111:
how did you get into fastboot?
[Moto G4 Plus Questions & Answers] Aashakmeeran:
My phone got stuck in black screen and not even getting into bootloader. If i connect usb, the led light blinks and no response. Can u hlp me
[Moto G4 Plus Questions & Answers] echo92:
How did you hard brick your device?

Have a look at this blank flash and tutorial for getting to fastboot and your device operational. https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761

P.S please, if you flash older stock Motorola firmware onto your device, especially flashing marshmallow onto a stock Nougat device, do not accept OTA updates....
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Flashes nouhat 7.0 but it shows no service in network and camera can't start and fingerprint option is missing. Even though i flashed my model xt 1643 but these issues are blocking me???
[Moto G4 Plus Questions & Answers] echo92:
Ouch, sounds like you may have flashed the incorrect firmware at some point for your device, which had led to these issues. Do you have no IMEI either?

You could try flashing this stock ROM https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 but sounds like you'd need help from this thread https://xdaforums.com/moto-g4-plus/help/moto-g4-pluss-model-changed-to-g4-lost-t3496912

By the way, could I request you try to post in one or two places please? I understand you're desperate to get this fixed, but keeping posts in one place will help us track your issue easier.
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Ooh sorry for that. But i flashed the rom which is based on my model. But in about settings it shows only Moto g 4 but not g4 plus. So that I'm not getting a network, fingerprint and camera.
[Moto G4 Plus Questions & Answers] echo92:
Which stock firmware did you flash, did you flash any Marshmallow (6.0.1) firmware builds before then?

In Settings>About Phone, what baseband is reported? I'm concerned that the loss of network could be related by attempting to bypass FRP - how did you bypass FRP?
[Moto G4 Plus Questions & Answers] Aashakmeeran:
I gave to shop for frp. Also tried flashing both 6.0.1 nd 7.0. even a custom rom like aosp and rr. Same as here. Same issues
[Moto G4 Plus Questions & Answers] echo92:
Right, which Marshmallow builds did you use? For XT1643 you'd want MPJ24.139-63 or MPJ24.139-48, for example.

Do you know if you had network after getting the device back from the shop, or was your device hard bricked by that point?

Looks like you may have to consider flashing a new hw partition from here: https://xdaforums.com/showpost.php?p=73977941&postcount=139
[Moto G4 Plus Questions & Answers] Aashakmeeran:
After got my device from shop the network and other issues happens. But even fingerprint option is missing from settings and camera shows a erre ( can't start camera).
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Here please refer the screenshots of my device and help me?
[Moto G4 Plus Questions & Answers] echo92:
Right, I don't know if it's worth going back to the shop and asking them to fix it, since it appears related to the FRP unlock - whatever they did.

Looks like you'll have to try flashing hw partitions as I linked above - stock ROM and custom ROM flashes won't do it for you as that partition isn't in their flash scripts.
[Moto G4 Plus Questions & Answers] Aashakmeeran:
If i give to them, the are telling that this is software problem. They don't know to reflash it seems. But anyway i couldn't able to understand hw flash. Can u explain me in detail that can help me to solve this problem.
[Moto G4 Plus Questions & Answers] echo92:
What do you not understand about the hw flash?
[Moto G4 Plus Questions & Answers] Aashakmeeran:
How to flash hw??

---------- Post added at 05:51 PM ---------- Previous post was at 05:50 PM ----------

I have downloaded the attachment which u linked me in a link but how to flash it?
[Moto G4 Plus Questions & Answers] echo92:
Did you read the instructions in the post I linked: https://xdaforums.com/showpost.php?p=73977941&postcount=139

ICrD512 explains the process. Essentially, you push the firmware files onto your device, to the correct partitions, overwriting the (damaged) files with the fresh copies you're pushing/flashing to your device. The ADB push command should allow you to copy/flash files to where you direct it.
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Ya but i dnt knw hw to flash! Can u send my any video link.. plz sorry to disturb u... Dnt get me wrong. Just an emergency. Please
[Moto G4 Plus Questions & Answers] Aashakmeeran:
The doubt is, after flashing these 3 hw img, should i boot normally or to flash the firmware again???? After this step can i install the custom rom by wiping the system,data, cache and others??? Do any issues present here???

---------- Post added at 02:26 AM ---------- Previous post was at 02:13 AM ----------

And onw more issue is, camera. Both front and back cameras are good. But it shows some issues like what i have sent in that screen shot. But it is software problem it seems. Any way to debut it?
[Moto G4 Plus Questions & Answers] echo92:
You'll probably want to boot normally to check if signal is back, then if it is back then flash the stock ROM to fully repair. Best to flash the sept 2017 stock ROM. After that, custom ROMs should be okay, but if there was anything not fixed by the hw images, it won't likely be fixed by custom ROMs. So first things first, get your signal back and flash the stock ROM. Then you can think about custom ROMs. How did your device get FRP locked anyway?

No idea about the cameras, does that error still show up if you use another camera app? Try it after a factory reset, or after copying the hw partition. If not fixed after that, then you may have to take it to the shop for a possible hardware repair.
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Ooh ok.. but if i take to shop, they are saying that this is not a hardware problem. And the email ID which I used for frp is not in my hand so i did frp. Now ill do these 3 adb commands and ill flash the stock rom. And ill send some screenshots.??

---------- Post added at 03:08 AM ---------- Previous post was at 03:06 AM ----------

But now there is no operating system because i have wiped all the datas and system via TWRP. For the first step what should I do? Either flashing stock rom and then to flash 3 gw images or first hw images and then stock rim???
[Moto G4 Plus Questions & Answers] echo92:
I'm confused, why did you wipe your system and data before fixing your device? I mentioned previously that to want to flash TWRP, then copy the hw images, then boot to check your device is working again. After that you could reflash the stock ROM then use custom ROMs. What are you trying to do? A factory reset is only there to wipe your data (possibly your internal storage), not your system...
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Actually yesterday my device was bricked hardly. So i flashed.

---------- Post added at 03:39 AM ---------- Previous post was at 03:38 AM ----------

But even now if i plus a usb, he led blinks and no response. And im trying to solve it via blank-flash. But it is showing some errors.
[Moto G4 Plus Questions & Answers] echo92:
Now I'm super confused, as I was thinking we were working with a functioning device. Now you mention that it's actually been bricked and still bricked? Is this the same device or a different device we're now talking about? I'm confused because you mentioned earlier that your device had been bricked https://xdaforums.com/showpost.php?p=75000648&postcount=482 but then began talking about how your device had network issues, assuming that you had unbricked it... https://xdaforums.com/showpost.php?p=75001658&postcount=484

What errors are you facing now? Are you using the latest blankflash we have as detailed here: https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761

Wow, your device is a mess...
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Stucked on blank flash

[ 0.000] Opening device: \\.\COM12

[ 0.001] Detecting device

[ 0.003] ...cpu.id = 2418 (0x972)

[ 0.003] ...cpu.sn = 36480215 (0x22ca4d7)

[ 0.003] Opening singleimage

[ 0.003] Loading package

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

[ 0.010] Loading programmer

[ 0.011] ...filename = programmer.mbn

[ 0.011] Sending programmer

[ 0.230] Handling things over to programmer

[ 0.230] Identifying CPU version

[ 0.234] Waiting for firehose to get ready

[ 60.251] Waiting for firehose to get ready

[120.255] ...MSM8952 unknown

[120.255] Determining target secure state

[120.258] Waiting for firehose to get ready

[180.262] ...secure = no

[180.279] Flashing GPT...

[180.280] Flashing partition:0 with gpt_main0.bin

[180.280] Initializing storage

[180.285] Waiting for firehose to get ready

[240.333] Configuring device...

[240.336] Waiting for firehose to get ready

[300.343] Waiting for firehose to get ready

[362.358] Waiting for firehose to get ready

[422.373] Waiting for firehose to get ready

[482.406] ERROR: do_package()->do_recipe()->do_flash()->gpt_flash()->get_storage

()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure()->buffer_read(

)->device_read()->IO error

[482.406] Check qboot_log.txt for more details

[482.406] Total time: 482.407s

FAILED: qb_flash_singleimage()->do_package()->do_recipe()->do_flash()->gpt_flash

()->get_storage()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure(

)->buffer_read()->device_read()->IO error

E:\moto g4\blankflash1\blankflash>pause

This error occurs
[Moto G4 Plus Questions & Answers] echo92:
None of the blankflashes in this thread work on newer bootloaders. You need to use the latest blankflash we have in this thread: https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761
[Moto G4 Plus Questions & Answers] Aashakmeeran:
But there is no link to download!!!
[Moto G4 Plus Questions & Answers] strongst:
The download link is in the first post, please read again.
[Moto G4 Plus Questions & Answers] Aashakmeeran:
All done bro?thanks a lotttttttt got my Network and fingerprint back.... But even there is camera bug... It shows that camera busy. If I even install a third party camera app also not working...
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Can u please help me for this issue? It seems the camera hw image also is missing and npt linking hardware... Like network and stuff's

Plz help me at last time ???

Also flashlight also not appear at notification bar. If i also install the third party led application also it says flashlight not detected. Plz helpp mee?
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Bro plz help me for a camera issue.?
[Moto G4 Plus Questions & Answers] Xmaster111:
thanks you for answer, where can I download QualcommLoader Driver? I see most different pack about QualcommLoader Driver, where I can download the right ?

I had bricked my phone after flashing "original rom" after Nougat flash; the original rom was flashed ok but via OTA I receive a upgrade , than my phone stuck in an hard brick.

**** Log buffer [000001] 2017-12-30_18:50:22 ****

[ -0.000] Opening device: \\.\COM7
[ -0.000] Detecting device
[ -0.000] ...cpu.id = 2315 (0x90b)
[ -0.000] ...cpu.sn = 117189349 (0x6fc2ae5)
[ -0.000] Opening singleimage
[ 0.047] Loading package
[ 0.047] Failed identify board. Wrong package?
[ 0.047] ERROR: error loading package
[ 0.047] Check qboot_log.txt for more details
[ 0.047] Total time: 0.047s
[ 0.047]
[ 0.047] qboot version 3.40
[ 0.047]
[ 0.047] DEVICE {
[ 0.047] name = "\\.\COM7",
[ 0.047] flags = "0x64",
[ 0.047] addr = "0x28FE6C",
[ 0.047] sahara.current_mode = "3",
[ 0.047] api.buffer = "0x2500020",
[ 0.047] cpu.serial = "117189349",
[ 0.047] cpu.id = "2315",
[ 0.047] cpu.sv_sbl = "0",
[ 0.047] api.bnr = "0x481C90",
[ 0.047] }
[ 0.047]
[ 0.047]
[ 0.047] Backup & Restore {
[ 0.047] num_entries = 0,
[ 0.047] restoring = "false",
[ 0.047] backup_error = "not started",
[ 0.047] restore_error = "not started",
[ 0.047] }
[ 0.047]

S.ry for my English
[Moto G4 Plus Questions & Answers] echo92:
If you need a link for the Qualcomm Loader Driver, it's in the opening post of this thread: http://xdaforums.com/attachment.php?attachmentid=3261089&stc=1&d=1428980071

However, I note that from the logs that the blankflash is not flashing because of a wrong chipset. Apologies, that link I gave you is a blankflash specific to Moto G4 devices (or Motorola devices running a Snapdragon 617, MSM8952 chipset). You're needing a Moto G XT1557 specific blankflash, or a blankflash for Snapdragon 615 Motorola devices - looks like the chips are sufficiently different for a blankflash to fail the pre-flash detection. I'm not sure if you can remove the detection without compromising the cryptographic signatures.

Unfortunately, downgrading to an older stock ROM from a later stock ROM, and then taking OTA updates on that older stock ROM is a very common route of hard bricking a device (presumably because the OTA assumes your device is the same patch level and patches accordingly, which if you've downgraded isn't true. Your bootloader is still the newest version and appears to get corrupted by an older OTA flashing older bootloader files. There appears to be no bootloader checks unlike fastboot). Motorola unfortunately doesn't officially support downgrading and also doesn't release blankflashes. Most of, if not all, the blankflashes we have are leaks from engineers/contacts within Motorola.

Unless someone releases a blankflash specific to the Moto G XT1557, the only other route is a very expensive motherboard replacement :(
[Moto G4 Plus Questions & Answers] Aashakmeeran:
Also please include camera hw partition.. the camera and flashlight not working... Also there is no flashlight option in notification settings. Camera also says busy.
[Moto G4 Plus Questions & Answers] echo92:
Not sure if there is a partition for the camera hardware.

If the 3rd party apps don't work as you've mentioned, and a factory reset (wiping data) didn't work and you've not modified your build.prop with tethering edits, you may have to have your camera looked at in the shop.

How are you sure the camera is still good if you can't get it working?
[Moto G4 Plus Questions & Answers] Aashakmeeran:
In shop they told that camera is good.. and even front camera is also good. After frp, the network and fingerprint also didn't worked. Like wise the camera also... Thats why i said. This is software issue... If camera is not properly fixed or bulid is not prop, the camera error will say can't connect camera. But it is showing that camera is busy. That's why I'm saying that it is software issue.
[Moto G4 Plus Questions & Answers] echo92:
That's fair enough. Without knowing what the shop did to remove FRP it's difficult to suggest solutions.

Is your device firmware updated to NPJS25.93-14-10 (Sept 2017 - the latest stock ROM we have) or NPJS25.93-14-13 , since you bricked your device? If you need the firmware to flash (but you should have flashed it as part of your unbrick): https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

Is your device reset to factory status, so we can rule out any apps that might be blocking the camera and flashlight?

Can you post the getvar all info?

1)Boot your device to the bootloader, then attach to your computer.

2)In the adb terminal, type 'fastboot getvar all' without quotes.

3)Post the output here, you may wish to remove your IMEI. I would like to see the state of your device as it is from the getvar info.