[ GUIDE ] How change relocked bootloader to locked - Ascend Mate 7 General

Hi all.
Today i write how restore locked bootloader on mate7 on 4.4.2 , 5.1.1 and 6.0 rom
What we need :
1. Unlocked bootloader
2. Root
3. Dc Unlocker client count ---> https://www.dc-unlocker.com/downloads
4. HCU-Client v1.0.0.0062 ---> http://hcu-client.com/download/
5. Oeminfo and Custom.bin from this link ---> https://mega.nz/#!l9ZWRTDS!Y-fYWnUIlCBDcGt_7WywDcgQAIbVR0c3SiFWGx-wYeU
6. Your Unlock code to your bootloader
7. Fx Explorer.
8. Mobopx tool ---> https://mega.nz/#!9kBWnY7T!ybhARn5UNXAyxrdQZ1ytKks24eCyzxkgdVhEza6zwFQ
9. Downgrade pack b500 for downgrade from 6.0 to 5.1.1
10. Downgrade pack b300 for downgade from 5.1.1 to 4.4.2
11. Twrp Backup your firmware you have now installed
12. All firmware for your device
And patience
Ok let's start now
What we must do first???
First we must downgrade from 6.0 if you have on your mt7 to 5.1.1
How do it???
Here i write how i do it :
1. I have b571 instaled and rooted
2. Downloaded custom.bin and oeminfo we copy to :
- Oeminfo copy to System(root)/dev/block/platform/hi_mci0/by-name and overwrite
- Custom.bin copy to System(root) /data and overwrite and set permission to 0775
3. Go back to System(root) and push search and write recovery ( it take some time to search )
4. When its finish you see folder recovery and open in new window
5. When it's open you see log and now you must delete this file
6. Now go to System(root)/data/system/dropbox and open ( delete all file in side )
7. Now go to System(root)/log/log-services and delete all folder
8. Open SrkTool via Administrator and go to unlock bootloader
9. When you unlock use Mobopx tool to flash stock recovery
10. When it's finish go to SuperSu and do it full unroot
11. Copy B500 update.app to dload in internal sdcard and flash using 3 bottom method
12. When you Have now B500 flash latest 5.1.1 and flash
13. Copy B300 update.app to dload in internal sdcard and flash using 3 bottom method
14. When you Have now B300 flash latest 4.4.2 and flash
15. When you have now latest 4.4.2 (in my case it's B137sp03) download first 4.4.2 for your mate7
16. When you download copy update.app to dload in internal sdcard and flash ( in my case it's b120sp04 )
17. When we have first 4.4.2 go to setting and then backup & reset and do it factory data reset and internal memory to.
18. When its boot go to setting/about phone and push 7 time on bulid number and go to developers option ( enable usb debugging )
19. Now open SrkTool and relock your bootloader
20 . When you have relocked we can go to next step
How change relock to locked bootloader
1. Open Dc Unlocker and create new count ( you must buy 4 credits )
2. When you have active your count open HCU Client and log there
3. When you login you has connect to server.
4. Now go to dialpad in your mate7 and write this code *#*#2846579#*#* push 1 and 2 ( change to Manufacture Mode and plug mate7 to your pc via usb cable )
5. In Hcu push Read Phone and when its connected go to unlock and push Lock Bootloader its take 1 min
6. When it's finish change Manufacture Mode to Hisuite Mode
7. Now go to SrkTool and push 7 then 5 and your phone go to fastboot mode and you see you have locked bootloader.
How Lock bootloader on latest full 6.0
1. When you have locked bootloader on your first 4.4.2 update to latest 4.4.2 using ota update
2. When it's Upodate you must unlock bootloade, reboot device, relock bootloader and lock bootloader (go to setting and then backup & reset and do it factory data reset and internal memory to.)
3. Now Flash latest 5.1.1 and do it that same unlock bootloade, reboot device, relock bootloader and lock bootloader (go to setting and then backup & reset and do it factory data reset and internal memory to.)
4. Now Flash first 6.0 full rom and do it that same unlock bootloade, reboot device, relock bootloader and lock bootloader
(go to setting and then backup & reset and do it factory data reset and internal memory to.)
5. Update to last 6.0 using Ota update and do it that same unlock bootloade, reboot device, relock bootloader and lock bootloader (go to setting and then backup & reset and do it factory data reset and internal memory to.)
Why we must unlock bootloader, relock and lock after full update rom???
Because all firmware have diffrent data formate in rom. When you lock bootloader all this information go to sevice when you use HCU Client.
If you want lock bootloader on 6.0 you must flash first Marshmallow (in my case it's B522 ) and do it format using backup & reset and do it factory data reset and internal memory to. Now you can relock first Marshmallow and update to last firmware and send your device to huawei services. Your warranty it's back and they repair your device
That all. Cheers
If you want you can buy me bear :highfive:

Related

[TWRP]Unlock huawei Honor 2 U9508/ Ascend g615

Hi everyone
This is how to unlock and install TWRP (root too) the Huawei Honor 2
The root in this process is a partial root....since Xposed and some other root features wont work because the stock Jb roms are odexed.
Warning...this process was not tested on B8xx aka emui 2.0 firmwares
It will succesfully work on :
B1xx
B5xx
B7xx
Also....you cannot flash official firmwares with unlocked bootloader...so you need to relock it in oreder to reflash a rom with dload mod
Check "HOW TO LOCK/RELOCK BOOTLOADER" bellow
So first :
IM NOT RESPONSIBLE IF YOU BREAK YOUR PHONE
COMPLETLY DESTROYED YOUR SD CARD
OR SIM CARDS NOT WORKING
....Do this at your own risk
Links Bellow.
1/Unlock Bootloader
First you need the flash tool : Here (not my tool...only sharing)
You will also need the usb drivers. You can install Hisuit and it will automatilcally install the drivers you need.
When everything is ready...enable Usb debugging on your phone
Connect the device to your pc via usb and run the tool.
---Select option 1 (so insert 1 and press enter) to install the new fastboot partition, which is able to unlock your device if you install an unsigned kernel / recovery.
---Select option 2 if you haven’t enabled usb debugging, or if you have previously flashed an unsigned partition and now your device isn’t booting.
---Select option 3 to flash a custom kernel you have previously renamed to boot.img and put on your desktop. Do NOT use dd dumps : which means do NOT use boot.img you can find in flashable rom zips.
---Select option 4 to flash a custom recovery you have previously renamed to recovery.img and put on your desktop. Do NOT use dd dumps neither here.
---Select option 5 to check if bootloader is locked, unlocked or relocked.
Congratulation...your phone is unlocked !
2/INSTALL TWRP AND ROOT
TWRP Recovery : Gdrive
Alternative TWRP Recovery : Gdrive ( Use Ctrl + S) to download and keep them in the same folder
Now after unlocking the bootloader close the unlocktool and reboot the phone in fastboot mode
After that :
1/ IF you used the first link recovery Rename the file to recovery.img ...put it on the same folder and use the unlocking tool to flash it
2/ IF you used the 2nd link (Alternative recovery) you can just run flash.bat and it will do the work
after installing recovery :
go to wipe menu...then advanced and wipe only dalvik cache
now reboot
if your phone is rooted choose do NOT root and reboot
if yours is not rooted :
hit reboot button and the phone will install the root....now all you need to do is to update supersu from the playstore
DONE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HOW TO “RELOCK” BOOTLOADER
After your bootloader status is “unlocked”, if you want to flash a stock rom with dload method , you need to flash chinese recovery (not another one), then flash any of batty86 roms (or any other rom with both boot.img and reserved.img), let the device boot at least once, and the bootloader will be “relocked”; then you can install the original recovery and use the dload method again.
usefull links :https://huaweiascendg615.wordpress.com/
How to use chineese recovery for non chineese :Here
NOTE : I NO LONGER USE THE U9508 !
I've Bought a Samsung A5 A500FU
Credits :
TWRP team
Batty86 for his amazing tool and roms that can relock the bootloader
sorex blog for showing us how to use chineese recovery.
Hit :good: if i helped you
hello and thanks, do you have the file for bootloader unlock?? link is down
mimminou said:
Hello all xda devs and rookies
Today im showing you how to root and install TWRP 2.0.6.0 (Bootloader unlock too) on Huawei Honor 2
The root in this process is a partial root....since Xposed and some other root features wont work because the stock Jb roms are odexed...
-(Warning...this process was not tested on B8xx aka emui 2.0 firmwares
It will succesfully work on : B1xx
B5xx
B7xx
Also....you cannot flash official firmwares with unlocked bootloader...so you need to relock it in oreder to reflash a rom with dload mod
Check "HOW TO LOCK/RELOCK BOOTLOADER" bellow
So first :
IM NOT RESPONSIBLE IF YOU BREAK YOUR PHONE
COMPLETLY DESTROYED YOUR SD CARD
OR SIM CARDS NOT WORKING
....Do this at your own risk.
1/Unlock Bootloader
First you need the flash tool....Link Here (Link in first post) (not my tool...only sharing)
You will also need the usb drivers. You can install Hisuit and it will automatilcally install the drivers you need.
When every thing is ready...enable Usb debugging on your phone
Power off your phone; unplug the battery and replug it and boot up your phone in fastboot mode (power button + volum down)
Plug your phone in your computer and run flash.exe
choose 1 for chineese
choose 2 for english
Now choose unlock phone
after that choose fasboot option
Wait ~7 seconds and the phone will reboot
Congratulation...your phone is unlocked
2/INSTALL TWRP AND ROOT
Now after unlocking the bootloader you need to close flash.exe and reboot again your phone in fastboot mode
After that...open flash.exe and choose install TWRP V3 RECOVERY
NOTE : Do NOT choose Twrp touch version because its a little buggy and unstable (experimental users only)
now after the phone reboots...close the tool and reboot the phone in recovery mode using power + Volum up
go to wipe menu...then advanced and wipe only dalvik cache
now reboot to system....the recovery will notice that the phone is not rooted...
hit reboot button and the phone will install the root....now all you need to do is to update supersu from the playstore
DONE
Credits :
GenoKolar for his amazing tool and recovery and unlock script
TWRP team
EternityProject team for sharing this tool
Batty86 for his rom that can relock the bootloader
sorex blog for showing us how to use chineese recovery.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HOW TO “RELOCK” BOOTLOADER
After your bootloader status is “unlocked”, if you want to flash a stock rom with dload method , you need to flash chinese recovery (not another one), then flash any of batty86 roms (or any other rom with both boot.img and reserved.img), let the device boot at least once, and the bootloader will be “relocked”; then you can install the original recovery and use the dload method again.
usefull links :here
How to use chineese recovery for non chineese :Here
#sorry for bad english....im using my phone
Hit :good: if i helped you
Click to expand...
Click to collapse
got a new link for the flash tool? thhanks
hello bro flash toool link not working
This Thread is discontinued so i decided to update the unlocking methode one more time

is it possible to lock/relock emui5.0 B336?

my phone original model name is vns-dl00
i upgrade it to emui5.0 by these steps
1. use twrp to change model to VNS-L31C432 and dload method to install VNS-L31C432B201
2. use twrp to flash B336(1.3G)+(0.66G)
3. now my phone's model name is HUAWEI VNS-L31, "about" is normal without error
my question is
after step2, phone state is unlock. how to relock/lock bootloader?
a. erecovery could not find any firmware. so it's not possible to use erecovery to lock
b. will factory reset remove 0.66G part?
c. adb relock command need a factory reset
d. could "dload method to reinstall B336 1.3G part" lock bootloader and keep 0.66G part?
THANKS!!
i think i have solved the problem:
i was in B336
i put 1.3G B336 part in dload folder
*#*#2846579#*#* update from SD card
after process, build is still B336 ,bootloader is locked and no data/app is lost
i am on PRA-LX1C432b106, i've unlocked the boot loader and receive your device is unlocked and cannot be trusted . to learn more visit... your device is booting now, but he do not boot. After a complete drain of the battery with the charger plugged in i can boot in software. but i do not have a keyboard option and any google play store account. cannot format wipe because miss of the keyboard . the question it is OK to install VNS-L31 software firmware on my device? And what version to put ?

[Guide] Unbrick + Install any Firmware after mount errors (/data, /system, /...)

This Guide was tested on L09 Device, other Devices are untested so use it on your own risk if you dont have L09
Things You need:
1. B360 Firmware from this Link: https://forum.xda-developers.com/honor-8/how-to/to-emui5-custom-roms-tested-openkirin-t3638445 (Use the right Region for your Device)
2. TWRP for Nougat: https://forum.xda-developers.com/honor-8/development/twrp-t3566563 (OPTIONAL)
3. TWRP for Marshmallow: http://www102.zippyshare.com/v/WwVRzQ7X/file.html
4. Rollback Firmware: http://www102.zippyshare.com/v/Ca3EYNWv/file.html
5. B131 Firmware: https://my.hidrive.com/lnk/Rdljlogo#file
You need Locked/Relocked Bootloader for the first Steps.
1. Install the Rollback Firmware (3 Button Method) (Put UPDATE Folder in root of SDCARD)
2. Install the B131 Update (3 Button Method) (Put UPDATE Folder in root of SDCARD)
3. Boot into fastboot and Unlock Bootloader
4. Flash TWRP 3.0.2.-0 via Fastboot
5. Download the B360 Firmware for your Devices from this Link: https://forum.xda-developers.com/hon...kirin-t3638445
6. Download both Files and put it on your SDCard.
7. Flash the update_data_full_hw_xx.zip (for your Region)
8. Then flash the update.zip and wipe Dalvic and Cache
9. Reboot.
OPTIONAL
1. Flash TWRP 3.1.1-1
2. Wipe /data , confirm with "yes" and reboot Recovery
3. Flash any Custom ROM (Resurrection, HalogenOS,...)
4. Reboot

[Fixed][Help] How to relock bootloader and revert to stock

Fixed! Go here for steps
I've tried the relock.bat provided in the unofficial bootloader unlock/lock thread but I keep getting the bootloader unlocked warning. I also downloaded and tried installing the stock ROM mentioned in https://m.youtube.com/watch?v=peSI-KeEt5E&time_continue=23 but the window just closed itself so I manually flashed recovery, boot, system and vendor images using twrp. I then booted and installed the April security patch update but I got random soft-reboots in the process.
Can anyone guide me to restoring the device to locked condition? (4GB ram variant)
Update: Noticed that these reboots occur as soon as app installation is over. Disabled app updates for now
Relock Bootloader ZenFone Max Pro M1
1) Download Zenfone_Max_M1_Pro_Relock.zip and extract it to a folder on your desktop.
2) Power off your phone. Then press Power and Volume Down key together, to boot into fastboot mode.
3) Connect your Asus Zenfone Max Pro M1 to the PC using a USB cable.
4) Windows will now automatically detect the device and start installing the fastboot drivers for it. If not, download and install these ASUS drivers.
5) Open the directory where you extracted the file from #1.
6) In that directory, open a file named relock_bl.cmd
7) A Command (CMD) prompt will do the rest of the work for you.
Let the phone restart.
8) It will then erase all the data on your phone (excluding Micro SD card).
9) Now the phone won’t show the “bootloader unlocked” warning that was displayed before you relocked the bootloader.
You have successfully relocked the bootloader.
myapky said:
9) Now the phone won’t show the “bootloader unlocked” warning that was displayed before you relocked the bootloader.
Click to expand...
Click to collapse
No success. I'm following the method shown in this thread
Edit: Reboots are fixed after I wiped data before flashing the images
myapky said:
1) Download Zenfone_Max_M1_Pro_Relock.zip and extract it to a folder on your desktop.
2) Power off your phone. Then press Power and Volume Down key together, to boot into fastboot mode.
3) Connect your Asus Zenfone Max Pro M1 to the PC using a USB cable.
4) Windows will now automatically detect the device and start installing the fastboot drivers for it. If not, download and install these ASUS drivers.
5) Open the directory where you extracted the file from #1.
6) In that directory, open a file named relock_bl.cmd
7) A Command (CMD) prompt will do the rest of the work for you.
Let the phone restart.
8) It will then erase all the data on your phone (excluding Micro SD card).
9) Now the phone won’t show the “bootloader unlocked” warning that was displayed before you relocked the bootloader.
You have successfully relocked the bootloader.
Click to expand...
Click to collapse
IF YOU ARE ON THE LATEST FIRMWARE THEN THE ABOVE STEPS WORK, I CANNOT POST LINKS HERE AS I'M NOT ABLE TO.
MY PHONE FIRMWARE : Version WW-14.2016.1804.305
CONFIRM YOURS............!!!!
myapky said:
WW-14.2016.1804.305
Click to expand...
Click to collapse
OPM1.WW_Phone-14.2016.1804.305-20180521
Check this [GUIDE][Back-To-Stock] Flash Stock ROM
CHECK THIS : https://forum.xda-developers.com/showpost.php?p=76695194&postcount=95
Download stock recovery availbale at xda forum.
Than download the official latest firmware 1.4GB from asus website and place in external sdcard.
Flash stock recovery with fastboot method. Boot into recovery and flash the firmware zip..it will automatically encrypt your internal data.
SINGHYAR.
myapky said:
CHECK THIS : https://forum.xda-developers.com/showpost.php?p=76695194&postcount=95
Click to expand...
Click to collapse
This got my device into Red State with message "Your data is corrupt". Unlocked bootloader again, will try this method by installing system, boot, recovery and vendor partition images
That script is working for me, but I installed the images of the csc zip which was indonesian edition. Trying again with ZB601KL images
Thanks @myapky! Phone is now having a locked bootloader
Can I relock bootloader after installing Magisk?
Sourav-21 said:
Can I relock bootloader after installing Magisk?
Click to expand...
Click to collapse
You should lock bootloader only on stock recovery without root and with no system modification (like uninstall of system apps, property file change).
If you lock the bootloader with custom recovery or modified system then if OTA messes up boot or any other partition .. you have no way to fix it.
Also .. only locking the bootloader will not fix OTA .. as any OTA patching boot.img will mess your Magisk anyway .. so keep bootloader unlocked if you have modifications.
.A.V.i.n.a.S.h. said:
You should lock bootloader only on stock recovery without root and with no system modification (like uninstall of system apps, property file change).
If you lock the bootloader with custom recovery or modified system then if OTA messes up boot or any other partition .. you have no way to fix it.
Also .. only locking the bootloader will not fix OTA .. as any OTA patching boot.img will mess your Magisk anyway .. so keep bootloader unlocked if you have modifications.
Click to expand...
Click to collapse
Thank you. I forgot that Magisk patch the system.img. In old days superSU just modify the system partition.
I want to relock the bootloader only for the irritating Warning message at the startup. Is there any way to stop that message like moto G?
Sourav-21 said:
Thank you. I forgot that Magisk patch the system.img. In old days superSU just modify the system partition.
I want to relock the bootloader only for the irritating Warning message at the startup. Is there any way to stop that message like moto G?
Click to expand...
Click to collapse
It appears on custom ROM as well .. so not sure about any way to block it.
If i unlock via official app and when some update available and I download & flash by stock recovery will it work?
Another question is if I install custom rom then how can I back in stock rom?
Ariful Hasan Soikot said:
If i unlock via official app and when some update available and I download & flash by stock recovery will it work?
Another question is if I install custom rom then how can I back in stock rom?
Click to expand...
Click to collapse
Recommended to UNLOCK unofficially - using this Guide.
If you have unlocked officially then you will not get OTA update notification.
To update (if you are on stock system without modifications like TWRP, Root etc..),
Download full firmware from ASUS official site ( ZBL601KL OR ZBL602KL ) and try to unzip it once to check for file errors.
If no issues in unzip then keep the file in base path of Internal storage.
You will get a message like System Update file detected (if not then reboot and check).
Select the notification and authorize to update. DONE.
To revert back to Stock from Custom roms - use this GUIDE or follow the method in this thread
.A.V.i.n.a.S.h. said:
Recommended to UNLOCK unofficially - using this Guide.
If you have unlocked officially then you will not get OTA update notification.
To update (if you are on stock system without modifications like TWRP, Root etc..),
Download full firmware from ASUS official site ( ZBL601KL OR ZBL602KL ) and try to unzip it once to check for file errors.
If no issues in unzip then keep the file in base path of Internal storage.
You will get a message like System Update file detected (if not then reboot and check).
Select the notification and authorize to update. DONE.
To revert back to Stock from Custom roms - use this GUIDE or follow the method in this thread
Click to expand...
Click to collapse
I don't understand about base path of internal storage. Plz can you show a screenshot or make clear about which folder i have to put full firmware?
Ariful Hasan Soikot said:
I don't understand about base path of internal storage. Plz can you show a screenshot or make clear about which folder i have to put full firmware?
Click to expand...
Click to collapse
Just keep the file in Internal storage and not under any folder/directory in Internal Storage.
In Internal Storage you should have ..
Android (directory)
DCIM (directory)
Download (directory)
WhatsApp (directory)
..... etc
UL-ASUS_X00T-WW-14.2016.1804.252-user.zip (file)
Remember that the current UL-ASUS_X00T-WW-14.2016.1804.305-user.zip file on https://www.asus.com/in/Phone/ZenFone-Max-Pro-ZB601KL/HelpDesk_BIOS/ is corrupted.
You can download UL-ASUS_X00T-WW-14.2016.1804.252-user.zip from here - https://androidfilehost.com/?fid=674106145207491520

