[GUIDE] [UNBRICK] [BACK_TO_STOCK] Flash Stock ROM - Relock Bootloader - Remove TWRP

AVinaSh_S

Senior Member
Nov 30, 2017
618
1,589
113
Code:
[B]NOTE : [/B]PROCEED AT YOUR OWN RISK. Guide tested successfully to flash [U]Stock WW-15.2016.1810.334[/U] on primary device. Also I will try to help out in case of issues.
This GUIDE is useful to achieve following,
  1. Unbrick your device
  2. Flash Stock Rom
  3. Remove TWRP / flash stock recovery
  4. Lock the bootloader
  5. Enable OTA ( if you have unlocked using Asus official bootloader unlock tool then you will not get OTA )
Files Needed are,
Steps to be followed,
  1. Charge your device to more than 50%.
  2. Remove all password protections - select SWIPE to unlock.
  3. Create a new folder which does not have any spaces in folder name as well as folder path.
  4. Download Fastboot Firmware and Drivers to above folder & extract both zips which will give you 2 new folders .. one for each.
  5. Connect device to Computer and Install drivers based on your system. [ General process, go to windows Device manager --> Select Android device --> right click and select update driver --> browse to base path where the drivers are extracted and select it .. wait for windows to finish and show success message. ]
  6. Enable USB debugging. Connect device to PC and open shell in ADB. Type adb devices it should list your phone.
    You should be able to see results just like below before you proceed,
  7. Boot into fastboot mode & connect to PC. [ For fastboot mode, turn the device off then Press power+Volume Up until you see Asus logo OR use command adb reboot bootloader as shown in above screenshot. ]
  8. Open firmware folder and click on flashall_AFT.cmd & wait for the device to restart on its own. Takes about 5 min so be patient.
  9. Setup your device.
  10. You will have System update notification after that. Install OTA and enjoy.
    ALTERNATE
    You can download the recovery firmware from above links and put it in Internal Storage (DO NOT keep it inside any folder.).
    You will get system update file detected message. Click on it to update.
  11. If you want to uninstall few of the stock apps without ROOT access then refer to my other post HERE.
 

Attachments

Last edited:

jide1

Senior Member
Oct 30, 2015
602
175
63
kharkiv
This GUIDE is useful to achieve following,
  1. Unbrick your device
  2. Flash Stock Rom
  3. Remove TWRP / flash stock recovery
  4. Lock the bootloader
  5. Enable OTA ( if you have unlocked using Asus official bootloader unlock tool then you will not get OTA )
  6. Downgrade firmware
Applicable for,
  • Model : ZB601KL (try on ZB602KL on your own risk)
  • ROM : Does not matter - Stock or Custom (AEX,Lineage etc.)
  • Recovery: Stock / TWRP
  • Bootloader State : Locked / Unlocked
  • Root : Rooted / Non-rooted users
Files Needed are,
Prerequisites,
  1. Make backup of all your apps and data. Internal Storage will be formatted. External will be safe but better to back it up as well.
  2. Make a mind to take full responsibility of your actions. I have tested the solution on my personal device which was UNOFFICIALLY unlocked. But the risk is entirely yours if you follow the guide.
  3. Make sure you validate checksum of all downloaded files before proceeding.
Steps to be followed,
  1. Charge your device to more than 50%.
  2. Download Firmware and Drivers & extract both zips which will give you 2 folders .. one for each.
  3. Boot into fastboot mode & connect to PC. [ For fastboot mode, turn the device off then Press power+Volume Up until you see Asus logo. ]
  4. Install drivers based on your system. [ General process, go to windows Device manager --> Select device --> right click and select update driver --> browse to base path where the drivers are extracted and select it .. wait for windows to finish and show success message. ]
  5. Open firmware folder and click on flashall_AFT.bat & wait for the device to restart on its own. Takes about 5 min so be patient.
  6. Setup your device. You will have System update notification after that. Install OTA and enjoy.
  7. If you want to uninstall few of the stock apps without ROOT access then refer to my other post here.
Follow the spirit of XDA and hit THANKS if this actually helps you, so that future users also know that the method works.
U mean after flashing, the device bootloader gets locked again assuming it was unlocked initially (unofficially) ??
 

myapky

Member
Nov 2, 2017
48
21
8
Not working on new firmware kindly see my other post for relocking bootloader. I have also replied to you.

---------- Post added at 11:59 AM ---------- Previous post was at 11:58 AM ----------

i am going to create a detail process guide soon.
 

AVinaSh_S

Senior Member
Nov 30, 2017
618
1,589
113
Not working on new firmware kindly see my other post for relocking bootloader. I have also replied to you.

---------- Post added at 11:59 AM ---------- Previous post was at 11:58 AM ----------

i am going to create a detail process guide soon.
I was on OPM1.WW_Phone-14.2016.1804.305-20180521 then unlocked bootloader unofficially. Installed AEX rom. Tested it for 4 days.
Reverted with this method to 247 and updated again to 305. So it works on latest formware.

And if you do a compare of flashall_AFT.bat and unlock.bat (or relock.bat) the commands are one and the same. Partial code of flashall_AFT.bat is used for lock/unlock process. flashall_AFT.bat just have additional commnds to reflash recovery, system and other partitions.

Please create the guide .. at last we want a working process to revert back.
User will have success with at least one of the process :)
 
  • Like
Reactions: iamaboothahiru

myapky

Member
Nov 2, 2017
48
21
8
MY PROCESS WORK 100% FOR RELOCK BOOTLOADER TESTED !!

CURRENT FIRMWARE : OPM1.WW_Phone-14.2016.1804.305-20180521

AFTER UNLOCK BOOTLOADER DO THE FOLLOWING :

ASUS DRIVERS : FROM HERE https://androidfilehost.com/?fid=818222786056030820
FIRMWARE : DOWNLOAD CSC FACTORY IMAGE FROM HERE https://androidfilehost.com/?fid=962339331458995708. ZB610KL INDIAN VERSION.
EXTRACT THE ZIP FILE
AND EXTRACT RECOVERY.IMG FILE -(52MB) APPROX. ( FOR RECEIVING OTA)
FLASH IT WITH COMMAND : fastboot flash recovery recovery.img

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 + 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.

REMEMBER : LOCKED BOOTLOADER SHOWS = CSC FASTBOOT MODE ( TO VERIFY IF LOCKED OR NOT)

UNLOCKED BOOTLOADER SHOWS = FASTBOOT MODE AND WARNING WHILE BOOTING THE PHONE


---------- Post added at 12:42 PM ---------- Previous post was at 12:41 PM ----------

I was on OPM1.WW_Phone-14.2016.1804.305-20180521 then unlocked bootloader unofficially. Installed AEX rom. Tested it for 4 days.
Reverted with this method to 247 and updated again to 305. So it works on latest formware.

And if you do a compare of flashall_AFT.bat and unlock.bat (or relock.bat) the commands are one and the same. Partial code of flashall_AFT.bat is used for lock/unlock process. flashall_AFT.bat just have additional commnds to reflash recovery, system and other partitions.

Please create the guide .. at last we want a working process to revert back.
User will have success with at least one of the process :)

I get your process, first downgrade then upgrade to latest firmware, by this stock recovery is installed with bootloader locked. then update to latest firmware, but this process doesnt work on some phone as mine another guide i have posted it works and easy method if anyone knows about adb and fastboot.
 
Last edited:

myapky

Member
Nov 2, 2017
48
21
8
How to know our device is ZB601/ZB602 ?
Greetings
ASUS ZENFONE MAX PRO M1 - INDIAN VERSION IS ZB601KL ( PURCHASED FROM FLIPKART ) -ALL PURCHASED IN INDIA WITH VALID INDIAN BILL FOR WARRANTY.

ASUS ZENFONE MAX PRO M1 - INDONESIAN VERSION / GLOBAL VERSION IS ZB602KL (INTERNATIONAL WARRANTY)


REFER BELOW LINKS :

INDIAN SUPPORT SITE ASUS :https://www.asus.com/in/Phone/ZenFone-Max-Pro-ZB601KL/HelpDesk_Download/

INDONESIAN / GLOBAL SUPPORT SITE ASUS : https://www.asus.com/Phone/ZenFone-Max-Pro-ZB602KL/HelpDesk_BIOS/


---------- Post added at 06:03 PM ---------- Previous post was at 05:46 PM ----------

CHECK BOOTLOADER LOCKED OR NOT VIA ADB FASTBOOT METHOD (CMD) AND ALSO CHECK DEVICE & BOOTLOADER VERSION

IN FASTBOOT TYPE :

fastboot devices
fastboot oem device-info

RESULTS : AFTER LOCKED BOOTLOADER

#SN NUMBER fastboot

VERIFY MODE - TRUE
DEVICE UNLOCKED - FALSE (BL LOCKED), TRUE (BL UNLOCKED)
DEVICE CRITICAL UNLOCKED - FALSE (BL LOCKED), TRUE (BL UNLOCKED)
CHARGER SCREEN ENABLED - TRUE
BOOTLOADER VERSION - ZB601KL (INDIAN VERSION) -0x01
OKAY
FINISHED
 
Last edited:
  • Like
Reactions: atf2m4 and gusbalaa

gusbalaa

Senior Member
Aug 16, 2014
1,404
338
113
Klungkung, Bali
ASUS ZENFONE MAX PRO M1 - INDIAN VERSION IS ZB601KL ( PURCHASED FROM FLIPKART ) -ALL PURCHASED IN INDIA WITH VALID INDIAN BILL FOR WARRANTY.

ASUS ZENFONE MAX PRO M1 - INDONESIAN VERSION / GLOBAL VERSION IS ZB602KL (INTERNATIONAL WARRANTY)


REFER BELOW LINKS :

INDIAN SUPPORT SITE ASUS :https://www.asus.com/in/Phone/ZenFone-Max-Pro-ZB601KL/HelpDesk_Download/

INDONESIAN / GLOBAL SUPPORT SITE ASUS : https://www.asus.com/Phone/ZenFone-Max-Pro-ZB602KL/HelpDesk_BIOS/


---------- Post added at 06:03 PM ---------- Previous post was at 05:46 PM ----------

CHECK BOOTLOADER LOCKED OR NOT VIA ADB FASTBOOT METHOD (CMD) AND ALSO CHECK DEVICE & BOOTLOADER VERSION

IN FASTBOOT TYPE :

fastboot devices
fastboot oem device-info

RESULTS : AFTER LOCKED BOOTLOADER

#SN NUMBER fastboot

VERIFY MODE - TRUE
DEVICE UNLOCKED - FALSE (BL LOCKED), TRUE (BL UNLOCKED)
DEVICE CRITICAL UNLOCKED - FALSE (BL LOCKED), TRUE (BL UNLOCKED)
CHARGER SCREEN ENABLED - TRUE
BOOTLOADER VERSION - ZB601KL (INDIAN VERSION) -0x01
OKAY
FINISHED
Thanks. I have Indonesian version.
Got it
 

myapky

Member
Nov 2, 2017
48
21
8
will these methods work with official unlocking also?
Thank you
not tested,
but better to use unofficial method to unlock as : If u unlock through official method service support team, they have a count of imei & serial number (record) of ur phone which is unlocked , so u might lose warranty by using official method so better to try unofficial method.
 
  • Like
Reactions: Hrishikesh Patil

pranavsree00

Senior Member
Aug 14, 2016
118
16
0
I have a few questions
1.Will it remove the bootloader unlocked warning during boot
2.Can we do this step over a newer version of stock rom
3.do we have to unroot before flashing
4.ZB601KL is indian version or Indonesian
 

AVinaSh_S

Senior Member
Nov 30, 2017
618
1,589
113
I have a few questions
1.Will it remove the bootloader unlocked warning during boot
2.Can we do this step over a newer version of stock rom
3.do we have to unroot before flashing
4.ZB601KL is indian version or Indonesian
  1. Yes
  2. I did it today on v305 so yes .. it works .. just remember to enable usb debugging & check device is detected in ADB & fastboot as well.
    Commands to check device -
    adb devices
    fastboot devices
  3. Not needed but you can if you feel like it.
  4. 601 is INDIAN.
 
  • Like
Reactions: pranavsree00
Sep 6, 2013
33
6
8
not working. getting this messege
Begin fastboot flashall
------------------------
Earse Data: Yes
Support All device
FINDSTR: Cannot open max
FINDSTR: Cannot open pro
FINDSTR: Cannot open m1\WW_ZB601KL_14.2016.1802.247_20180419_AFT\\platform.txt
FINDSTR: Cannot open max
FINDSTR: Cannot open pro
FINDSTR: Cannot open m1\WW_ZB601KL_14.2016.1802.247_20180419_AFT\\current-slot.txt
 

AVinaSh_S

Senior Member
Nov 30, 2017
618
1,589
113
not working. getting this messege
Begin fastboot flashall
------------------------
Earse Data: Yes
Support All device
FINDSTR: Cannot open max
FINDSTR: Cannot open pro
FINDSTR: Cannot open m1\WW_ZB601KL_14.2016.1802.247_20180419_AFT\\platform.txt
FINDSTR: Cannot open max
FINDSTR: Cannot open pro
FINDSTR: Cannot open m1\WW_ZB601KL_14.2016.1802.247_20180419_AFT\\current-slot.txt
Please keep the files in the path which does not have spaces.
If you have a folder named max pro m1 then rename it to MaxProM1.
Also before clicking on flashall_AFT.bat check that device is detected in fastboot mode by fastboot devices command.

I think the command line arguments are not working due to whitespaces in directory/folder name.
 
Last edited:

m_m97

Member
May 31, 2017
23
0
0
latest indian ota WW-14.2016.1804.305 showing error

rs
sir
i unlocked bootloader official and after two day get back to stock rom because i unlocked it official i got not ota updates but i flash update manually one ota is (WW-14.2016.1804.252)sucessfully update, one which is latest(WW-14.2016.1804.305) is showing error on the time while phone reboot to flast update Also The latest update file is not extract on pc
??
???
 
Last edited:
Sep 6, 2013
33
6
8
Please keep the files in the path which does not have spaces.
If you have a folder named max pro m1 then rename it to MaxProM1.
Also before clicking on flashall_AFT.bat check that device is detected in fastboot mode by fastboot devices command.

I think the command line arguments are not working due to whitespaces in directory/folder name.
thanks. did what you said. it started but stuck here
Begin fastboot flashall
------------------------
Earse Data: Yes
Support All device
current-slot is current-slot
buildtype is build-type
--------------------------------
begin to flash partition xbl
target didn't report max-download-size
sending 'xbl' (2802 KB)...
FAILED (remote: unknown command)
finished. total time: 0.002s
done
--------------------------------
--------------------------------
begin to flash partition xblbak
target didn't report max-download-size
sending 'xblbak' (2802 KB)...