[Huawei P20 Pro Questions & Answers] aheadofsingularity:
@aIecxs Can you confirm this as valid? I did it by myself but double checking is important.

Here are the LONG script:

PS deleted unnecessary specification

cd C:\platform-tools\img\converted
@REM start deamon
adb devices
@REM -------------------------------------------------------------------------------

@REM push file
adb push HISIUFS_GPT.img /tmp
@REM flash partition
pause
adb shell sgdisk --load-backup=/tmp/HISIUFS_GPT.img /dev/block/sdd
@REM -------------------------------------------------------------------------------

@REM push file
adb push twrp-3.7.0_9-0-charlotte.img /tmp
@REM show file detail
adb shell ls -l /tmp/twrp-3.7.0_9-0-charlotte.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd40
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/twrp-3.7.0_9-0-charlotte.img of=/dev/block/sdd40
@REM -------------------------------------------------------------------------------

@REM push file
adb push CACHE.img /tmp
@REM show file detail
adb shell ls -l /tmp/CACHE.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd58
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/CACHE.img of=/dev/block/sdd58
@REM -------------------------------------------------------------------------------

@REM push file
adb push CUST.img /tmp
@REM show file detail
adb shell ls -l /tmp/CUST.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd56
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/CUST.img of=/dev/block/sdd56
@REM -------------------------------------------------------------------------------

@REM push file
adb push DTO.img /tmp
@REM show file detail
adb shell ls -l /tmp/DTO.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd43
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/DTO.img of=/dev/block/sdd43
@REM -------------------------------------------------------------------------------

@REM push file
adb push DTS.img /tmp
@REM show file detail
adb shell ls -l /tmp/DTS.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd42
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/DTS.img of=/dev/block/sdd42
@REM -------------------------------------------------------------------------------

@REM push file
adb push ERECOVERY_KERNE.img /tmp
@REM show file detail
adb shell ls -l /tmp/ERECOVERY_KERNE.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd35
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/ERECOVERY_KERNE.img of=/dev/block/sdd35
@REM -------------------------------------------------------------------------------

@REM push file
adb push ERECOVERY_RAMDI.img /tmp
@REM show file detail
adb shell ls -l /tmp/ERECOVERY_RAMDI.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd36
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/ERECOVERY_RAMDI.img of=/dev/block/sdd36
@REM -------------------------------------------------------------------------------

@REM push file
adb push ERECOVERY_VBMET.img /tmp
@REM show file detail
adb shell ls -l /tmp/ERECOVERY_VBMET.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd48
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/ERECOVERY_VBMET.img of=/dev/block/sdd48
@REM -------------------------------------------------------------------------------

@REM push file
adb push ERECOVERY_VENDO.img /tmp
@REM show file detail
adb shell ls -l /tmp/ERECOVERY_VENDO.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd37
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/ERECOVERY_VENDO.img of=/dev/block/sdd37
@REM -------------------------------------------------------------------------------

@REM push file
adb push FASTBOOT.img /tmp
@REM show file detail
adb shell ls -l /tmp/FASTBOOT.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd28
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/FASTBOOT.img of=/dev/block/sdd28
@REM -------------------------------------------------------------------------------

@REM push file
adb push FW_HIFI.img /tmp
@REM show file detail
adb shell ls -l /tmp/FW_HIFI.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd32
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/FW_HIFI.img of=/dev/block/sdd32
@REM -------------------------------------------------------------------------------

@REM push file
adb push FW_LPM3.img /tmp
@REM show file detail
adb shell ls -l /tmp/FW_LPM3.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd22
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/FW_LPM3.img of=/dev/block/sdd22
@REM -------------------------------------------------------------------------------

@REM push file
adb push HDCP.img /tmp
@REM show file detail
adb shell ls -l /tmp/HDCP.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd24
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/HDCP.img of=/dev/block/sdd24
@REM -------------------------------------------------------------------------------

@REM push file
adb push HHEE.img /tmp
@REM show file detail
adb shell ls -l /tmp/HHEE.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd26
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/HHEE.img of=/dev/block/sdd26
@REM -------------------------------------------------------------------------------

@REM push file
adb push HISEE_FS.img /tmp
@REM show file detail
adb shell ls -l /tmp/HISEE_FS.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd27
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/HISEE_FS.img of=/dev/block/sdd27
@REM -------------------------------------------------------------------------------

@REM push file
adb push HISEE_IMG.img /tmp
@REM show file detail
adb shell ls -l /tmp/HISEE_IMG.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd25
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/HISEE_IMG.img of=/dev/block/sdd25
@REM -------------------------------------------------------------------------------

@REM push file
adb push ISP_FIRMWARE.img /tmp
@REM show file detail
adb shell ls -l /tmp/ISP_FIRMWARE.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd31
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/ISP_FIRMWARE.img of=/dev/block/sdd31
@REM -------------------------------------------------------------------------------

