How To Guide Repair ROG Phone 5S through edl firmware, no need to unlock Bootloader to modify COUNTRY CN to WW

Search This thread

treicktk

New member
Jun 25, 2011
2
0
Guys please help me

I need to restore the phone's IMEI because it lost

It is not clear how to do !!!!
""""
Include these 10 files:“persist.img factory.img modemst1 modemst2 asuskey4 fsg fsgCA fsc fsgCA2 fsgCA3”

Normally, you don’t need to restore these files. If your fingerprint or imei is lost and you need to restore these files to your phone,

please flash the ENG firmware, then put these 10 files into the ROG 5S folder, and double-click to open " Restore.bat" can be restored to your phone.""""

Did anyone need to restore the backup? as you did? i really need help
 

treicktk

New member
Jun 25, 2011
2
0
Guys please help me

I need to restore the phone's IMEI because it lost

It is not clear how to do !!!!
""""
Include these 10 files:“persist.img factory.img modemst1 modemst2 asuskey4 fsg fsgCA fsc fsgCA2 fsgCA3”

Normally, you don’t need to restore these files. If your fingerprint or imei is lost and you need to restore these files to your phone,

please flash the ENG firmware, then put these 10 files into the ROG 5S folder, and double-click to open " Restore.bat" can be restored to your phone.""""

Did anyone need to restore the backup? as you did? i really need help
Another thing I noticed is that when the cell phone turns on. I put it in debug.
But restoring backup is not allowed
1647882522890.png
 

RT3K

Member
May 14, 2022
6
1
I have successfully completed the tutorial, but I cannot install the latest firmware from Asus. I have packed the downloaded firmware into the internal memory of the device, but I always get an error message. Everything else works without problems.
 

proven122

Member
Mar 25, 2014
19
0
*problem solve*
another problem is the hardware stub service because my phone are cn > ww .. any idea to bypass or disable the notification?
 

pelmen_naemnik

New member
Mar 26, 2014
1
0
I have completely restored the phone, which was in EDL mode only, but now I see message, "The installed firmware does not match the device origin. lease note that you may not receive any FOTA udate"
What step I missed? How to reair it?
 

Attachments

  • Screenshot_20220529-150847654.jpg
    Screenshot_20220529-150847654.jpg
    179.2 KB · Views: 19

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    These materials can only be used for ROG Phone 5S_ZS676KS, and ROG Phone 5_ZS673KS cannot be used. I will release the materials for ROG 5 separately.

    ROG Phone 5 ZS673KS Please see here:https://forum.xda-developers.com/t/...ootloader-to-modify-country-cn-to-ww.4353865/

    If your ROG Phone 5S ZS676KS only has edl mode (port 9008), then this tool can help you repair your phone through edl mode.

    Or if you want to modify COUNTRY, flash the firmware of WW, you don't need to apply to unlock the Bootloader,

    you don't need ROOT, just follow me.

    1.Connect the phone to the computer through the USB port on the left, enter the fastboot mode,

    and then open "Reboot-to-edl.bat" to enter the edl mode. Or enter fastboot oem enter-dload in cmd.


    2.You must flash in the ENG firmware that I modified. If you find the firmware online,

    you may lose your fingerprint and IMEI after flashing.

    Method 1: The phone enters edl mode, and when you see port 9008 in the device manager,

    open the ENG folder--open "0-update_image_EDL.bat"

    Method 2: The phone enters edl mode, and after you see port 9008 in the device manager, use the XiaoMiFlash tool to flash in.

    Method 3: The phone enters edl mode, and after you see port 9008 in the device manager,flash in through the QPST tool.


    3.After flashing in the firmware and successfully booting up, be sure to back up your phone partition files. If your phone's fingerprint is lost or IMEI is lost,

    it can be restored to normal. If you don't have a backup, it will be very troublesome.

    Double-click to open "Backup.bat", it will automatically back up your phone partition files, you need to save these files, follow-up will definitely help you.

    Include these 10 files:“persist.img factory.img modemst1 modemst2 asuskey4 fsg fsgCA fsc fsgCA2 fsgCA3”

    Normally, you don’t need to restore these files. If your fingerprint or imei is lost and you need to restore these files to your phone,

    please flash the ENG firmware, then put these 10 files into the ROG 5S folder, and double-click to open " Restore.bat" can be restored to your phone.

    4.If your machine is an global version, after backing up and saving 10 files, directly enter the fastboot mode, open the WW folder-open "flash_raw_and_wipe_data.cmd" to flash the WW firmware, and successfully repair your ROG 5S.

    If you cannot flash the firmware in fastboot mode, the prompt: fastboot error CID () Mapping wrong Xrom!

    You can Double click to open"Open-Cmd.bat",Then enter the commands, enter fastboot -v flash all xx.raw

    xx.raw is the firmware on your computer, for example: fastboot -v flash all C:\Users\johnny\Desktop\ROG5\WW\WW_ZS673KS_18.0810.2101.95_M2.13.24.9-ASUS_1.1.46_Phone-user.raw

    ASUS:
    version display asus fastboot version and list support project.
    -v flash all : disable asus raw id checking.
    -g flash all : disable repartition.
    -C flash all : disable CRC_<partition>.

    If your machine is the CN version, and you want to flash into the WW Firmware, but don’t want to unlock the BootLoader, you can use WinHex to open the persist.img you just backed up,

    find COUNTRY, change CN to WW and save it, and you can directly restore it to your phone through the dd command Inside, there is no need to unlock or install magisk.

    Double click to open"Open-Cmd.bat",Then enter the commands one by one

    adb push persist.img /sdcard/

    adb shell

    su

    dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist

    Then enter the fastboot mode, open the WW folder-open "flash_raw_and_wipe_data.cmd" to flash the WW firmware.

    File Downlaod Link:https://drive.google.com/file/d/1XiPOy4UyAK7VJNygvVJuq16IRy3V6Wmr/view?usp=sharing
    YouTube:

    I have also studied Hardwaresub Services for a long time, ROG1/ROG2/ROG3 only need to modify COUNTRY, CN to WW, and then flash into the global version,

    there will be no such prompt. In addition to modifying COUNTRY, ROG 5 also needs to modify asuskey4.

    In this partition, clear the imei, then there is no prompt. But I can’t do anything with ROG 5S.

    This machine verifies modemst1 and modemst2. I tried it for a long time, but I couldn’t get rid of the prompt except for the whitelist.

    If your ROG3/ROG5/ROG5S is the CN version, but you have flashed the WW firmware, you cannot unlock the Bootloader, or you are prompted to unlock successfully, but the Bootloader is still not unlocked after restarting, you can write the correct SSN and ISN of the phone Go to asuskey4, then restore to the phone partition, and then use the official unlocking tool to unlock it.
    1
    Hi,
    I don't reboot to edl
    FAILED (remote: 'Command not supported in default implementation')
    fastboot: error: Command failed

    no root,
    no unlock bl.
    CN rog5s

    Thanks

    Wrong fastboot. Reboot to the bootloader, not fastbootd
    1
    It seems like I am always finding something new, even when I have access to my phone now.

    My storage is only 64 gb out of the 256 gb it normally has. Any idea how to fix this issue?


    Edit, found the fix.

    Step 1. I had to ensure that I made a back up of the 10 files stated in the instructions. This is important as not having these files will probably brick a phone.

    Step 2. I deleted the extra partitions by setting the "erase all before download" and "reset after download" under "configuration" in the qfil app. Then I did the installation process using qfil.

    It did not install correctly, but it was not the point of the process, the point was to delete all hidden partitions.
    This deletes the 10 files from the phone as well (I think) and this is why the 10 files are important.

    Step 3. I put my phone into edl mode via the reboot to edl .bat file you provided.

    Step 4. I used the 0-update_image_edl.bat file to do the first part of the firmware installation process.

    It rebooted and showed the page of the phones information. I thought this meant it kept all it's information, but this is a lie.

    Step 5. At this point I placed all 10 files in the same folder as the restore.bat file

    Step 6. I pressed the restore.bat file and it installed the 10 files.

    Step 7. I then proceeded to do the second part of the installation by pressing the "flash_raw_and_wipe_data" file under "ww"

    This installed the firmware and rebooted my phone. Now I have all my storage back.


    //////////////////////////////
    Note:

    If the process above doesn't work for someone else. The thing that might have fix my phone could have been changing the setting in the "partition setting" under "configuration" in the "qfil app" that actually deleted the other partitions.
    I think I set "customize physical partition" and "active partition number" to 1.

    I did this right after saving my 10 files and before using the qfil app to attempt to install the first part of the firmware installation to my phone. This process would replace step 2. on this post.
    1
    Wrong fastboot. Reboot to the bootloader, not fastbootd
    Thank you very much. I successfully swiped into ww and now I am trying to change COUNTRY. thx :)
    1
    No more booting possible, only the android logo flashes briefly, also no restart bootloader or recovery mode possible! what can I do?? thanks
    I had something similar happen.
    Does the computer register it as a device that can be seen or connected? If it DOES NOT CONNECT TO THE PC AT ALL, let it sit on the android logo while it is connected to the computer. In about 15 to 20 minutes it should reboot into a recovery mode like state and the PC will pick it up, something that didn't work when you attempted to use the androids power and volume buttons. It should say a few things and have about 2 options that say

    1. delete files
    2. reattempt

    DO NOT SELECT ANY OF THOSE OPTIONS!!!

    Instead, keep the phone plugged in and do not turn off the phone. Place it back into edl mode using adb or the "Reboot-to-edl.bat" file and attempt to reinstall the first portion of the firmware using the "0-update_image_EDL.bat" file.

    (Note: You might need to mess with the device manager settings on your PC for the phone. The phone needs to have the ADB Driver to reboot to edl. After your phone gets into EDL mode, you may need to then set your phone to run with the qualcomm driver on your PC's device manager setting to allow you update the image edl. )

    then after that fully installs, go to the next step which is the backing up the 10 files. This is the "Backup.bat" file.
    This is important. If you fail to do this, you could end up bricking your phone as installing new firmware has a possibility of deleting your phones identity "IEMI" and without this info, your phone will not work. Make sure you keep this file even after you fully installed your software.

    After downloading those 10 files. Go to the next step which is. pressing the "flash_raw_and_wipe_data.cmd" file in the WW folder.

    (NOTE:

    If this doesn't work, it probably means the IEMI information was deleted. Do not pay attention to what is shown on the android screen itself, the battery life and all the info on the screen is incorrect!! It might say something like you have 6000 mah of battery when in actuality you have 5 mah of battery. You will probably have to redo the installation and press the " Restore.bat" file after fully installing using the "0-update_image_EDL.bat" file. If you already have the 10 files, you do not have to resave the 10 files, as you already have them all.

    In order to use the restore bat file. All 10 files have to be in the same folder as the "restore.bat" file, prior to pressing the "restore.bat" file.)