yashsingh1/xdaforums huggingface dataset:
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] carabaothai:
Thanks but the file still not exist on website. Now only ww IN/RU

ANd i have read on Zentalk that some other people have same problem

EDIT : sorry it doesn't exist on the global Asus site

But on Europeans asus sites it exists. I will try
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] carabaothai:
Quote first post :

- Flash TWRP, if you are on any other recovery

- Boot into recovery > install > flash the firmware zip

Can i flash directly the P firmware ???? after have modified it or must i go back before to the O firmware modified and then update from O to P
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] manivenkat9991:
Yep u directly install pie frimware

(Only use TWRP don't flash in anyother recoveries)

My personal experience
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] badarivishal:
need help

when i execute the relock_bl.cmd , it doesnt complete, it just gets stuck in that step please help
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Jagonya Ayam:
is it works for Official Unlock Bootloader

hi..is this method works for official unlock bootloader from asus using Version UnlockTool ?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
If you have unlocked by official tool, there is no point in relocking, as the warranty is already void at the time of unlock process.

P.S : some users reported that this method of relocking works on officialy unlocked devices but success is uncertain.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Jagonya Ayam:
Thanks bro..so better I stay with custom ROM :D
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Arnabsanu:
I followed every step as mentioned in the op and successfully booted into stock rom, but there it is showing ' Fota service has stopped' and I am not getting any fota updates.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Arnabsanu:
Please help.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] S_R_B_Azad:
Already on Stock Pie ROM

I've only TWRP installed. Not rooted. I was on Havoc OS ROM and then came back to the stock ROM from the backup I did earlier. Can I directly flash the stock recovery ???? Or I have to follow the above steps too ??? Pls reply !!!!!
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] kimm13:
I've got android P,stock recovery,locked bootloader,but i cant remove red alert,any suggestion, please?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] anagramgenius:
https://xdaforums.com/asus-zenfone-max-pro-m1/how-to/guide-to-remove-device-corrupted-t3937991
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] kimm13:
Thx,red alert has removed,
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] VinayVins:
I have also this question, somebody reply please.

Somebody reply this thread..
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
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.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] sivagurunarayanasami:
Sir can i use this method on Asus Zenfone Max Pro "M1" ? [MENTION=9137453]legacy07[/MENTION]
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
M1 has its own unlock method, infact this tool was modified from M1 unlock tool.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] sivagurunarayanasami:
Thanks For reply sir,

need some clarification sir, can i follow this for relock bootloader
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
No. Follow M1 relock procedure
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] darek_vn:
Can I relock bootloader from 065 firmware? Or I have to update to buggy 067?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Prabhat69:
After relocking is fota update still arrived..?

Id anyone relock on this procedure plzz reply..

---------- Post added at 01:52 PM ---------- Previous post was at 01:51 PM ----------

Or once u unlock bootloader fota permanently gone disabled:confused:
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] TBC6:
Don't go back to stock. I relocked and flashed stock again and came to realise that stock has more bugs than Havoc or Arrow.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Prabhat69:
:laugh::D
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] poornendu.winni:
I tried the above but in the current stock rom I am unable to switch on Wi-fi and camera opening time is very sluggish, any one have an idea what can I do in this case.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Suvam Dutta:
i have unlocked my phone unofficially and now wants to relock it. but cant find that official ota link
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Uchiha9911:
Stuck here.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] TBC6:
Open CMD from the relock folder.

Open relock folder in file explorer go to addressbar type "cmd" and press enter. An elevated command prompt will open.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Uchiha9911:
i was doing the same. after i execute the relock cmd the bootloader mode turns black, i hear a removal tone on windows and nothing happens after that.:crying::crying:
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Imashishvasava:
recently i had unlocked boot loader with this tutorial and installed havoc os 3(android 10) in max pro m2 with TWRP and rooted with latest magisk. now i want to roll back to stock firmware downloaded from official asus website latest zip. but when i start flash twrp says "invalid zip format" ( i had edited updater script with note pad as shown in tutorial.)

(im on havoc os 3.0

build number QD1A.190821.014.C2

downloaded latest UL-ASUS_X01BD-WW-16.2017.1910.071-user.zip from asus website )

please help me:confused:
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] TBC6:
Seems like you missed something while creating a flashable zip.

https://xdaforums.com/max-pro-m2/development/rom-flashable-stock-pie-rom-0-64-t3928359

