Guide to unlock Huawei Ascend Mate bootloader - Huawei Ascend P6, Mate

Guide to unlock Huawei Ascend Mate bootloader
I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE. DO IT AT YOUR OWN RISK.EVERYTHING WRITTEN IN THIS DOCUMENT WAS TESTED ON MY PHONE.​
After playing with my Mate I found a way to unlock the locked bootloader. If your bootloader is unlocked you can flash custom kernel , recovery to your phone.
The files used to unlock the bootloader is from P6 KitKat firmware. These two files are for efi and fastboot partition. Flashing only these partitions can avoid problems with mismatching modem firmware. The process was tested on official B221 firmware , but should work with any firmware. Reflashing a stock firmware(as I know there are only firmwares for Mate only with locked bootloader) with dload will relock the bootloader.
Unlocking process need proper adb and fastboot drivers installed. I use this driver :Huawei handset drivers for windows
Guide in pdf format
If your adb and fastboot drivers are correct you can start unlocking the bootloader.
If you want to unlock the bootloader and install Twrp recovery use this package :Bootloader unlock with TWRP install
Bootloader unlock with TWRP install mirror
This way powering on your phone with volume up button hold TWRP recovery comes up instead of stock 3e recovery. If you want to use the dload method to install a stock rom you have to restore the stock recovery.
Stock B221 fastboot flashable recovery
Stock B221 fastboot flashable recovery mirror
The other package just unlocks the bootloader .Bootloader unlock.
Bootloader unlock mirror.
Turn on USB debugging on your phone (settings->developer settings)
Start the package.
File extraction starts.
Command prompt window should appear.
Your phone restarts in bootloader mode.
Efi partition is flashed.
Fastboot partition is flashed.
Your phone restarts in bootloader mode.
Your bootloader state is displayed. (should say bootloader unlocked)
Your phone restart in normal mode.
This is what the packages do :
.\adb wait-for-device
.\adb reboot bootloader
.\fastboot flash efi efi.img
.\fastboot flash fastboot fastboot.img
.\fastboot reboot-bootloader
timeout 2
.\fastboot oem get-bootinfo
timeout 10
If it says your bootloader is still locked you can try the following:
adb reboot bootloader
fastboot oem unlock UUUUUUUUUUUUUUUU
If you want to restore stock rom and recovery here are the packages.
Recovery restore package for B221
Recovery restore package for B907
These packages restores the original efi and fastboot partition and then restores the stock recovery. These packages do the opposite as the unlock bootloader , however my phone stayed unlocked. Also this package solves the problem when the stock recovery stuck at the begining when trying to flash a stock rom using dload method.
WARNING:If you plan to flash a rom not made for Mate , always check that it does not overwrite other partitions then boot, system, data, cust. If the install package reflash the modem do not install it as it can hard brick your device.
For updated versions of permanent TWRP recovery check my thread here
Thanks to surdu_petru for the initial device tree to compile twrp.

joe.stone said:
Guide to unlock Huawei Ascend Mate bootloader
I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE. DO IT AT YOUR OWN RISK.EVERYTHING WRITTEN IN THIS DOCUMENT WAS TESTED ON MY PHONE.​
After playing with my Mate I found a way to unlock the locked bootloader. If your bootloader is unlocked you can flash custom kernel , recovery to your phone.
The files used to unlock the bootloader is from P6 KitKat firmware. These two files are for efi and fastboot partition. Flashing only these partitions can avoid problems with mismatching modem firmware. The process was tested on official B221 firmware , but should work with any firmware. Reflashing a stock firmware(as I know there are only firmwares for Mate only with locked bootloader) with dload will relock the bootloader.
Unlocking process need proper adb and fastboot drivers installed. I use this driver :Huawei handset drivers for windows
Guide in pdf format
If your adb and fastboot drivers are correct you can start unlocking the bootloader.
If you want to unlock the bootloader and install Twrp recovery use this package :Bootloader unlock with TWRP install
This way powering on your phone with volume up button hold TWRP recovery comes up instead of stock 3e recovery. If you want to use the dload method to install a stock rom you have to restore the stock recovery.
Stock B221 fastboot flashable recovery
The other package just unlocks the bootloader .Bootloader unlock.
Turn on USB debugging on your phone (settings->developer settings)
Start the package.
File extraction starts.
Command prompt window should appear.
Your phone restarts in bootloader mode.
Efi partition is flashed.
Fastboot partition is flashed.
Your phone restarts in bootloader mode.
Your bootloader state is displayed. (should say bootloader unlocked)
Your phone restart in normal mode.
This is what the packages do :
.\adb wait-for-device
.\adb reboot bootloader
.\fastboot flash efi efi.img
.\fastboot flash fastboot fastboot.img
.\fastboot reboot-bootloader
timeout 2
.\fastboot oem get-bootinfo
timeout 10
Thanks to surdu_petru for the initial device tree to compile twrp.
Click to expand...
Click to collapse
Thanks joe....atlast bootloader unlocked..
One more thing i installed Fly UI OS from p6 and replaced with stock HAM boot.img....OS is not booting properly getting lots of FC's...
Does CM10.1 require different kernel or do we need to change any setting?

svvv said:
Thanks joe....atlast bootloader unlocked..
One more thing i installed Fly UI OS from p6 and replaced with stock HAM boot.img....OS is not booting properly getting lots of FC's...
Does CM10.1 require different kernel or do we need to change any setting?
Click to expand...
Click to collapse
CM 10.1 may need some change in kernel or/and its config. Init.rc files needs modifications (framework , init.d support) , and it can happen that the init binary need some mods in cm source for proper working.For example wifi firmware path as on g510 . The standard cm init uses 2 firmware path , while the g510 init uses 4 to properly load wifi firmware files.You can check it on my github.
I am planning to compile a cm rom for our device , but the bootloader was the first step.

Awesome news mate ...
Finally someone can make goodies on HAM !
You can take a look also on my CM11 development project for P6, maybe you will make one for HAM !
Good luck !

Nice , very nice

Yes !!! This is best news on Ham. Thanks
Inviato dal mio HUAWEI MT1-U06 utilizzando Tapatalk

Thanks! ...While this method works to unlock bootloader in B907 HAM??? I think I'll try

Unlocked on B907 it was only a problem , the bat don't find the extracted folder on %temp% but it was there .....I was running adb cmd inside temp folder. Work perfect . THANKS
IT'S DAY ZERO FOR OWR DEVICE
Inviato dal mio HUAWEI MT1-U06 utilizzando Tapatalk

unlocked bootloader will be easier to carry kitkat HAM??

ErSergi said:
unlocked bootloader will be easier to carry kitkat HAM??
Click to expand...
Click to collapse
Yes, KitKat will be more easily to port on HAM !

surdu_petru said:
Yes, KitKat will be more easily to port on HAM !
Click to expand...
Click to collapse
but we need kernel from huawei right....for kitkat

Tested and works in B907 Oficial, unlocked bootloader ... Thank you for the contribution

Now this is a great Birthday present for me..
HAM Finally can be UNLOCKED.
i havent try yet but just wanna ask few questions.
1. Since now i'm using Hyd52Rom from Husen, can HAM be Unlocked with this Rom running?
2. Whats the best choice of current rom running for Unlocking?
maybe its sound stupid but its me (non-devs brain and only a user who dare to test..)...
Thanks guys.

You can unlock your phone using any rom. The only thing is needed turned on usb debugging. Of course the drivers on your pc should be installed .
After unlock check my other thread and update your permanent twrp to 2.6.3.2.
Sent from my HUAWEI MT1-U06 using xda app-developers app

HAM finally unlocked.
Looking forward for testing Compatible Roms.
Any suggestions highly appreciatable.
Thinking of trying P6 roms but not sure if theyre compatible
[email protected]

theoppositeman said:
HAM finally unlocked.
Looking forward for testing Compatible Roms.
Any suggestions highly appreciatable.
Thinking of trying P6 roms but not sure if theyre compatible
[email protected]
Click to expand...
Click to collapse
I think every p6 JB ROM will compitable just you have to change dpi in build.prop
Sent from my P6-U06 using xda app-developers app

Hi @ all,
it's all progressing really well in recent times
Can i use this method only for HAM or can i use this for my P6 also?

87insane said:
Hi @ all,
it's all progressing really well in recent times
Can i use this method only for HAM or can i use this for my P6 also?
Click to expand...
Click to collapse
It should work on P6 too , but for P6 there are stock roms with unlocked bootloader.(KK beta).
If you want to use it on your P6 , use unlock bootloader only , and flash permanent twrp made for P6.
Of course permanent twrp for Mate will work on P6 as well , but the device identifier will be hwmt1_u06 and not hwp6_u06 which can cause assert errors when you try to flash a recovery flashable P6 rom .

I know. But i search for a way to use this on B125 international. In the CN it is to easy
Gesendet von meinem HUAWEI P6-U06

Hi,
I can't flash [ROM][JB4.2.2][HAM][ HYD52ROM V5] [Superfast,Stable][V5 7-02-14]
from TWRP 2.6.3.2 . Everythings go right but on reboot the device never end logo.
I need to relock bottloader and start again whit dload. I have tryed flashing same zip from tmp recovery on locked and everything is working. i will to know if is a rom problem or twrp or unlocked bootloader.Also i have try buckup from HYD52ROM V5 whit twpr 2.6.3.2 and restore rom, after a factory reset, but was a id mismatching and no user app.
I will try to unlock and no permanent twpr, but use a cwm tmp whats happen. i will report
Edit: whit unlocked bootloader and tmp twrp
2.6.3.0 from sordu_petru recovery flash of same zip ad no problem.

Related

[Q] help please.im almost dying

hi every one
last night when i wanted to sleep.my phone suddenly restart .when the os wants to load.it reamins at huawei logo
i think i have this os :SelfieP6 by Reyncla
so i decided to install another rom
i found this one interest :
[ROM][4.4.4][ Unofficially Omni ROM
in order to install this rom.it said :ive to first install kk beta .to install kk beta i have to go back to stock recovery.i had twrp.so ive installed these 2 by twrp : Stock Firmware Huawei B506 CN KitKat boot and recovery.zip
first i install boot then recovery.
and now what ever i do .it reamains in huawei logo.my twrp gone,my os gone
i cant do anything with adb commands cuz it says :device not found
am i bricked my phone >?
v.mohamadtaghi said:
hi every one
last night when i wanted to sleep.my phone suddenly restart .when the os wants to load.it reamins at huawei logo
i think i have this os :SelfieP6 by Reyncla
so i decided to install another rom
i found this one interest :
[ROM][4.4.4][ Unofficially Omni ROM
in order to install this rom.it said :ive to first install kk beta .to install kk beta i have to go back to stock recovery.i had twrp.so ive installed these 2 by twrp : Stock Firmware Huawei B506 CN KitKat boot and recovery.zip
first i install boot then recovery.
and now what ever i do .it reamains in huawei logo.my twrp gone,my os gone
i cant do anything with adb commands cuz it says :device not found
am i bricked my phone >?
Click to expand...
Click to collapse
Boot into bootloader and reflash twrp.
1) I dont remember the key combination required to get into fastboot, could anyone help out on this one
2) When in fastboot your phone should get stuck on the huawei screen, then you run fastboot flash recovery recovery_twrp.img
recovery_twrp.img being the twrp file from surdus thread.
3) fastboot restart and you should be able to access twrp
TNX
tauio111 said:
Boot into bootloader and reflash twrp.
1) I dont remember the key combination required to get into fastboot, could anyone help out on this one
2) When in fastboot your phone should get stuck on the huawei screen, then you run fastboot flash recovery recovery_twrp.img
recovery_twrp.img being the twrp file from surdus thread.
3) fastboot restart and you should be able to access twrp
Click to expand...
Click to collapse
hi buddy tanx for your help.thats quite helpful.when i have twrp ,i want to use dlod methode.but i cant .can u help me what to do >?
v.mohamadtaghi said:
hi buddy tanx for your help.thats quite helpful.when i have twrp ,i want to use dlod methode.but i cant .can u help me what to do >?
Click to expand...
Click to collapse
dload method can be used only with stock recovery.
TWRP is for flashing custom ROM's.
install
XDAvatar said:
dload method can be used only with stock recovery.
TWRP is for flashing custom ROM's.
Click to expand...
Click to collapse
how can i install stock recovery ? .in surdu's post .there are 2 types of stock recovery.which one of them should i install?
v.mohamadtaghi said:
how can i install stock recovery ? .in surdu's post .there are 2 types of stock recovery.which one of them should i install?
Click to expand...
Click to collapse
Try both. See which one is working.

[Q] Recovery mode

History : i've been using an earlier pre-rooted rom for this device and after having taking care of unrooting it, i tried the OTA Update to upgrade and access the TWSP and Garbage rom.
My issue is that as i access the phone in fastboot mode with fastboot and adb i can't acces the recovery mode : the phone reboot to fastboot.
Any hint appreciated
Manuel
Have you tried rerooting and flashing a recovery again?
Sent from my SGH-T599N using XDA Forums Pro.
lowvoice said:
Have you tried rerooting and flashing a recovery again?
Click to expand...
Click to collapse
Rooted again with "cai_dat_CWM" (root ok)
Flashed with fastboot flash recovery twrp.img (transfert ok)
same issue after selecting recovery mode
is the unlock available in 2.15.40.13 ((2015/05/06) ?
U need to unlock ur bootloader first to flash permanent TWRP
Sent from my ASUS_Z008D using XDA Free mobile app
yakub234go said:
U need to unlock ur bootloader first to flash permanent TWRP
Click to expand...
Click to collapse
According to http://forum.xda-developers.com/zenfone2/general/congrats-to-bootlocker-unlocked-t3138547
Step 1 to unlock is Update to 2.19.40
I'm on 2.15.40.13 and the OTA fails at the fastboot menu
http://forum.xda-developers.com/zenfone2/orig-development/rom-pre-root-img-t3079590/page51
I forgot this was a pre-root system.img file as explained, no stock system.img provided
I think the recovery limitation was made on purpose to avoid bootloop after OTA.
Looking for stock rom to flash via fastboot
Fixed :
Used cai_dat_CWM Tethered to flash stock rom from Asus Website
UL-Z00A-WW-2.19.40.18-user.zip from Asus Website
Then again to root with SuperSU246 update from zip

I can't Lock Bootloader (Mediapad M2 10 A01W)

Hi.
I rooted my M2 10 Wifi (A01W) with Kingroot and apparently now it's unroot (Magisk Manager said that). Even I made a factory reset.
I have the _B007 version and when I try to upgrade via OTA to _B008, it always fail and show "Failed to check the update files. Please download the package again".
I've working with ADB, Fastboot... and I could see that it's unroot, but the Bootloader is Unlock and I can't Relock it. Maybe it's the reason because the OTA doesn't work.
So I got a fastboot code with DC-UNLOCKER and tried to relock (fastboot oem relock CODE) and the answer was:
FAILED (Remote: root type is risk)
If I execute "fastboot oem check-rootinfo":
old_stat: RISK
now_stat: RISK
change_time: xxxxxxxxx
Apparently, the Recovery is stock, with EMUI logo showing 3 options:
Reboot, Wipedata/factory reset and Wipe chache partition
I made the factory reset that way.
Any idea? Thanks.
ma2crmam said:
Hi.
I rooted my M2 10 Wifi (A01W) with Kingroot and apparently now it's unroot (Magisk Manager said that). Even I made a factory reset.
I have the _B007 version and when I try to upgrade via OTA to _B008, it always fail and show "Failed to check the update files. Please download the package again".
I've working with ADB, Fastboot... and I could see that it's unroot, but the Bootloader is Unlock and I can't Relock it. Maybe it's the reason because the OTA doesn't work.
So I got a fastboot code with DC-UNLOCKER and tried to relock (fastboot oem relock CODE) and the answer was:
FAILED (Remote: root type is risk)
If I execute "fastboot oem check-rootinfo":
old_stat: RISK
now_stat: RISK
change_time: xxxxxxxxx
Apparently, the Recovery is stock, with EMUI logo showing 3 options:
Reboot, Wipedata/factory reset and Wipe chache partition
I made the factory reset that way.
Any idea? Thanks.
Click to expand...
Click to collapse
Well, I've read that flashing a system.img extracted from the UPDATE.APP I would can restore the Stock ROM... but I don't find a complete Stock ROM for Mediapad M2 10 Wifi (A01W).
I found the OTA in Romfirmware or Fordroid (sorry, I'm new user and I can not post external links). With this I can flash BOOT.img and RECOVERY.img, but the problem persist.
Does someone has any idea... or where can I get the complete Stock ROM?
Thanks!!!
ma2crmam said:
Well, I've read that flashing a system.img extracted from the UPDATE.APP I would can restore the Stock ROM... but I don't find a complete Stock ROM for Mediapad M2 10 Wifi (A01W).
I found the OTA in Romfirmware or Fordroid (sorry, I'm new user and I can not post external links). With this I can flash BOOT.img and RECOVERY.img, but the problem persist.
Does someone has any idea... or where can I get the complete Stock ROM?
Thanks!!!
Click to expand...
Click to collapse
Stokk ROM maybe available through a paid service by easy firmware. Got my LTE Stock ROM frim there. For the Wi-Fi edition you could first take a look here.
Sent from my HTC U11 using XDA Labs
5m4r7ph0n36uru said:
Stokk ROM maybe available through a paid service by easy firmware. Got my LTE Stock ROM frim there. For the Wi-Fi edition you could first take a look here.
Sent from my HTC U11 using XDA Labs
Click to expand...
Click to collapse
Thanks!!! I didn't know that page. It's fine and does not look very expensive.
Just one more doubt.
The firmaware I need (as read on the tablet) is M2-A01w...B008 for West Europe
The firmware that the page shows is M2-A01w...B008CUSTC100D001
Do you know what CUSTC100D001 mean? Could I used it without problems?
ma2crmam said:
Thanks!!! I didn't know that page. It's fine and does not look very expensive.
Just one more doubt.
The firmaware I need (as read on the tablet) is M2-A01w...B008 for West Europe
The firmware that the page shows is M2-A01w...B008CUSTC100D001
Do you know what CUSTC100D001 mean? Could I used it without problems?
Click to expand...
Click to collapse
Glad it helped and yes it is not so expensive regarding the fact that there are all sorts of official firmware (mostly leaked ones) available for a lot of manufacturers.
The CUST reference at the end if the firmware version can be found in settings > about the tablet in the very last line. Mine is in German, So translated this line would state something like adapted/customized version. D001 is definitely Western Europe,this should be fine.
If not familiar how to install it google or search the forum for dload method. It will tell you what to do.
Sent from my HTC U11 using XDA Labs
I've done:
1. Get the correct firmware (version ...B007) and extract the RECOVERY.IMG and UPDATE.APP.
2. Flash the RECOVERY with Fastboot and install the UPDATE with the "dload" in the SD.
3. Reboot in RECOVERY MODE, wipe all and restore factory settings.
4. Then, the tablet was updated via OTA to the ...B008 version.
Then, positive:
1. The OTA works fine.
2. I was abble to install the Nextlix App and the HBO Spain App plays videos. Both didn't work before.
3. If I execute "fastboot oem check-rootinfo":
old_stat: RISK
now_stat: SAFE
Then, negative:
1. I can't relock the Bootloader yet. When I try to relock (fastboot oem relock CODE) and the answer was again: FAILED (Remote: root type is risk)
Well, for normal use that's enough, but... THE RELOCK is becoming personal!!!

Stock ROM Bootloop unless bootloader is unlocked

I restored the newest stock Android One ROM using MiFlash, but the phone only boots if the bootloader is unlocked. I need the bootloader to be locked for various apps. Can someone help me
I haven't found any threads that talk about this issue so I have no idea of what to do
Regarding your signature, I believe you have Magisk installed ? If you have Magisk or TWRP installed or if you've changed anything in the system, you can not lock the bootloader, as it will prevent the device from booting. All the partitions of the device should be stock and you should not have root, in order to lock the bootloader. My advice is to flash the stock rom via MiFlash again, but choose 'Clean All and Lock' option while flashing.
Install stock 10.0.13 version with edl mode:
fastboot oem edl , and flash with miflash,then reboot the system in fastboot mode to lock bootloader with : fastboot lock oem , then boot the system and update your device with ota.

Serious problem whit a52017 need some experts

Hello ,i have a problem whit my a5 2017
I have updated my phone to latest version of oreo , before doing this i disabled oem unlock but i got twpr installed in my phone .
Now after the oreo update the phone is a brick , i have no command screen and if i try to enter recovery i have this message :
#fail to open recovery_(cause no such file or directory)#
Now i am on the latest version of bootloader , oem locked and frp lock active whit an infinite bootlop.
I tried to extract recovery file of latest oreo update whit cmd l4z command , success , i flashed it but still no recovery
If i try to flash twpr i get an error : custom binary locked by frp lock on download mode screen
Adb does not recognize my phone i can't unlock oem from adb
I tried to install stock firmwares a lot of times but the problem still persist
What can i do?
gd9719 said:
Hello ,i have a problem whit my a5 2017
I have updated my phone to latest version of oreo , before doing this i disabled oem unlock but i got twpr installed in my phone .
Now after the oreo update the phone is a brick , i have no command screen and if i try to enter recovery i have this message :
#fail to open recovery_(cause no such file or directory)#
Now i am on the latest version of bootloader , oem locked and frp lock active whit an infinite bootlop.
I tried to extract recovery file of latest oreo update whit cmd l4z command , success , i flashed it but still no recovery
If i try to flash twpr i get an error : custom binary locked by frp lock on download mode screen
Adb does not recognize my phone i can't unlock oem from adb
I tried to install stock firmwares a lot of times but the problem still persist
What can i do?
Click to expand...
Click to collapse
I suggest try to download another stock rom and try again with it.
matkali said:
I suggest try to download another stock rom and try again with it.
Click to expand...
Click to collapse
i have done this 13 times and the problem still.
gd9719 said:
i have done this 13 times and the problem still.
Click to expand...
Click to collapse
Download from here:
https://www.sammobile.com/samsung/galaxy-a5-2017/firmware/#SM-A520F
matkali said:
I suggest try to download another stock rom and try again with it.
Click to expand...
Click to collapse
I finally booted up my phone and unlocked oem
but network is not working , everytime i update my firmware recovery is missing and i have to install recovery manually (only twpr work , stock recovery not working cause of bootloader)
i have tried to unpack recovery from lz4 stoc files ( latest update) create a tar whit 7 zip and flash it , flash success but still no recovery.
after erasing screen after update i have no command whit failed to load recovery no such file or directory

Categories

Resources