FORUMS
Remove All Ads from XDA

Unroot and relock bootloader Asus Zenfone Max Pro M2

114 posts
Thanks Meter: 185
 
By legacy07, Senior Member on 3rd January 2019, 08:51 AM
Post Reply Email Thread
Disclaimer :
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed.
If you point the finger at me for messing up your device, I will laugh at you. Hard. A lot

<Device will be formatted, so keep a backup >


Requirements :
Unofficially unlocked, Rooted Asus Zenfone Max Pro M2 with TWRP installed
Windows / Linux

Instructions :

//relocking
- Download the latest OTA firmware from Asus official website [turn off your VPN and head to asus.com > Products > Phones > Zenfone Max > Zenfone Max Pro (M2) > SUPPORT > Drivers and tools > Bios and Firmware ]
- Extract the firmware zip and go to > META-INF > com > google > android
- open updater-script with a note editor preferably notepad++
- Remove all the lines (assert/abort lines) above the code
Code:
ui_print("Target: Android/sdm660_64/sdm660_64:X.X.X/XXXX/XX.20XX.XXXX.XXX-20XXXXXX:user/release-keys");
You should be very carefull that you downloaded the correct(sku) firmware for your device, else doing this might brick your device
- Save it, rezip the firmware and copy it to sdcard
- Download and extract "Relock" zip
- Copy stockrecovery.img to sdcard
- Go to "adb + asus drivers" folder and install ADB and necessary drivers
- Flash TWRP, if you are on any other recovery
- Boot into recovery > install > flash the firmware zip
- Reboot to recovery, if custom recovery comes again, install > image file > stockrecovery.img > as recovery > flash > Reboot to bootloader
- Go to "relock" folder, open an elevated command prompt (admin) and enter :

Code:
fastboot devices
(device should be listed)
now execute relock_bl.cmd (windows) or ./relock.sh (linux)

Device will boot up without unlocked bootloader warning.
To check if bootloader is locked, go to fastboot and enter :
Code:
fastboot oem device-info
Thats it, bootloader relocked!

Credits
@Sudeep Duhoon
@legacy07

Downloads:
Relocker
TWRP
The Following 13 Users Say Thank You to legacy07 For This Useful Post: [ View ] Gift legacy07 Ad-Free
 
 
3rd January 2019, 09:12 AM |#2  
Shantanu's Avatar
Senior Member
Flag Thane
Thanks Meter: 283
 
More
Was wondering if it is possible to not have that "bootloader is been unlocked" or something warning while booting the phone. I remember it was possible on Zenfone 2 by flashing some splash.img
3rd January 2019, 11:09 AM |#3  
Member
Thanks Meter: 6
 
More
Instead of newness trying to edit the firmware and end up in bricking their phone, one of you experts can edit the Indian version firmware zip and upload in any of the mirrors ...
3rd January 2019, 11:21 AM |#4  
kickyvivi's Avatar
Senior Member
Flag Trivandrum
Thanks Meter: 470
 
More
Quote:
Originally Posted by arth_vish

Instead of newness trying to edit the firmware and end up in bricking their phone, one of you experts can edit the Indian version firmware zip and upload in any of the mirrors ...

Xda is all about learning all the best
3rd January 2019, 03:47 PM |#5  
Senior Member
Thanks Meter: 314
 
More
Has any Indian user successfully unofficially unlocked bootloader and relocked it.

Please Confirm
3rd January 2019, 11:49 PM |#6  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by sachinm

Has any Indian user successfully unofficially unlocked bootloader and relocked it.

Please Confirm

Yes
5th January 2019, 08:43 AM |#7  
Senior Member
Thanks Meter: 26
 
More
as right now, only firmware for India SKU is released on official Asus website.
I wonder when will Asus push FOTA for another country
5th January 2019, 09:28 AM |#8  
Junior Member
Thanks Meter: 0
 
More
Is this work with another Sku or only indian?
5th January 2019, 10:47 AM |#9  
kickyvivi's Avatar
Senior Member
Flag Trivandrum
Thanks Meter: 470
 
More
Quote:
Originally Posted by Aljavary

Is this work with another Sku or only indian?

The method will work but you will need the stock rom for your region.
7th January 2019, 03:25 PM |#10  
Senior Member
Flag Kanpur
Thanks Meter: 328
 
Donate to Me
More
relock.sh for linux system. Just put it in relock folder and Rename relock.txt to relock.sh then run(sudo ./relock.sh) through the terminal(sudo chmod -R +777 relock.sh ===> run this before running relock.sh). Say thanks if you want.
Attached Files
File Type: txt relock.txt - [Click for QR Code] (2.0 KB, 198 views)
The Following 4 Users Say Thank You to Dhairy For This Useful Post: [ View ] Gift Dhairy Ad-Free
9th January 2019, 03:12 PM |#11  
Member
Thanks Meter: 14
 
More
hello, can anyone here please post the link of this "latest OTA firmware from Asus official website"? i have unlocked my phone unofficially and now wants to relock it. but cant find that official ota link. thanks.
my current firmware is OPM1.WW_Phone-15.2016.1812.179-20181227
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes