[Updated][GUIDE]: How to unbrick your Zenfone 6 Android P/Q (ZS630KL)

Search This thread

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,283
7,857
Saint Paul, Minnesota
Hello.
This guide will help you unbrick your device in case your devices hangs as it boots, and always boots into fastboot mode and recovery is unavailable and the like.
Note: Unlocked bootloader is not required to do any of the actions described in this guide.
Disclaimer: I'm in no way responsible for the actions you perform and whatever happens to your device due to these actions. Proceed at your own risk.

This guide is roughly based on the one @_Kuroi_ made. I have stripped out the OTA updating portion because at least currently I have the latest firmware for android 9 and 10. If you need instructions for applying an ota please read the original thread.

Prerequisites:

Service Firmware (Full QFIL) Only for WW SKU
If anyone would like to mirror these feel free to just send me a message and I'll add it to the OP.

WW-16.1220.1909.194 (Last Android 9/Pie Version)
Here

WW-17.1810.2009.176 (Latest at the time of posting Android 10/Q Version)
Here

Platform tools of Android SDK.
Latest package can be downloaded from: Windows | Linux. Somewhat optional but good to have.


Step 1 - Preparing the environment
Download and extract either the Android 9 or Android 10 Service firmware. Depending on what your phone was running before it was bricked.


Step 2 - Flashing service firmware
  1. Connect your phone via USB
  2. Enter fastboot mode
    1.1 Turn off your device, then while holding down the volume up button press and hold the power button Release the power button when it powers up (keep holding the volume up button)
  3. Open CMD (windows) | Terminal (unix)
  4. CD into the folder with service firmware from item #2 from the step above.
  5. Make sure your phone is detected by typing fastboot devices/FONT]
    [*]Ensure battery is at least 20% charged. Aside from normal means, it's possible to check the battery charge via fastboot oem get-batcap.
    Sample output: (bootloader) bat cap = 35, which means that the battery is 35% charged.

    IMPORTANT NOTE BEFORE CONTINUING:
    By default, flashing with one of the scripts wipes your userdata, in other words, it performs a factory reset.


    [*]Run the script
    1. 1. Windows: In the CMD you opened earlier, type flashall.cmd[/COLOR]
    1. 2. Unix: In the Terminal you opened earlier, type ./flashall.sh
    Note: An obvious note, do not disconnect your device from your PC while flashall script is running. Your device will reboot a few times during the execution.
    [*]Once script outputs format logdump... and the phone reboots, service firmware will be flashed.


Your phone is now unbricked Congrats!

That's pretty much it. If you followed the steps above correctly, you should once again have a running phone.
If you have any questions, do not hesitate to ask.
Cheers.
 

1poweruser1

Member
Jul 21, 2020
44
11
Thanks for the files

I found some sites that might publish service fws

{Mod edit: Links removed - Oswald Boelcke, Moderator}

I was getting an error when I first tried executing flashall script
Code:
"flash boot boot.img   BEGIN"
fastboot: error: boot partition is smaller than boot image
"flash failed and exit"
fastboot: error: boot partition is smaller than boot image
"FLASH FAIL"
fixed by running update_edl script

I also got an error saying 'QMSL_MSVC10R.dll' is missing. That's Microsoft Visual C++ 2010 Redistributable.

I also got another error when running flash all script
Code:
.\flashall.cmd
Code:
"=========================================== "
" format "
"=========================================== "
"enable flash and erase"
"format ADF..."
fastboot: error: Cannot generate image for ADF
"Format ADF fail and try again."
0
fastboot: error: Cannot generate image for ADF
"Format ADF fail and try again."
1
fastboot: error: Cannot generate image for ADF
"Format ADF fail and try again."
2
fastboot: error: Cannot generate image for ADF
"failed and exit"
"format asdf..."
fastboot: error: Cannot generate image for asdf
"Format asdf fail and try again."
0
fastboot: error: Cannot generate image for asdf
"Format asdf fail and try again."
1
fastboot: error: Cannot generate image for asdf
"Format asdf fail and try again."
2
fastboot: error: Cannot generate image for asdf
"failed and exit"
******** Did you mean to fastboot format this f2fs partition?
Erasing 'userdata'                                 OKAY [  0.588s]
Finished. Total time: 0.607s
"wait for 30 seconds for bootloader to be ready..."
"reboot-bootloader..."
fastboot: error: Cannot generate image for ADF
fastboot: error: Cannot generate image for asdf
"failed and exit"
< waiting for any device >
Erasing 'userdata'                                 OKAY [  0.587s]
CreateProcess failed: %1 non è un'applicazione di Win32 valida. (193)
fastboot: error: Cannot generate image for userdata
"enable charging mode"
OKAY [  0.002s]
Finished. Total time: 0.003s
"turn off uart"
OKAY [  0.011s]
Finished. Total time: 0.011s
"turn off framdump mode"
(bootloader) *arg: n
(bootloader) GetForceRamdump(): false
OKAY [  0.013s]
Finished. Total time: 0.013s
"disable flash and erase"
"Download_PASS"
Rebooting                                          OKAY [  0.001s]
Finished. Total time: 0.006s
that's because I replaced fastboot of service fw with a newer fastboot exe

