@ECHO OFF
SET LOG=image_update.log
For /f %%i in ('date /t') do set mydate=%%i
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a:%%b)
ECHO TIMESTAMP : %mydate%_%mytime% >>%LOG%
ECHO. >>%LOG%
ECHO ################################################################## >>%LOG%
ECHO ###################update images by flash_all.cmd################# >>%LOG%
ECHO ################################################################## >>%LOG%
ECHO. >>%LOG%
:: Set default soc id to SM8450
SET "soc_id=1"
echo Set boot up partition to a
.\fastboot.exe set_active a
:: To get project type from abl
FOR /F "tokens=2 delims= " %%a IN ('.\fastboot.exe getvar project 2^>^&1 ^| findstr project:') DO (
SET _project=%%a
)
echo Check project name…
IF NOT "%_project%"=="ROG_PHONE6" (
echo This is not rog6 and stopping downloading.
goto end
)
:: To get SOC ID from abl
FOR /F "tokens=5 delims= " %%a IN ('.\fastboot.exe oem get-socid 2^>^&1 ^| findstr SOC') DO (
SET soc_id=%%a
)
:: Update abl for gpt update issue
IF %soc_id%==1 (
echo Start downloading Texas images…
echo Start downloading Texas images… >>%LOG%
.\fastboot.exe flash abl abl.elf 2>>%LOG%
) ELSE (
echo Start downloading Dallas images…
echo Start downloading Dallas images… >>%LOG%
.\fastboot.exe flash abl dallas_abl.elf 2>>%LOG%
)
.\fastboot.exe reboot bootloader 1>>%LOG% 2>&1
timeout 6
.\fastboot.exe oem get-socid >nul 2>nul
echo Update NON-HLOS image…
IF %soc_id%==1 (
.\fastboot.exe flash partition:0 gpt_both0.bin 2>>%LOG%
.\fastboot.exe flash partition:1 gpt_both1.bin 2>>%LOG%
.\fastboot.exe flash partition:2 gpt_both2.bin 2>>%LOG%
.\fastboot.exe flash partition:3 gpt_both3.bin 2>>%LOG%
.\fastboot.exe flash partition:4 gpt_both4.bin 2>>%LOG%
.\fastboot.exe flash partition:5 gpt_both5.bin 2>>%LOG%
.\fastboot.exe flash partition:6 gpt_both6.bin 2>>%LOG%
) ELSE (
.\fastboot.exe flash partition:0 dallas_gpt_both0.bin 2>>%LOG%
.\fastboot.exe flash partition:1 dallas_gpt_both1.bin 2>>%LOG%
.\fastboot.exe flash partition:2 dallas_gpt_both2.bin 2>>%LOG%
.\fastboot.exe flash partition:3 dallas_gpt_both3.bin 2>>%LOG%
.\fastboot.exe flash partition:4 dallas_gpt_both4.bin 2>>%LOG%
.\fastboot.exe flash partition:5 dallas_gpt_both5.bin 2>>%LOG%
.\fastboot.exe flash partition:6 dallas_gpt_both6.bin 2>>%LOG%
)
echo Check HW stage…
:: To get HW ID from abl
FOR /F "tokens=4 delims= " %%a IN ('.\fastboot.exe oem get-hwid 2^>^&1 ^| findstr HWID') DO (
SET _hw_id=%%a
)
IF %soc_id%==1 (
IF %_hw_id%==0 (
echo This is EVB board.
.\fastboot.exe flash xbl xbl_s_evb.melf 2>>%LOG%
.\fastboot.exe flash xbl_config xbl_config_evb.elf 2>>%LOG%
.\fastboot.exe flash xbl_ramdump XblRamdump_evb.elf 2>>%LOG%
.\fastboot.exe flash uefi uefi_evb.elf 2>>%LOG%
.\fastboot.exe flash imagefv imagefv_evb.elf 2>>%LOG%
.\fastboot.exe flash shrm shrm_evb.elf 2>>%LOG%
) ELSE (
.\fastboot.exe flash xbl xbl_s.melf 2>>%LOG%
.\fastboot.exe flash xbl_config xbl_config.elf 2>>%LOG%
.\fastboot.exe flash xbl_ramdump XblRamdump.elf 2>>%LOG%
.\fastboot.exe flash uefi uefi.elf 2>>%LOG%
.\fastboot.exe flash imagefv imagefv.elf 2>>%LOG%
.\fastboot.exe flash shrm shrm.elf 2>>%LOG%
)
) ELSE (
.\fastboot.exe flash xbl dallas_xbl_s.melf 2>>%LOG%
.\fastboot.exe flash xbl_config dallas_xbl_config.elf 2>>%LOG%
.\fastboot.exe flash xbl_ramdump dallas_XblRamdump.elf 2>>%LOG%
.\fastboot.exe flash uefi dallas_uefi.elf 2>>%LOG%
.\fastboot.exe flash imagefv dallas_imagefv.elf 2>>%LOG%
.\fastboot.exe flash shrm dallas_shrm.elf 2>>%LOG%
)
IF %soc_id%==1 (
.\fastboot.exe flash aop aop.mbn 2>>%LOG%
.\fastboot.exe flash aop_config aop_devcfg.mbn 2>>%LOG%
.\fastboot.exe flash tz tz.mbn 2>>%LOG%
.\fastboot.exe flash hyp hypvm.mbn 2>>%LOG%
.\fastboot.exe flash keymaster keymint.mbn 2>>%LOG%
.\fastboot.exe flash devcfg devcfg.mbn 2>>%LOG%
.\fastboot.exe flash modem NON-HLOS.bin 2>>%LOG%
.\fastboot.exe flash bluetooth BTFM.bin 2>>%LOG%
.\fastboot.exe flash dsp dspso.bin 2>>%LOG%
.\fastboot.exe flash qupfw qupv3fw.elf 2>>%LOG%
.\fastboot.exe flash uefisecapp uefi_sec.mbn 2>>%LOG%
.\fastboot.exe flash multiimgoem multi_image.mbn 2>>%LOG%
.\fastboot.exe flash cpucp cpucp.elf 2>>%LOG%
.\fastboot.exe flash featenabler featenabler.mbn 2>>%LOG%
.\fastboot.exe flash logfs logfs_ufs_8mb.bin 2>>%LOG%
.\fastboot.exe flash storsec storsec.mbn 2>>%LOG%
.\fastboot.exe flash rtice rtice.mbn 2>>%LOG%
.\fastboot.exe flash abl abl.elf 2>>%LOG%
.\fastboot.exe flash apdp DP_dev_sec_full_dump_signed.mbn 2>>%LOG%
.\fastboot.exe flash apdpb DP_dev_sec_full_dump_signed.mbn 2>>%LOG%
) ELSE (
.\fastboot.exe flash aop dallas_aop.mbn 2>>%LOG%
.\fastboot.exe flash aop_config dallas_aop_devcfg.mbn 2>>%LOG%
.\fastboot.exe flash tz dallas_tz.mbn 2>>%LOG%
.\fastboot.exe flash hyp dallas_hypvm.mbn 2>>%LOG%
.\fastboot.exe flash keymaster dallas_keymint.mbn 2>>%LOG%
.\fastboot.exe flash devcfg dallas_devcfg.mbn 2>>%LOG%
.\fastboot.exe flash modem dallas_NON-HLOS.bin 2>>%LOG%
.\fastboot.exe flash bluetooth dallas_BTFM.bin 2>>%LOG%
.\fastboot.exe flash dsp dallas_dspso.bin 2>>%LOG%
.\fastboot.exe flash qupfw dallas_qupv3fw.elf 2>>%LOG%
.\fastboot.exe flash uefisecapp dallas_uefi_sec.mbn 2>>%LOG%
.\fastboot.exe flash multiimgoem dallas_multi_image.mbn 2>>%LOG%
.\fastboot.exe flash cpucp dallas_cpucp.elf 2>>%LOG%
.\fastboot.exe flash featenabler dallas_featenabler.mbn 2>>%LOG%
.\fastboot.exe flash logfs dallas_logfs_ufs_8mb.bin 2>>%LOG%
.\fastboot.exe flash storsec dallas_storsec.mbn 2>>%LOG%
.\fastboot.exe flash rtice dallas_rtice.mbn 2>>%LOG%
.\fastboot.exe flash abl dallas_abl.elf 2>>%LOG%
.\fastboot.exe flash apdp dallas_DP_dev_sec_full_dump_signed.mbn 2>>%LOG%
.\fastboot.exe flash apdpb dallas_DP_dev_sec_full_dump_signed.mbn 2>>%LOG%
)
echo Start downloading HLOS images…
echo Start downloading HLOS images… >>%LOG%
.\fastboot.exe flash boot boot.img 2>>%LOG%
.\fastboot.exe flash vendor_boot vendor_boot.img 2>>%LOG%
.\fastboot.exe flash dtbo dtbo.img 2>>%LOG%
.\fastboot.exe flash recovery recovery.img 2>>%LOG%
.\fastboot.exe flash vbmeta_system vbmeta_system.img 2>>%LOG%
.\fastboot.exe flash vbmeta vbmeta.img 2>>%LOG%
.\fastboot.exe reboot bootloader 2>>%LOG%
timeout 6
echo Start downloading super images…
.\fastboot.exe oem get-socid >nul 2>nul
.\fastboot.exe flash super super.img 2>>%LOG%
timeout 5
.\fastboot.exe -w 2>>%LOG%
.\fastboot.exe format logbuf 2>>%LOG%
.\fastboot.exe reboot 2>>%LOG%
echo Download finish!
echo Download finish! >>%LOG%
:end
pause
First i'd like to thank y'all for ur job, i'll make a donation later on.
Can u upload the latest CN raw firmware please, since we can't unlock bootloader anyomore ,i'd like to revert to it's original state
Hi
AI2201-33.0610.2810.104-REL-2304-M2.13.33.36-ASUS_1.1.1-Phone-user-20230426.raw
ok for you
Yes, this version is okay for me as long as it is the CN version
Thank you so much and sorry for the late reply, i had school and many exams to prepare
re
ok done !
Thank you so much.
Next week i'll make a donation, don't expect too much thought cuz i'm just a student
Hi, it's me again.
I've seen that i can't do automatic updates because it says : "failed, device reverted to its original configuration"
I've heard that a manual update to the version A13 CN .177 might correct this.
Do you please have an OTA that i can download or any version superior of the .104 ?
thank you
re
sorry i've not OTA
Hi Im new here, trying to run flash_all.cmd and gives me this error
Set boot up partition to a
< waiting for any device >
can anyone help me to fix my phone? i need to flash a qcn file, I can read it but I cant restore it. I tried QFIL and QPST but none of them work, anyone had any luck with this phone and writing the qcn file? its locked bootloader and no root