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

Search This thread

ricashey

Member
Dec 2, 2020
6
0
Registered here in XDA just to say thank you! My phone variant is zb602kl. I just ran the .cmd and waited for my phone to restart. Everything is good now.

I rolled back to stock rom because of the safetynet check :3 I can't install my bank's app.
Hello did unlock with official asus unlock tool? Thank you..
 
Jan 23, 2018
7
0
São Paulo
I did it... black screen. What can I do?

1654040403385.png
 

ashjas

Senior Member
Feb 26, 2011
350
66
Updates : Latest Update (Optional for all, mandatory only if you have UNLOCKED officially)

Hi @AVinaSh_S ,
I have officially unlocked bootloader, and need to go back to stock.
I am a little bit confused about the above quoted point in the OP.
The asus website does not provide any latest update files, so what should i do about this step?

Secondly, i have these questions :
- will this method relock my bootloader? (i am absolutely fine with relock, as i need to claim exchange of this device against a new phone :))
- And does it matter on what stock ROM i previously was before i unlocked my bootloader officially (Though i am sure i was on whatever the latest asus OTA update version was, before it stopped supporting this device.)?

Thanks.
 

AVinaSh_S

Senior Member
Nov 30, 2017
668
1,628
Hi @AVinaSh_S ,
I have officially unlocked bootloader, and need to go back to stock.
I am a little bit confused about the above quoted point in the OP.
The asus website does not provide any latest update files, so what should i do about this step?

Secondly, i have these questions :
- will this method relock my bootloader? (i am absolutely fine with relock, as i need to claim exchange of this device against a new phone :))
- And does it matter on what stock ROM i previously was before i unlocked my bootloader officially (Though i am sure i was on whatever the latest asus OTA update version was, before it stopped supporting this device.)?

Thanks.
It won't matter which stock version you were on.
Flash the stock firmware with the steps and you would be with factory version of stock rom with locked bootloader.
 
  • Like
Reactions: ashjas

ashjas

Senior Member
Feb 26, 2011
350
66
It won't matter which stock version you were on.
Flash the stock firmware with the steps and you would be with factory version of stock rom with locked bootloader.
Thanks, went ahead to flash the ROM attached in OP. Confirm that this relocks the bootloader even if it was officially unlocked!
This clears some rumours that officially unlocked cant be relocked.
 
  • Like
Reactions: AVinaSh_S

Top Liked Posts

  • There are no posts matching your filters.
  • 78
    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,
      Capture.PNG
    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.
    7
    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.
    4
    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) ??
    3
    U mean after flashing, the device bootloader gets locked again assuming it was unlocked initially (unofficially) ??

    Yes .. you will have stock ROM + stock Recovery + Locked device + OTA ( if unlocked unofficially)
    3
    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.