@REM push file
adb push KERNEL.img /tmp
@REM show file detail
adb shell ls -l /tmp/KERNEL.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd38
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/KERNEL.img of=/dev/block/sdd38
@REM -------------------------------------------------------------------------------

@REM push file
adb push MODEM_FW.img /tmp
@REM show file detail
adb shell ls -l /tmp/MODEM_FW.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd45
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/MODEM_FW.img of=/dev/block/sdd45
@REM -------------------------------------------------------------------------------

@REM push file
adb push MODEMNVM_CUST.img /tmp
@REM show file detail
adb shell ls -l /tmp/MODEMNVM_CUST.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd51
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/MODEMNVM_CUST.img of=/dev/block/sdd51
@REM -------------------------------------------------------------------------------

@REM push file
adb push MODEMNVM_UPDATE.img /tmp
@REM show file detail
adb shell ls -l /tmp/MODEMNVM_UPDATE.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd50
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/MODEMNVM_UPDATE.img of=/dev/block/sdd50
@REM -------------------------------------------------------------------------------

@REM push file
adb push ODM.img /tmp
@REM show file detail
adb shell ls -l /tmp/ODM.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd57
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/ODM.img of=/dev/block/sdd57
@REM -------------------------------------------------------------------------------

@REM push file
adb push PRODUCT.img /tmp
@REM show file detail
adb shell ls -l /tmp/PRODUCT.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd55
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/PRODUCT.img of=/dev/block/sdd55
@REM -------------------------------------------------------------------------------

@REM push file
adb push RAMDISK.img /tmp
@REM show file detail
adb shell ls -l /tmp/RAMDISK.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd39
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/RAMDISK.img of=/dev/block/sdd39
@REM -------------------------------------------------------------------------------

@REM push file
adb push RECOVERY_VBMETA.img /tmp
@REM show file detail
adb shell ls -l /tmp/RECOVERY_VBMETA.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd47
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/RECOVERY_VBMETA.img of=/dev/block/sdd47
@REM -------------------------------------------------------------------------------

@REM push file
adb push RECOVERY_VENDOR.img /tmp
@REM show file detail
adb shell ls -l /tmp/RECOVERY_VENDOR.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd41
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/RECOVERY_VENDOR.img of=/dev/block/sdd41
@REM -------------------------------------------------------------------------------

@REM push file
adb push SENSORHUB.img /tmp
@REM show file detail
adb shell ls -l /tmp/SENSORHUB.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd34
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/SENSORHUB.img of=/dev/block/sdd34
@REM -------------------------------------------------------------------------------

@REM push file
adb push SYSTEM.img /tmp
@REM show file detail
adb shell ls -l /tmp/SYSTEM.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd59
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/SYSTEM.img of=/dev/block/sdd59
@REM -------------------------------------------------------------------------------

@REM push file
adb push TEEOS.img /tmp
@REM show file detail
adb shell ls -l /tmp/TEEOS.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd33
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/TEEOS.img of=/dev/block/sdd33
@REM -------------------------------------------------------------------------------

@REM push file
adb push TRUSTFIRMWARE.img /tmp
@REM show file detail
adb shell ls -l /tmp/TRUSTFIRMWARE.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd44
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/TRUSTFIRMWARE.img of=/dev/block/sdd44
@REM -------------------------------------------------------------------------------

@REM push file
adb push USERDATA.img /tmp
@REM show file detail
adb shell ls -l /tmp/USERDATA.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd60
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/USERDATA.img of=/dev/block/sdd60
@REM -------------------------------------------------------------------------------

@REM push file
adb push VBMETA.img /tmp
@REM show file detail
adb shell ls -l /tmp/VBMETA.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd49
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/VBMETA.img of=/dev/block/sdd49
@REM -------------------------------------------------------------------------------

@REM push file
adb push VECTOR.img /tmp
@REM show file detail
adb shell ls -l /tmp/VECTOR.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd29
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/VECTOR.img of=/dev/block/sdd29
@REM -------------------------------------------------------------------------------

@REM push file
adb push VENDOR.img /tmp
@REM show file detail
adb shell ls -l /tmp/VENDOR.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd54
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/VENDOR.img of=/dev/block/sdd54
@REM -------------------------------------------------------------------------------

@REM push file
adb push VERSION.img /tmp
@REM show file detail
adb shell ls -l /tmp/VERSION.img
@REM show device size
adb shell blockdev --getsize64 /dev/block/sdd53
@REM file copy to partition
pause
adb shell dd bs=4096 if=/tmp/VERSION.img of=/dev/block/sdd53
@REM -------------------------------------------------------------------------------