I upgraded to the latest android 11 version (UL-ASUS_I01WD-ASUS-18.0610.2101.132-1.1.1-user.zip) by placing the firmware file from asus download page to internal storage, rebooted, clicked on the notification saying an upgrade was available
changelog from asus website

I also found out from a thread in this section saying that you can use a script (vm03/payload_dumper: Android OTA payload dumper - GitHub) hosted on github to dump img files from the full ota that gets published from asus.
You only need termux app and then run
Code:
pkg install python

python -m pip install --upgrade pip

python -m pip install protobuf

python -m pip install bsdiff4

#gain access to storage where payload.bin is located
termux-setup-storage

python payload_dumper.py payload.bin

i got
Code:
Failed to load/authenticate boot image: Load Error
when rebooting the phone to twrp
Fixed by flashing boot and dtbo images to a/b slots

another problem was mtp not working when i pressed Format Data in twrp. Rebooting twrp again made mtp work again. adb sideload worked too
 
Last edited by a moderator:
  • Like
Reactions: MonGoosY

1poweruser1

Member
Jul 21, 2020
44
11
latest raw firmware is available on halabtech and kurdish firmware, search with google

WW_ZS630KL_18.0610.2101.132_M3.23.44.19_Phone-user.raw.zip

sadly both sites let you download it only if you pay

raw firmware should only be available to repair centers so all the zips you find have been leaked
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Hello.
    This guide will help you unbrick your device in case your devices hangs as it boots, and always boots into fastboot mode and recovery is unavailable and the like.
    Note: Unlocked bootloader is not required to do any of the actions described in this guide.
    Disclaimer: I'm in no way responsible for the actions you perform and whatever happens to your device due to these actions. Proceed at your own risk.

    This guide is roughly based on the one @_Kuroi_ made. I have stripped out the OTA updating portion because at least currently I have the latest firmware for android 9 and 10. If you need instructions for applying an ota please read the original thread.

    Prerequisites:

    Service Firmware (Full QFIL) Only for WW SKU
    If anyone would like to mirror these feel free to just send me a message and I'll add it to the OP.

    WW-16.1220.1909.194 (Last Android 9/Pie Version)
    Here

    WW-17.1810.2009.176 (Latest at the time of posting Android 10/Q Version)
    Here

    Platform tools of Android SDK.
    Latest package can be downloaded from: Windows | Linux. Somewhat optional but good to have.


    Step 1 - Preparing the environment
    Download and extract either the Android 9 or Android 10 Service firmware. Depending on what your phone was running before it was bricked.


    Step 2 - Flashing service firmware
    1. Connect your phone via USB
    2. Enter fastboot mode
      1.1 Turn off your device, then while holding down the volume up button press and hold the power button Release the power button when it powers up (keep holding the volume up button)
    3. Open CMD (windows) | Terminal (unix)
    4. CD into the folder with service firmware from item #2 from the step above.
    5. Make sure your phone is detected by typing fastboot devices/FONT]
      [*]Ensure battery is at least 20% charged. Aside from normal means, it's possible to check the battery charge via fastboot oem get-batcap.
      Sample output: (bootloader) bat cap = 35, which means that the battery is 35% charged.

      IMPORTANT NOTE BEFORE CONTINUING:
      By default, flashing with one of the scripts wipes your userdata, in other words, it performs a factory reset.


      [*]Run the script
      1. 1. Windows: In the CMD you opened earlier, type flashall.cmd[/COLOR]
      1. 2. Unix: In the Terminal you opened earlier, type ./flashall.sh
      Note: An obvious note, do not disconnect your device from your PC while flashall script is running. Your device will reboot a few times during the execution.
      [*]Once script outputs format logdump... and the phone reboots, service firmware will be flashed.


    Your phone is now unbricked Congrats!

    That's pretty much it. If you followed the steps above correctly, you should once again have a running phone.
    If you have any questions, do not hesitate to ask.
    Cheers.
    1
    Thanks for the files

    I found some sites that might publish service fws


    I was getting an error when I first tried executing flashall script
    Code:
    "flash boot boot.img   BEGIN"
    fastboot: error: boot partition is smaller than boot image
    "flash failed and exit"
    fastboot: error: boot partition is smaller than boot image
    "FLASH FAIL"
    fixed by running update_edl script

    I also got an error saying 'QMSL_MSVC10R.dll' is missing. That's Microsoft Visual C++ 2010 Redistributable.

    I also got another error when running flash all script
    Code:
    .\flashall.cmd
    Code:
    "=========================================== "
    " format "
    "=========================================== "
    "enable flash and erase"
    "format ADF..."
    fastboot: error: Cannot generate image for ADF
    "Format ADF fail and try again."
    0
    fastboot: error: Cannot generate image for ADF
    "Format ADF fail and try again."
    1
    fastboot: error: Cannot generate image for ADF
    "Format ADF fail and try again."
    2
    fastboot: error: Cannot generate image for ADF
    "failed and exit"
    "format asdf..."
    fastboot: error: Cannot generate image for asdf
    "Format asdf fail and try again."
    0
    fastboot: error: Cannot generate image for asdf
    "Format asdf fail and try again."
    1
    fastboot: error: Cannot generate image for asdf
    "Format asdf fail and try again."
    2
    fastboot: error: Cannot generate image for asdf
    "failed and exit"
    ******** Did you mean to fastboot format this f2fs partition?
    Erasing 'userdata'                                 OKAY [  0.588s]
    Finished. Total time: 0.607s
    "wait for 30 seconds for bootloader to be ready..."
    "reboot-bootloader..."
    fastboot: error: Cannot generate image for ADF
    fastboot: error: Cannot generate image for asdf
    "failed and exit"
    < waiting for any device >
    Erasing 'userdata'                                 OKAY [  0.587s]
    CreateProcess failed: %1 non è un'applicazione di Win32 valida. (193)
    fastboot: error: Cannot generate image for userdata
    "enable charging mode"
    OKAY [  0.002s]
    Finished. Total time: 0.003s
    "turn off uart"
    OKAY [  0.011s]
    Finished. Total time: 0.011s
    "turn off framdump mode"
    (bootloader) *arg: n
    (bootloader) GetForceRamdump(): false
    OKAY [  0.013s]
    Finished. Total time: 0.013s
    "disable flash and erase"
    "Download_PASS"
    Rebooting                                          OKAY [  0.001s]
    Finished. Total time: 0.006s
    that's because I replaced fastboot of service fw with a newer fastboot exe

    I upgraded to the latest android 11 version (UL-ASUS_I01WD-ASUS-18.0610.2101.132-1.1.1-user.zip) by placing the firmware file from asus download page to internal storage, rebooted, clicked on the notification saying an upgrade was available
    changelog from asus website

    I also found out from a thread in this section saying that you can use a script (vm03/payload_dumper: Android OTA payload dumper - GitHub) hosted on github to dump img files from the full ota that gets published from asus.
    You only need termux app and then run
    Code:
    pkg install python
    
    python -m pip install --upgrade pip
    
    python -m pip install protobuf
    
    python -m pip install bsdiff4
    
    #gain access to storage where payload.bin is located
    termux-setup-storage
    
    python payload_dumper.py payload.bin

    i got
    Code:
    Failed to load/authenticate boot image: Load Error
    when rebooting the phone to twrp
    Fixed by flashing boot and dtbo images to a/b slots

    another problem was mtp not working when i pressed Format Data in twrp. Rebooting twrp again made mtp work again. adb sideload worked too