Try this zip
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Imashishvasava:
Thanks a lot ... Finally rolled back to stock pie firmware.:laugh:

Thank you
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] anoop4109:
Showing error invalid zip file

Brother, I have downloaded stock firmware from Asus official website. After that I extract it and edited it. Then, Add to archive as zip format. But when I flashed it through TWRP recovery installed on my phone, it is showing error i.e. invalid zip format.

Please help me with this.

Looking forward to your positive support
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] :
You should highlight all the files and right-click them to archive, as shown at the attached file.

And please, don't quote the whole thread for the God's sake!
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] aryo_adhi:
I wonder if anyone had tried this to unroot/relock (and maybe enable encryption again?) directly with latest Android 10 beta update. Maybe I'll just do it around from Android Pie to Android 10 for safety measures.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Kanhadas1995:
Encrypted

Mine twrp is getting encrypted and is not booting get stuck at zenphone logo then back to twrp where it asks for decryption password
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Imashishvasava:
i was on crdroid 6.7. when i tried to flash stock from Version WW-16.2017.2007.094 in my Asus max pro m2, everything was fine but when I booted the sensors not working( auto rotate,hotspot,and camera not working) . Bluetooth address is unavailable.

any solution for this? help me guys
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] DeathE@ter:
I have done exactly according to the steps, i did not encounter any error also. Now bootloader unlocked screen is also gone. But i think No OS is installed. When i boot my device it goes to fastboot screen. This is the stock recovery i have now.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Prabhat69:
Hy i modified firmware using mixplorer.

By not doing extract....did it worked.... anyone?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] dolly1979:
Can officially unlock m2 use this method to relock n get rid of unlocked device massage when boot?

After unlock my m2 with official method, i install orange recovery n stock mod pie rom.

Evrything is working but annoying massage pop up with every boot.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
If you are referring to the unlocked bootloader warning, you can relock and remove the warning, but you will miss the point of unlocking
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Imashishvasava:
it worked for me.

I did exactly the same, the zip file worked. don't extract it, just edit the script file in it
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Prabhat69:
Tbh custom rom are way better.... :laugh:

Tnx for sharing. :svetius:

Did update comes... Ota

Gib your telegram id or whatsapp no. So wecan chat:victory:
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Z-borg:
flashed latest firmware Version WW-16.2018.2009.71 and rebooted to recovery but phone is not starting no buttons are working LONG PRESS to power on or POWER + VOLUME DOWN, even charging is not showing. Please help have I bricked my phone

EDIT:

I was on Pixel Experience and trying to install stock rom
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
You flashed the wrong firmware of max M2 on max pro M2. You may unbrick by flashing edl firmware
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Z-borg:
I did that thanks anyway, :good:
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] ElielMeira:
Thank's mate!

It worked like a charm.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] aziz.chamadia:
My phone gets stuck at Asus logo for hours after successfully installing the firmware. I just want to revert back to stock from custom but hangs at Asus logo. I can flash any custom rom out there but just tried 097, 101 and 434 but none of them boot back to system and only stops at Asus logo. Please help me I don't want to relock boot loader and am using TWRP 5 and also tried with TWRP 4 just want stock rom with unlocked boot loader.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Vivek7899:
In my script file there is only 1 line above ui print should i have to remove this?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Imashishvasava:
if you have downloaded the correct zip for your model, just remove all lines above ui_print("Target: Android/s....... and then flash it. ( i used mix plorer app. just open zip and edit the script file and save it,no need to unzip and rezip )
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Vivek7899:
Is that okay? Screen shot attached
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Imashishvasava:
good. go ahead
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Vivek7899:
Can u tell me further steps for that.

I have copied firmware zip and stock recovery img in sd card

Will i have to wipe any data or directly install the zip file
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Imashishvasava:
no need to wipe, for detailed info goto 1st page of this thread
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] princebhat115:
Tried so many times but I'm getting stuck on Asus logo

Even I downloaded the firmware from official site

Need solution
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Seems like your driver is not installed properly
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] vjbenn:
still no luck. Uninstall reinstall drive, download another driver and try change another pc didnt work for me. Wondering if my phone cause this :confused:

