[Solved] Unbrick (Hard Bricked/Dead) Motorola G 4 plus or any Qualcomm mobile Device

Search This thread

sd_shadow

Recognized Contributor
  • Sep 21, 2011
    17,570
    1
    8,198
    South Dakota
    goo.gl
    Moto X4
    Moto G7 Power
    I have been trying to revive Moto G4 plus since many days..

    i tried blankflash01, latest oreo blankflash also.

    it never worked for me ,same thing is happening again and again.

    D:\Phone Tools\Moto G4 plus\blankflash-athene-OPJ28.111-22\blankflash>.\qboot.exe blank-flash
    Motorola qboot utility version 3.40
    [ -0.000] Opening device: \.\COM5
    [ 0.282] Detecting device
    [ 2.063] ReadFile() failed, GetLastError()=0
    [ 2.568] ...cpu.id = 2418 (0x972)
    [ 2.568] ...cpu.sn = 23938967 (0x16d4797)
    [ 2.568] Opening singleimage
    [ 2.598] Loading package
    [ 2.608] ...filename = singleimage.pkg.xml
    [ 2.608] Loading programmer
    [ 2.608] ...filename = programmer.mbn
    [ 2.608] Sending programmer
    [ 2.822] Handling things over to programmer
    [ 2.822] Identifying CPU version
    [ 2.822] Waiting for firehose to get ready
    [ 65.019] Waiting for firehose to get ready
    [125.586] ...MSM8952 unknown
    [125.586] Determining target secure state
    [125.586] Waiting for firehose to get ready
    [189.169] ...secure = no
    [189.177] Flashing GPT...
    [189.177] Flashing partition:0 with gpt_main0.bin
    [189.177] Initializing storage
    [189.178] Waiting for firehose to get ready
    [251.247] Configuring device...
    [251.249] Waiting for firehose to get ready
    [313.819] Waiting for firehose to get ready
    [376.374] Waiting for firehose to get ready
    [436.436] Waiting for firehose to get ready
    [496.475] ERROR: do_package()->do_recipe()->do_flash()->gpt_flash()->get_storage()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure()->get_fh()->no response
    [496.475] Check qboot_log.txt for more details
    [496.475] Total time: 496.476s
    FAILED: qb_flash_singleimage()->do_package()->do_recipe()->do_flash()->gpt_flash()->get_storage()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure()->get_fh()->no response

    D:\Phone Tools\Moto G4 plus\blankflash-athene-OPJ28.111-22\blankflash>pause
    Press any key to continue . . .


    Things i did :
    1) used good wires.
    2) tried all blankflashes.
    3) Tried different ports. :(

    can anyone tell me what the problem is , and how do i revive phone back.:mad:
    Try running the blankflash flash in several windows at same time.

    Sent from my ali using XDA Labs
     

    Lighto97

    Member
    Sep 4, 2019
    30
    1
    curious that blankflash 3 give a error for moto g5 (xt1672)

    - Unexpected packet: 4. Was expecting: 3

    and any other file scattered around did not worked that far. ive tries using another singleimages,replacing files around,tried z play 2 singleimage, one from g4 plus thats not this one but sadly no result it says that could not open the image file.

    i dont know if an g4 plus model is compatible with g5 cedric to boot up bootloader like g4plus could with z 2 play blank flash (someone mentioned that both have similar chipsets, cedric is Snapdragon 430)

    note that g6 have the same chipset, but im not sure if it will work and if it work i can use the sd card method to unbrick (did not blank flashed)

    whoa there is a lot of motorola devices from different gens that has the same chipset one of these has to work for blank flash
     
    Last edited:

    zitronenmelissa

    Senior Member
    Feb 23, 2011
    307
    130
    Germany
    curious that blankflash 3 give a error for moto g5 (xt1672)

    - Unexpected packet: 4. Was expecting: 3

    and any other file scattered around did not worked that far. ive tries using another singleimages,replacing files around,tried z play 2 singleimage, one from g4 plus thats not this one but sadly no result it says that could not open the image file.

    i dont know if an g4 plus model is compatible with g5 cedric to boot up bootloader like g4plus could with z 2 play blank flash (someone mentioned that both have similar chipsets, cedric is Snapdragon 430)

    note that g6 have the same chipset, but im not sure if it will work and if it work i can use the sd card method to unbrick (did not blank flashed)

    whoa there is a lot of motorola devices from different gens that has the same chipset one of these has to work for blank flash
    have you tried blankflash file for cedric (xt1672) ?
     

    Jorgenva

    New member
    Apr 14, 2021
    2
    0
    Hello. How are they?

    I had to use the blanck flash to my moto g4 plus and finally the PC
    recognizes it as a fastboot device,
    however I have not managed to install a ROM.
    Here is what it throws up when I'm trying to flash:

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash partition gpt.bin
    (bootloader) has-slot:partition: not found
    target reported max download size of 536870912 bytes
    sending 'partition' (32 KB)...
    OKAY [ 0.016s]
    writing 'partition'...
    (bootloader) Security version downgrade

    (bootloader) Image primary_gpt failed validation

    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 0.063s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash bootloader bootloader.img
    (bootloader) has-slot:bootloader: not found
    target reported max download size of 536870912 bytes
    sending 'bootloader' (3651 KB)...
    OKAY [ 0.125s]
    writing 'bootloader'...
    (bootloader) validating: bootloader.default.xml ...
    (bootloader) will pass: flash:aboot
    (bootloader) will pass: flash:rpm
    (bootloader) will pass: flash:tz
    (bootloader) will pass: flash:hyp
    (bootloader) will pass: flash:cmnlib
    (bootloader) will pass: flash:keymaster
    (bootloader) will pass: flash:sbl1
    (bootloader) committing: bootloader.default.xml ...
    (bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'
    (bootloader) - flashing 'rpm.mbn' to 'rpm'
    (bootloader) - flashing 'tz.mbn' to 'tz'
    (bootloader) - flashing 'hyp.mbn' to 'hyp'
    (bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
    (bootloader) - flashing 'keymaster.mbn' to 'keymaster'
    (bootloader) - flashing 'sbl1.mbn' to 'sbl1'
    OKAY [ 0.438s]
    finished. total time: 0.562s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash logo logo.bin
    (bootloader) has-slot:logo: not found
    target reported max download size of 536870912 bytes
    sending 'logo' (2186 KB)...
    OKAY [ 0.078s]
    writing 'logo'...
    OKAY [ 0.063s]
    finished. total time: 0.141s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash boot boot.img
    (bootloader) has-slot:boot: not found
    target reported max download size of 536870912 bytes
    sending 'boot' (16384 KB)...
    OKAY [ 0.565s]
    writing 'boot'...
    (bootloader) Image signed with key bad key

    OKAY [ 0.375s]
    finished. total time: 0.956s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash recovery recovery.img
    (bootloader) has-slot:recovery: not found
    target reported max download size of 536870912 bytes
    sending 'recovery' (16484 KB)...
    OKAY [ 0.562s]
    writing 'recovery'...
    (bootloader) Image signed with key bad key

    OKAY [ 0.437s]
    finished. total time: 1.000s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash dsp adspso.bin
    (bootloader) has-slot:dsp: not found
    target reported max download size of 536870912 bytes
    sending 'dsp' (16384 KB)...
    OKAY [ 0.546s]
    writing 'dsp'...
    OKAY [ 0.250s]
    finished. total time: 0.796s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash oem oem.img
    (bootloader) has-slot:eek:em: not found
    target reported max download size of 536870912 bytes
    sending 'oem' (96490 KB)...
    OKAY [ 3.172s]
    writing 'oem'...
    OKAY [ 1.391s]
    finished. total time: 4.562s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.0
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (261013 KB)...
    OKAY [ 8.550s]
    writing 'system'...
    OKAY [ 3.884s]
    finished. total time: 12.465s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.1
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (250842 KB)...
    OKAY [ 8.219s]
    writing 'system'...
    OKAY [ 3.775s]
    finished. total time: 11.994s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.2
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (254493 KB)...
    OKAY [ 8.314s]
    writing 'system'...
    OKAY [ 3.469s]
    finished. total time: 11.798s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.3
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (247302 KB)...
    OKAY [ 8.062s]
    writing 'system'...
    OKAY [ 4.297s]
    finished. total time: 12.375s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.4
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (260402 KB)...
    OKAY [ 8.580s]
    writing 'system'...
    OKAY [ 3.618s]
    finished. total time: 12.229s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.5
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (262057 KB)...
    OKAY [ 8.578s]
    writing 'system'...
    OKAY [ 3.672s]
    finished. total time: 12.266s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.6
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (261941 KB)...
    OKAY [ 8.561s]
    writing 'system'...
    OKAY [ 4.484s]
    finished. total time: 13.061s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash system system.img_sparsechunk.7
    (bootloader) has-slot:system: not found
    target reported max download size of 536870912 bytes
    sending 'system' (82497 KB)...
    OKAY [ 2.703s]
    writing 'system'...
    OKAY [ 1.172s]
    finished. total time: 3.875s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash modem NON-HLOS.bin
    (bootloader) has-slot:modem: not found
    target reported max download size of 536870912 bytes
    sending 'modem' (76958 KB)...
    OKAY [ 2.516s]
    writing 'modem'...
    OKAY [ 1.109s]
    finished. total time: 3.641s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot erase modemst1
    (bootloader) has-slot:modemst1: not found
    erasing 'modemst1'...
    OKAY [ 0.031s]
    finished. total time: 0.047s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot erase modemst2
    (bootloader) has-slot:modemst2: not found
    erasing 'modemst2'...
    OKAY [ 0.031s]
    finished. total time: 0.031s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot flash fsg fsg.mbn
    (bootloader) has-slot:fsg: not found
    target reported max download size of 536870912 bytes
    sending 'fsg' (2032 KB)...
    OKAY [ 0.078s]
    writing 'fsg'...
    OKAY [ 0.063s]
    finished. total time: 0.156s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot erase cache
    (bootloader) has-slot:cache: not found
    erasing 'cache'...
    OKAY [ 0.016s]
    finished. total time: 0.031s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot erase userdata
    (bootloader) has-slot:userdata: not found
    erasing 'userdata'...
    OKAY [ 0.078s]
    finished. total time: 0.078s

    C:\Users\igles\Downloads\Moto G4 Plus\adb 2018>fastboot reboot
    rebooting...

    finished. total time: 0.000s
     

    joelcapture

    Member
    Apr 19, 2021
    8
    0
    Hi everybody! I'm trying to unlock my moto g4 plus XT1641 but I only get errors.
    This is the info of the device. I tried with several firmware.
    C:\mfastboot>fastboot getvar all
    (bootloader) version: 0.5
    (bootloader) version-bootloader: moto-msm8952-B1.07(*)
    (bootloader) product: athene_16mp
    (bootloader) board: athene_16mp
    (bootloader) secure: yes
    (bootloader) hwrev: P2A
    (bootloader) radio: 5
    (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: 37c16072
    (bootloader) cid: 0xDEAD
    (bootloader) channelid: 0x00
    (bootloader) uid: 36999D0200000000000000000000
    (bootloader) securestate: oem_locked
    (bootloader) iswarrantyvoid: n/a
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Last time flashing failed
    (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.07-0-gf9b89ba
    (bootloader) qe:
    (bootloader) frp-state: no protection (err)
    (bootloader) ro.carrier:
    all: listed above
    finished. total time: 0.253s

    Please tell me if is there something I can do. Thanks!
     

    sd_shadow

    Recognized Contributor
  • Sep 21, 2011
    17,570
    1
    8,198
    South Dakota
    goo.gl
    Moto X4
    Moto G7 Power
    Hi everybody! I'm trying to unlock my moto g4 plus XT1641 but I only get errors.
    This is the info of the device. I tried with several firmware.
    C:\mfastboot>fastboot getvar all
    (bootloader) version: 0.5
    (bootloader) version-bootloader: moto-msm8952-B1.07(*)
    (bootloader) product: athene_16mp
    (bootloader) board: athene_16mp
    (bootloader) secure: yes
    (bootloader) hwrev: P2A
    (bootloader) radio: 5
    (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: 37c16072
    (bootloader) cid: 0xDEAD
    (bootloader) channelid: 0x00
    (bootloader) uid: 36999D0200000000000000000000
    (bootloader) securestate: oem_locked
    (bootloader) iswarrantyvoid: n/a
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Last time flashing failed
    (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.07-0-gf9b89ba
    (bootloader) qe:
    (bootloader) frp-state: no protection (err)
    (bootloader) ro.carrier:
    all: listed above
    finished. total time: 0.253s

    Please tell me if is there something I can do. Thanks!
    The bootloader is locked, you cannot try other firmware only the one for the same software channel.
    Getvar all says nothing anymore.
    Do you know which channel it was on before you started flashing?
     

    joelcapture

    Member
    Apr 19, 2021
    8
    0
    It should be in the getvar all as ro.carrier:
    Did you buy through a carrier?
    Was the bootloader unlocked before?
    Did you relock?
    No, I didn't buy it through a carrier. Everything was normal in the phone.
    It blocked itself, I didn't install or flash anything.
    Maybe it's a hardware problem. I don't know.
     

    sd_shadow

    Recognized Contributor
  • Sep 21, 2011
    17,570
    1
    8,198
    South Dakota
    goo.gl
    Moto X4
    Moto G7 Power
    No, I didn't buy it through a carrier. Everything was normal in the phone.
    It blocked itself, I didn't install or flash anything.
    Maybe it's a hardware problem. I don't know.
    OK, I would try booting into Emergency download mode (edl mode)
    Code:
    fastboot OEM blankflash
    If that works phone screen will go completely black and stay that way, and device manager will see it as a Qualcomm device under ports

    Then download a blankflash there should be a working link in the first post of this thread.
     

    joelcapture

    Member
    Apr 19, 2021
    8
    0
    OK, I would try booting into Emergency download mode (edl mode)
    Code:
    fastboot OEM blankflash
    If that works phone screen will go completely black and stay that way, and device manager will see it as a Qualcomm device under ports

    Then download a blankflash there should be a working link in the first post of this thread.
    I get this error
    C:\mfastboot>fastboot oem blankflash
    ...
    (bootloader) command restricted
    FAILED (remote failure)
    finished. total time: -0.000s
     

    sd_shadow

    Recognized Contributor
  • Sep 21, 2011
    17,570
    1
    8,198
    South Dakota
    goo.gl
    Moto X4
    Moto G7 Power
    It's from Paraguay
    Try this firmware and just flash this

    Code:
    fastboot flash partition gpt.bin
    Then see if Getvar all info has changed.

    https://mirrors-obs-2.lolinet.com/firmware/motorola/2016/athene/official/IUSMXLA/
    XT1641_ATHENE_ATTMX_7.0_NPJS25.93-14.7-5_cid50_subsidy-IUSMXLA_regulatory-DEFAULT_CFC.xml.zip
    or
    https://mirrors-obs-2.lolinet.com/firmware/motorola/2016/athene/official/RETAIL/
    ATHENE_RETAIL_8.1.0_OPJ28.111-22-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
     

    joelcapture

    Member
    Apr 19, 2021
    8
    0
    Try this firmware and just flash this

    Code:
    fastboot flash partition gpt.bin
    Then see if Getvar all info has changed.

    https://mirrors-obs-2.lolinet.com/firmware/motorola/2016/athene/official/IUSMXLA/
    XT1641_ATHENE_ATTMX_7.0_NPJS25.93-14.7-5_cid50_subsidy-IUSMXLA_regulatory-DEFAULT_CFC.xml.zip
    or
    https://mirrors-obs-2.lolinet.com/firmware/motorola/2016/athene/official/RETAIL/
    ATHENE_RETAIL_8.1.0_OPJ28.111-22-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
    With the 8.1.0 version I'm getting this error:
    C:\Program Files\Android\Android Studio\platform-tools>fastboot flash partition gpt.bin
    (bootloader) has-slot:partition: not found
    (bootloader) is-logical:partition: not found
    Sending 'partition' (32 KB) OKAY [ 0.193s]
    Writing 'partition' (bootloader) Flashing primary GPT image...
    (bootloader) Failed to write primary GPT.

    (bootloader) Failed to program partition table
    FAILED (remote: '')
    fastboot: error: Command failed

    With the 7.0 this:
    C:\Program Files\Android\Android Studio\platform-tools>fastboot flash partition gpt.bin
    (bootloader) has-slot:partition: not found
    (bootloader) is-logical:partition: not found
    Sending 'partition' (32 KB) OKAY [ 0.194s]
    Writing 'partition' (bootloader) Security version downgrade

    (bootloader) Image primary_gpt failed validation

    (bootloader) Preflash validation failed
    FAILED (remote: '')
    fastboot: error: Command failed
     

    sd_shadow

    Recognized Contributor
  • Sep 21, 2011
    17,570
    1
    8,198
    South Dakota
    goo.gl
    Moto X4
    Moto G7 Power
    With the 8.1.0 version I'm getting this error:
    C:\Program Files\Android\Android Studio\platform-tools>fastboot flash partition gpt.bin
    (bootloader) has-slot:partition: not found
    (bootloader) is-logical:partition: not found
    Sending 'partition' (32 KB) OKAY [ 0.193s]
    Writing 'partition' (bootloader) Flashing primary GPT image...
    (bootloader) Failed to write primary GPT.

    (bootloader) Failed to program partition table
    FAILED (remote: '')
    fastboot: error: Command failed

    With the 7.0 this:
    C:\Program Files\Android\Android Studio\platform-tools>fastboot flash partition gpt.bin
    (bootloader) has-slot:partition: not found
    (bootloader) is-logical:partition: not found
    Sending 'partition' (32 KB) OKAY [ 0.194s]
    Writing 'partition' (bootloader) Security version downgrade

    (bootloader) Image primary_gpt failed validation

    (bootloader) Preflash validation failed
    FAILED (remote: '')
    fastboot: error: Command failed
    You could try booting twrp
    Code:
    fastboot boot twrp-3.3.1-0-athene.img

    Then try
    Code:
    adb reboot edl
     

    joelcapture

    Member
    Apr 19, 2021
    8
    0
    You could try booting twrp
    Code:
    fastboot boot twrp-3.3.1-0-athene.img

    Then try
    Code:
    adb reboot edl
    This is what I get:

    C:\Program Files\Android\Android Studio\platform-tools>fastboot boot twrp-3.3.1-0-athene.img
    Sending 'boot.img' (15868 KB) OKAY [ 0.516s]
    Booting FAILED (remote: '')
    fastboot: error: Command failed

    C:\Program Files\Android\Android Studio\platform-tools>adb root
    adb: unable to connect for root: no devices/emulators found
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 37
      I have successfully recovered my dead/hard brick moto g4 plus mobile using below process. :)

      To give you background, I have hard bricked my new moto g4 plus mobile. To do that, I have unlocked boot loader which void my warranty, then I have rooted yet and got root access. Till that it was working. After that I have installed custom rom cyanogenmod 14.1 . It was still working for some days. Now As I came from blackberry z10 to moto, I was missing blackberry hub features, so I downloaded BlackBerry android OS(Blackberry Priv) and tried to flash it. that's it, it stopped working. I know it was stupid things to do :( . I have given mobile to service center, other few famous mobile repairing shops, but no one was able to do anything.

      My mobile was dead for almost 1 month, I tried lots of option, including MI flash tool, QPST(QFIL) etc. but didn't get it thought it. For current options also I was working for couple days, after that I got the solution.

      Let start work now.....
      ------------------------------------------------------

      There are two parts for this tutorial,
      Part1 - make your device bootable/softbrick/start in recovery mode. This is difficult part and most of us stuck here only. We need to make device from hard brick to soft brick. Should work for all Qualcomm devices(except hardware failure).
      Part2 - Flash ROM to your device. This is easy part and there are lots tutorial/information available to flashing ROM into device. It will be dependent on individual devices.

      Part1:- -
      Make your PC into Test Mode.
      Then run “CMD” or “Windows Terminal” as administrator and type:

      bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
      bcdedit -set TESTSIGNING ON

      Download QualcommDrv.zip from here , extract to an empty folder, then open the folder according to your Windows type (x64 or x86) and double click dpinst64.exe (if you have 64-bit Windows) to install the Qualcomm driver
      now please connect your Qualcomm Mobile to PC or laptop Your phone should now being detected as “Qualcomm HS-USB QDLoader 9008” and the driver version 2.0.8.7 (please check it through Windows’ “Device Manager”). If its not detected, then you can keep mobile connecting to computer and press power button and volume down button.( This is for motorola g4 plus and can be different for your mobile. )

      Now you have your mobile connected to computer, now follow the below steps.

      Please download zip " blankflash1.zip" from location here extract it your computer and goto extracted folder and click blank-flash.bat
      It will start in command prompt and detect device on your computer port(eg. COM5, COM8 etc).

      If process completed successful then your mobile will restart into bootloader screen and your hard brick problem has been resolved. after that you can reboot into recovery by pressing power and volume down button again if required. Once you are in recovery mode then you can flash correct stock ROM into your mobile. Refer below Part2 for this.
      If above didn't work and you are getting error like below..

      Code:
      C:\Users\Vijay\Desktop\blankflashathene\blankflash>.\qboot.exe blank-flash
      Motorola qboot utility version 3.40
      [ -0.000] Opening device: \\.\COM5
      [ -0.000] Detecting device
      [  4.072] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
      [  4.072] Check qboot_log.txt for more details
      [  4.072] Total time: 4.072s
      FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()
      ->IO error

      Or any other error, then its little tricky to solve this.
      Follow the below steps.
      1. Keep your mobile connected using USB, obviously.
      2. using one hand keep power button and volume down button pressed at same time and using other hand click blank-flash.bat file.
      3. It might be possible that blank-flash.bat scritps get finished earlier, in that case, keep clicking .bat file continuously, you don't need to close previous cmd window. For me it took 5-6 run to get script detect/communicate with device. Here idea is that your mobile should get detected when you press power button+volume button while blank-flash.bat file is still executing.
      4. keep trying step 3 unless you dont see below logs.

      Code:
      C:\Users\Vijay\Desktop\blankflashathene\blankflash>.\qboot.exe blank-flash
      Motorola qboot utility version 3.40
      [ -0.000] Opening device: \\.\COM5
      [ -0.000] Detecting device
      [  2.059] ReadFile() failed, GetLastError()=0
      [  2.563] ...cpu.id  = 2418 (0x972)
      [  2.563] ...cpu.sn  = 28194769 (0x1ae37d1)
      [  2.563] Opening singleimage
      [  2.563] Loading package
      [  2.563] ...filename = singleimage.pkg.xml
      [  2.563] Loading programmer
      [  2.563] ...filename = programmer.mbn
      [  2.563] Sending programmer
      [  2.793] Handling things over to programmer
      [  2.793] Identifying CPU version
      [  2.793] Waiting for firehose to get ready
      [  5.800] ...MSM8952 1.1
      [  5.800] Determining target secure state
      [  5.800] ...secure = yes
      [  5.816] Flashing GPT...
      [  5.816] Flashing partition:0 with gpt_main0.bin
      [  5.816] Initializing storage
      [  5.816] Configuring device...
      [  5.832] ...blksz = 512
      [  6.331] Re-initializing storage...
      [  6.331] Initializing storage
      [  6.362] Flashing bootloader...
      [  6.362] Flashing aboot with emmc_appsboot.mbn
      [  6.721] Flashing rpm with rpm.mbn
      [  6.783] Flashing tz with tz.mbn
      [  7.033] Flashing hyp with hyp.mbn
      [  7.080] Flashing cmnlib with cmnlib.mbn
      [  7.158] Flashing keymaster with keymaster.mbn
      [  7.236] Flashing sbl1 with sbl1.mbn
      [  7.392] Rebooting to fastboot
      [  7.392] Total time: 7.392s

      5. once this is complete then you mobile will boot in bootloader/recovery mode, or you can go to recovery mode using volume up/down button.
      After this, your mobile would be detected using adb(android driver), and you can execute fastboot commands.

      Note: blankflash1.zip file is working for motorola moto g 4 plus, it should work for other mobiles also. If that doesn't work with your mobile then try with blankflash2.zip and blankflash3.zip files. download here
      blankflash1.zip -- is for latest mobile above android lollipop,
      blankflash2.zip -- for android lollipop.
      blankflash3.zip -- for Kitkat devices.
      please try with 1,2 and 3 in order.

      Step3 is the key for whole process. you may need to try multiple times while blank-flash.bat is running.

      Once you reached here, Congratulations, your mobile is saved and back to life. next part flashing stock rom is very easy. I will try to find url for that.
      you just need correct ROM for your mobile and steps to flash it.

      Part 2 :
      Below is url for motorola, you will get idea how to do it for your mobile by going through it.
      Alternative, now you can give your mobile to service center or mobile repair shop to flash ROM.
      https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1643-updated-signed-t3460695

      Other link for flashing ROM into any android mobile:
      https://forum.xda-developers.com/wiki/Flashing_Guide_-_Android
      https://forum.xda-developers.com/showthread.php?t=2131284
      https://www.xda-developers.com/how-to-install-custom-rom-android/

      Let me know if you have any doubts/questions, I will try to update.

      Also let me know if it helps you and you can also Donate :) (Optional).
      15
      new blankflash, works on my xt1640 -> https://goo.gl/uLTnw6
      5
      Okay, so for those trying the new blankflash we have (https://forum.xda-developers.com/mo...icked-dead-t3585016/post73430127#post73430127 if you've not seen it already), I've uploaded the NPJS25.93-14-4, March 2017 and NPJS25.93-14-8, June 2017 GPT and bootloader files to here: https://drive.google.com/drive/folders/0B-GUyOfb8OgzcUl1NUtHYWNIR2M

      You'll see 2 separate zips, each with the appropriate files for each build, extracted from their fastboot files directly. The following file sizes and checksums should match when the files are expanded (ensure you download the GPT and bootloader you want!)
      March 2017 -
      GPT: 32 KB, md5: be97a48f5ab36009b8c5e5bd55453f1e
      bootloader: 3.56 MB, md5: 2f7a44bba145811bb6cd4267d6d19805

      June 2017 -
      GPT: 32 KB, md5: 88bc92ebbb172dc2c17321a4b6b10aea
      bootloader md5: 3.56 MB, md5: 1e82257d86c0211283775e2572b26a2f

      Use these files as in the post linked by baunthiyal https://forum.xda-developers.com/showpost.php?p=71405834&postcount=23 As lCrD512 notes in that post, be aware that you should use the latest firmware (so you may opt to use the June 2017 GPT/bootloader above).

      EDIT - if you see the 'waiting for device' command whilst attempting to flash GPT and bootloader, try un-plugging and re-connecting your device to fastboot and see if it senses your device. Credit to https://forum.xda-developers.com/showpost.php?p=73433267&postcount=299

      A personal request, if you do get your device working, please be really careful if you downgrade next time and try not to, or if you do downgrade, don't update via OTA? This time we were lucky...

      EDIT - baunthiyal is too quick for me :)
      4
      u try first :cyclops:

      ---------- Post added at 06:10 AM ---------- Previous post was at 06:09 AM ----------



      can u give me the full step of blankflashing plz

      1. Download the blankflash.zip provided by @marcelofilgueira
      2. Unzip the file.
      3. Double click on blank-flash.bat -> You phone will reboot to bootloader.
      4. Download the latest fastboot ROM (June update) from - https://www.androidfilehost.com/?fid=889764386195918175
      Thanks to @tywinlannister7
      5. Enter these commands -
      Code:
      fastboot flash partition gpt.bin
      fastboot flash bootloader bootloader.img
      fastboot reboot-bootloader
      Thanks to @lCrD512
      6. Follow the commands here - https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
      Thanks to @tywinlannister7
      4
      Wow, I posted the blankflash and stayed offline for a few days and i received so many messages and mentions, I did not imagine it would help so many sharing this file :D , but some guys think I created the file, no I did not create, just shared, the file was released by a motorola employee, so unfortunately i do not have access to blankflash files for other devices :( . (sorry for my english, i don't know write in english, only read, so if you find an mistake, i'm trying translate from brazilian portuguese to english :p.)
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone