[FIX] fix hard brick / qhsub_bulk after bad flash / cm12 flash from 5.1

Search This thread

opssemnik

Account currently disabled
Jun 10, 2013
1,560
1,046
GB
meettomy.site
First of all:Remember:im just making a thread, all of this wasn´t possible if not for @ccfries(He works at motorola, and sent the files to shamu´s device tree repo)
and @Casper34

See: http://xdaforums.com/showpost.php?p=59562745&postcount=9 and https://android-review.googlesource.com/#/c/143010/
Requirements:
Pre Requirements:
- Disable driver signature checking
- Install the drivers:

Go to device manager, Unknown devices, double click qhusb_bulk, install driver, select location and select where you extracted the drivers.
HPm2oWD.png

kHQqHUO.png

z_www.kepfeltoltes.hu_.png


- Next you should extract both zip files (Unbrick and factory images)
- Then Connect your nexus 6 on your computer (now should appear as Qualcomm HS-USB QD-Loader 9008 under "COM PORTS"):
x_www.kepfeltoltes.hu_.png

- Open the Unbrick folder and run blank-flash.bat:
ShauKtD.png

- Flash Stock factory images: (Problems see #2)
Your phone should show up on the computer as fastboot.Just flash stock factory images. (Motorola via "RSD Lite" or Google one should do the trick).
Thanks:
@ccfries(HUGE Thanks to him, turns out he is the one who made the commit with the necessary files, props to him!)
@Casper34 (Huge help with his working nexus 6)
@bitdomo (helped me a lot, and i got some images from another thread of his)
 
Last edited:

opssemnik

Account currently disabled
Jun 10, 2013
1,560
1,046
GB
meettomy.site
Problems that may occur during or after:
Stuck at waiting for device
IHmA9RU.png

Check if drivers are installed correctly and restart pc
Check if you have an updated fastboot
THESE TWO ARE THE MAIN REASON OF PROBLEMS (mostly outdated fastboot)
-Drivers
http://xdaforums.com/showthread.php?t=2263822
http://storage.googleapis.com/tetheredupgrades/MotorolaDeviceManager_2.5.4.exe
Fastboot:
http://xdaforums.com/showthread.php?t=2317790
Problems while flashing factory images:
First, fastboot flash partition gpt.bin

Then flash the other images.

If you just bricked by downgrading bootloader, the persist and modem calibration should still be happily where it was when you started.

This won't help you if you're stuck with Allow OEM Unlock. Be careful locking on 5.1. There's accurate information elsewhere in the forum on that.

-Chris
PS:
If you lock, it clears the setting by design, so you can't lock and unlock without booting up and checking the box.
Wifi / Bluetooh dosen´t work:
See http://xdaforums.com/showpost.php?p=59561966&postcount=3
No IMEI / No Signal
Restore EFS Backup
 
Last edited:

opssemnik

Account currently disabled
Jun 10, 2013
1,560
1,046
GB
meettomy.site
If wifi/bt/camera dosen´t work Then probably your /persist got somehow corrupted. (Post Under construction)
For a fix:

Flash a custom recovery, and open a terminal with the phone booted to it
run
umount /persist
mkdir /persist
mount /dev/block/platform/msm_sdcc.1/by-name/persist /persist
#e2fsck /dev/block/platform/msm_sdcc.1/by-name/persist
you will be propmpted to check / repair errors, keep pressing enter for each that it appears
then run
umount /perist
and reboot phone
 
Last edited:

opssemnik

Account currently disabled
Jun 10, 2013
1,560
1,046
GB
meettomy.site
Wow! Very nice. I bet you just saved some poor guys from getting yelled at from wifey. Good job and thanks for helping the community. :highfive:
Thanks to both, thankfully cm already merged a check for the bootloader, but i hope this can fix phones that are already bricked for people who cant use warranty (outside area, on a trip, etc).
Oh yeah, or in the case of my friend, his mom :p
 

opssemnik

Account currently disabled
Jun 10, 2013
1,560
1,046
GB
meettomy.site
I authored the commit this afternoon so finding it was pretty easy. :good:
Oh no wait, I DIDN´T SEE THE AUTHOR LOL.
may i ask was it hard for you to get the permission to post? afaik these files are proprietary (aside from the paritition table) or aren´t they?.
also can i ask you something a bit more offtopic?
i noticied the nexus 6 works directly with QPST (at least it can communicate with it)
but some other devices (like the nexus 5) can´t, its something that qualcomm or the manufacturer decide / make?
Once again ,props to you and motorola!
Never thought of an oem doing that, even more that the bricks can only be achieved when messing with things you shouldnt be :p:good::good::good:
 
Last edited:

bradputt

Senior Member
Jun 16, 2010
1,336
296
Erm, don't mind me asking one question.
How do you back up your efs if your phone is bricked?
 

serdaj

Member
Mar 24, 2010
43
0
So I thought I would rid myself of no Xposed or CM12 on 5.1 (LMY47D) by going back to 5.0.1 and flashing CM12 again from an older nightly I had downloaded already....I think we all know what happened.

I managed to get through it all and have the blank-flash boot loader screen up but I get hung up on <waiting for device> when trying to flash factory image (LMY45D). The boot loader shows as locked and as a result I am unable to flash a factory image. Hopefully I am not breaking any rules or anything by posting this here but this is the error I am getting when running the flash-all.sh:

target reported max download size of 536870912 bytes
sending 'bootloader' (3807 KB)...
OKAY [ 0.131s]
writing 'bootloader'...
(bootloader) Motoboot: Unknown partition name
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.181s
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
target reported max download size of 536870912 bytes
sending 'radio' (85422 KB)...
OKAY [ 2.769s]
writing 'radio'...
(bootloader) Motoboot: Unknown partition name
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 2.772s
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
target reported max download size of 536870912 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
fastboot(665,0xa03911d4) malloc: *** mach_vm_map(size=1779851264) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
failed to allocate 1778070480 bytes
error: update package missing system.img​

and when I try to run em unlock:

fastboot oem unlock
...
(bootloader) Check 'Allow OEM Unlock' in Developer Options.
FAILED (remote failure)
finished. total time: 0.002s​
 
Last edited:

ccfries

Member
Mar 19, 2015
11
50
Chicago
Google Pixel 6 Pro
(bootloader) Motoboot: Unknown partition name
(bootloader) Preflash validation failed

First, fastboot flash partition gpt.bin
Then, fastboot reboot-bootloader

Then flash the other images.

If you just bricked by downgrading bootloader, the persist and modem calibration should still be happily where it was when you started.

This won't help you if you're stuck with Allow OEM Unlock. Be careful locking on 5.1. There's accurate information elsewhere in the forum on that.

-Chris
 

Delboyd12

Senior Member
Jul 7, 2014
130
27
Damn, wish this was on here last week. Had to send my N6 off to repair centre for this as I thought it was a gonner. Fault diagnosed as 'Electrical issue - Replacement required'. Replacement is coming tomorrow hopefully. Will bookmark this, thanks.
 
  • Like
Reactions: Casper34

Casper34

Senior Member
Damn, wish this was on here last week. Had to send my N6 off to repair centre for this as I thought it was a gonner. Fault diagnosed as 'Electrical issue - Replacement required'. Replacement is coming tomorrow hopefully. Will bookmark this, thanks.
That was when he started this.... After many bricks. I know a lot of people RMAed their phones, but this can still help others!
 

tommydeaks

New member
Mar 20, 2015
4
0
Please can someone help me?

I am stuck in the bootloader, which is locked. I can't boot the phone up. I am trying to flash stock images but nothing is happening. Just booting to the bootloader every time.

I can detect my device using fastboot devices, but every time I try and write an img it fails, because the bootloader's locked! Argh!

Thanks in advance,

Tom
 

Top Liked Posts