Thank you for your reply anyway :)
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] kickyvivi:
Adb and fastboot interface is not setup correctly. Just setup the minimal adb and fastboot and also choose to install the drivers during that setup. Then connect the device. The device will install the drivers itself in most cases. You have installed some wrong drivers.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] wan_nomore:
How to flash the update file with twrp... And if i update fota.. UBL,TWRP and Root still there?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Aljavary:
Thx it work?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
No you can't flash OTA update on a rooted phone. But you can flash the full firmware as described in this guide.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] wan_nomore:
Already remove this line ui_print("Target: Android/sdm660_64/sdm660_64:X.X.X/XXXX/XX.20XX.XXXX.XXX-20XXXXXX:user/release-keys"); but cannot flash the firmware via PBRP recovery
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Ready the instructions carefully. It says delete lines

above

this code.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] watatara.102:
First 3 line is what you need to delete
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] wan_nomore:
Nice ..success now.. thanks bro
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] igkn:
any chances to get relock working while keeping custom ROM? If this device supports booting into yellow/orange state of verified boot, then it may be an option to try, just by flashing no-op vbmeta image for phh/aosp/los.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] rakesh_4utoo:
I have followed the steps but unable to flash the firmware from any recovery.

Deleted the lines above the code mentioned in OP and saved the zip but getting error while flashing .
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Mention the error
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] rakesh_4utoo:
with TWRP i am getting Updater process ended with error code 6.

---------- Post added at 11:28 AM ---------- Previous post was at 11:24 AM ----------

I just wanted my device on stock rom , i am not concern about boot loader status.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Probably you haven't deleted the assert / abort lines completely. Provide a log or screen shot of the error
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] arsanubari96:
i have done and do all of instuctrion there, but after i did flash stockrecovery and run relock_bl.cmd my device got restarted. Process erasing and reboot again, BUT i got RED STATE and it's says my phone is corrupted. Any solutions ? thanks :)
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Make sure you flashed the correct firmware sku
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] arsanubari96:
yes i flashed SKU WW and its correct when i compared to my phone firmware :(
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
try uncheck dm verity and flash the rom
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Akib Raj:
It was helpful

:good::good::good::good::good::good::good::good::good::good::good::good::good:
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] joshuaroilox123:
Tnx it relock my bootloader but booting to recovery with twrp gives me red state. With stock i dont have. Can you help me?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
You should use only stock rom/recovery for relocking
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] joshuaroilox123:
Tnx. I have no problem now. Used stock rom and recovery.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Apolle:
Obviously this is the most important Thread. Great Work!?

Kudos ?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] lemlis:
Great Work.All works good.Fota updates coming.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] Zahirpro2:
if i officialy unlock,can i go back relock bootloader?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] maneesharora:
Thanks for the mathod, 100% working. Back to stock rom with locked bootloader

---------- Post added at 11:38 AM ---------- Previous post was at 11:37 AM ----------

Thanks for the method, 100% working. Back to stock rom with locked bootloader
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] maneesharora:
Can anyon please provide stock recovery of .186
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Stock recovery is same for all the builds. You can get it from the link
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] maneesharora:
after relocking the bootloader with procedure provided, i am unable to flash Pie beta file, every time i flash the file & get the error.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] navtey:
OK here is the thing

How should I flash firmware?

after wiping which partition because I am getting a error

here is what am doing

1. wiping system,data,dalvik cache

2. Installing firmware file sucessfully

3.Flashing stock recovery

4.booting to bootloader

5.Relocking

Now device boots up there is logo of asus with "erasing"

Device reboots and there is

"RED STATE"

"Device Is corrupt and cant be trusted"

and gets stuck there

weird thing which I noticed is , If I unlock bootloader again , I can now boot into system.

---------- Post added at 03:16 PM ---------- Previous post was at 03:14 PM ----------

I am getting an error

"RED state device cant be trusted"please help
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Red state means your system is modified somehow. Use only twrp to flash, as other recoveries patches system automatically.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] nice_guy75:
[MENTION=9137453]#ArtFuL[/MENTION], when I flash stock ROM zip after editing the updater-sript and wanted to reboot my device into recovery to check if my device is on TWRP or stock recovery, TWRP says, "No OS install, do you still want to reboot." why this is so? My zip was flashed properly. That is not all, when I restored my backup and rebooted my device into system, it encrypted by data and TWRP is unable to read data of my internal memory. I want to unroot and relock my device as I have to claim warranty. Please help me.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] navtey:
Format your data

---------- Post added at 09:02 AM ---------- Previous post was at 09:01 AM ----------

Thanks again!
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] nice_guy75:
You mean after flashing zip of stock ROM I have to format data?

It is already showing no OS after flashing zip of stock ROM, is it ok and I can go ahead with the next stem which is "reboot to recovery" to check if my recovery is still TWRP or stock?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] navtey:
It showed same in my case "No Os installed"

1. Edit the Zip file as mentioned in thread

2. Flash the zip

3. Install stockrecovery image in recovery partition

4. Relock

If in any case you have "Enter password to access Data partition" just format it in wipe section because relocking will format it eventually so ig there's nothing to loose there.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] nice_guy75:
I flashed the zip after editing it, still it is showing "No OS Installed." though zip flashed properly without giving any error? So should I go ahead to "Reboot into Recovery" and check and eventually lock my bootloader in the end, without booting it into system? If I boot it into system it would encrypt my phone again if system happens to be there, and if no system is there then it will not boot at all in the system?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] navtey:
Yes go for next step it's alright !
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] theigk:
Unroot zenfone Max pro m2

i tried to relock bootloader it is showing error used this

asus.com/in/Phone/Zenfone-Max-Pro-M2-ZB630KL/HelpDesk_BIOS

Firmware only available also edited the updater-script but showing error INVALID ZIP FILE FORMAT.....

anyone anything any help
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] navtey:
Yes unmark the zip file verification on TWRP
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] theigk:
mine shows invalid zip format or error 7 sometimes any help....
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] nice_guy75:
[MENTION=9137453]#ArtFuL[/MENTION], you are right but the version of recovery is written in stock recovery, means a smart person would be able to understand if the phone has ever been rooted or not, or rooted and unrooted using this method. The recovery is version is not matching with the build number. So if you can provide v179 and v186 recovery then it would become difficult even for a smart person ko know if the bootloader has ever been unlocked or not.

PLEASE PLEASE PLEASE SOMEONE PROVIDE STOCK RECOVERY OF V179 AND V186.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Fota doesn't comes with a recovery and qpst/fastboot roms are not yet available. Also the version showing in the recovery is from build.prop. if you are on v186 firmware, it will show v186
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] nice_guy75:
No [MENTION=9137453]#ArtFuL[/MENTION], I have already tried, I flashed your recovery on v186 and it was not showing v186 in the stock recovery means what we see in stock recovery doesn't show from build.prop.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
Iam on v186 and it shows 186 on recovery.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] nice_guy75:
You might have flashed the zip of v186 which itself flashes the stock recovery of v186 with the zip flashing. If you flashed the stock recovery separately, please share the same stock recovery with us, may be that recovery is of v186 only.

I don't have any other mobile now. So I would flash your stock recovery which is there in your zip and post the picture of its version.

Thanks for all your replies.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] legacy07:
I used the exact same steps with v179 and upgrade to v186. Like I said before, FOTA doesn't comes with a recovery. Stock recovery has nothing to do with the version and shows the fingerprint from /system/build.prop.

I used the same recovery I shared here.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] ROMFACTORY:
Damm I have the same issue idk how this happened are you able to fix it
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] ROMFACTORY:
this issue was fixed by changing to usb 2.0 port or chang to laptop
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] carabaothai:
I cannot install TWRP (or other custom recovery) so i want to relock bootloader.

How can i flash the modified stock ROM if i don't have TWRP (or custom recovery) ????

From the stock recovery ??
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] anagramgenius:
Same thing happened to me after flashing the recovery provided in the OP. The provided recovery is v177. So I tried flashing the official v186 zip with stock recovery. But I had no luck. I removed lockscreen password. Rebooted the device. It said Android OS is updating. And when I booted back to the recovery, the recovery was changed back to v186. I hope this helps.
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] marcusxyro:
Just some notes for everyone doing this and having RED states and adb/fastboot problems (experienced them myself);

-Use TWRP, other recoveries will just patch other system files that will cause RED STATE.

-If adb/fastboot commands fail, try switching to USB 2.0 ports or use a laptop (laptop fixed my adb/fastboot problems)

Question, doe shaving different stock recovery ver (like v177) affect the system? (ota's) because I have the version v186.

EDIT: having different ver of stock recovery does not affect OTA updates :)
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] the_roy_thing:
man i have the same issue?

---------- Post added at 11:15 PM ---------- Previous post was at 10:54 PM ----------

is it possible to relock the bootloader if i unlock officially?
[Asus Zenfone Max Pro M2 Guides, News, & Discussion] watatara.102:
for what reason you want to relock your bootloader after you unlock it using official method?

to get OTA? don't bother, you can't get OTA if you had unlock it using official method