Unroot and relock bootloader Asus Zenfone Max Pro M2

Search This thread

legacy07

Senior Member
May 6, 2018
178
377
KL-34
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
 
Last edited:

Shantanu

Senior Member
Jul 14, 2013
1,001
285
Thane
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
 

arth_vish

Senior Member
Mar 19, 2015
64
7
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 ...:)
 
Feb 19, 2016
34
14
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
 

legacy07

Senior Member
May 6, 2018
178
377
KL-34
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

Go to asus.com > Products > Phones > Zenfone Max > Zenfone Max Pro (M2) > SUPPORT > Drivers and tools > Bios and Firmware
There you could find your firmware
 
Feb 19, 2016
34
14
Go to asus.com > Products > Phones > Zenfone Max > Zenfone Max Pro (M2) > SUPPORT > Drivers and tools > Bios and Firmware
There you could find your firmware

i already checked there. but its empty. there is no firmware file there at present. how did u guys download the firmware? there is nothing on that page.
 

legacy07

Senior Member
May 6, 2018
178
377
KL-34
hello thanks for tutorial
I following every step until unlocking bootloader (I dont know how to check it if my bootloader unlock properly?)
Then when installing twrp, this command appear

Code:
sending 'recovery' (59492 KB)...
FAILED (remote: Requested download size is more than max allowed

anyone facing this issue? how to solve it? thanks

This can happen if
1. Your adb drivers are not properly installed. You might need to reinstall the drivers
2. Bootloader may not be unlocked properly
3. You may not be flashing the right recovery file
 

vjbenn

Senior Member
Apr 4, 2013
56
3
This can happen if
1. Your adb drivers are not properly installed. You might need to reinstall the drivers
2. Bootloader may not be unlocked properly
3. You may not be flashing the right recovery file

I realized post at wrong thread :silly:
I never had issue before with another phone. try restart my PC, uninstall reinstall driver, try all my USB port, change USB cables, still didn't make it. Seems Google can't help me :rolleyes:

And this happen if I type on cmd "fastboot devices" and then "fastboot flash recovery blabla.img"
RhMKXUa.jpg


I'm on Windows 10 x64 + latest update from Asus + official unlock bootloader
 
Last edited:

Aljavary

Member
Dec 27, 2018
23
2
when i want to flash there a error notif "updater process ended with error:7 error installing zip file" bla bla bla, what should i do to fix it?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    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
    4
    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.
    2
    Somebody reply this thread..

    Wipe, restore the backup, and flash the stock recovery. But doing this is kinda stupid, as your data will be wiped anyways and have to do a hell lot of updating (if the backup is old) after relock. Also, if your back up was modified in someway, beware of the Red state.
    2
    I've bought this phone 3 months ago... Haven't done anything with it, just going on with official updates. Had slept one night with earphones on and the battery discharged totally... Now getting this warning whenever I restart my phone... What could have gone wrong?

    Unlock bootloader flash stock ROM and relock bootloader. If you don't have any idea about this, take it to service centre
    1
    Is that okay? Screen shot attached
    good. go ahead
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