Update without relocking the bootloader

Hello everybody,
is there a possibility to install the updates for a rooted P10 Lite without relocking the bootloader?
When I installed the first OTA updates for the phone, the bootloader wasn't relocked afterwards. But last time (last update before the Android 8 update) the bootloader was locked after update, so I had to reset my phone to root it again. Of course I create regular backups of my phone, but it was much work anyway. The bootloader will be locked after installing the Android 8 update again, isn't it?
If so, is there any other way of updating the P10 without relocking the bootloader?
Under /data/update/HwOUC/ I found an update.zip with a size of 1.8 GB. It contains a file VERSION.mbn which contains a line "WAS-LX1A 8.0.0.362(C432)". This fits to the version displayed by the OTA update manager. Can I just flash this update.zip using TWRP to update to Android 8?
Thanks in advance!
I'm not sure if you can flash update.zip in TWRP. I've tried such flash a long time ago with TWRP and Android 7 and it didn't works at all!
My bootloader is unlocked all the time. If there's an update I do that:
Turn Off you phone then Press and Hold Vol Down button and connect the phone to PC (Bootloader mode)
Links to all files you need: https://mega.nz/#F!TNQiFDrS!LeWgM5bukSz66UEL5zE1Tg
1. Flash stock recovery: fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
2. Reboot to system and go to Setting and try to update phone
3. Install FullOTA update (only FulIOTA can be installed if you phone is rooted)
4. Boot into Bootloader mode
5. Flash TWRP again: fastboot flash recovery_ramdisk TWRP.img (I use TWRP 3.2.1-0 by Pretoriano80 and everything works well: data decryption, backups, etc.)
6. Flash patched boot img file (Magisk root): fastboot flash ramdisk patched_boot.img
But if you need only root then you don't need TWRP at all.
Use stock recovery all the time and install FullOTA update without any problems then go to Bootloader and flash the patched boot file for Magisk after every update! That's all.

Categories

Resources