Published on

    Itel s23 useful commands

    Partition backup

    On god, tho. It kinda sucks to copy this.

    spd_dump exec_addr 0x65015f48 fdl fdl1-dl.bin 0x65000800 fdl fdl2-dl.bin 0x9efffe00 exec read_part prodnv 0 10m prodnv.img read_part miscdata 0 1m miscdata.img read_part misc 0 1m misc.img read_part trustos_a 0 6m trustos_a.img read_part trustos_b 0 6m trustos_b.img read_part sml_a 0 1m sml_a.img read_part sml_b 0 1m sml_b.img read_part uboot_a 0 3m uboot_a.img read_part uboot_b 0 3m uboot_b.img read_part uboot_log 0 4m uboot_log.img read_part logo 0 8m logo.img read_part fbootlogo 0 12m fbootlogo.img read_part l_fixnv1_a 0 2m l_fixnv1_a.img read_part l_fixnv2_a 0 2m l_fixnv2_a.img read_part l_fixnv1_b 0 2m l_fixnv1_b.img read_part l_fixnv2_b 0 2m l_fixnv2_b.img read_part l_runtimenv1 0 2m l_runtimenv1.img read_part l_runtimenv2 0 2m l_runtimenv2.img read_part gnssmodem_a 0 1m gnssmodem_a.img read_part gnssmodem_b 0 1m gnssmodem_b.img read_part wcnmodem_a 0 10m wcnmodem_a.img read_part wcnmodem_b 0 10m wcnmodem_b.img read_part persist 0 2m persist.img read_part l_modem_a 0 25m l_modem_a.img read_part l_modem_b 0 25m l_modem_b.img read_part l_deltanv_a 0 1m l_deltanv_a.img read_part l_deltanv_b 0 1m l_deltanv_b.img read_part l_gdsp_a 0 10m l_gdsp_a.img read_part l_gdsp_b 0 10m l_gdsp_b.img read_part l_ldsp_a 0 20m l_ldsp_a.img read_part l_ldsp_b 0 20m l_ldsp_b.img read_part l_agdsp_a 0 6m l_agdsp_a.img read_part l_agdsp_b 0 6m l_agdsp_b.img read_part pm_sys_a 0 1m pm_sys_a.img read_part pm_sys_b 0 1m pm_sys_b.img read_part teecfg_a 0 1m teecfg_a.img read_part teecfg_b 0 1m teecfg_b.img read_part hypervsior_a 0 10m hypervsior_a.img read_part hypervsior_b 0 10m hypervsior_b.img read_part boot_a 0 64m boot_a.img read_part boot_b 0 64m boot_b.img read_part vendor_boot_a 0 100m vendor_boot_a.img read_part vendor_boot_b 0 100m vendor_boot_b.img read_part init_boot_a 0 8m init_boot_a.img read_part init_boot_b 0 8m init_boot_b.img read_part dtb_a 0 8m dtb_a.img read_part dtb_b 0 8m dtb_b.img read_part dtbo_a 0 8m dtbo_a.img read_part dtbo_b 0 8m dtbo_b.img read_part super 0 5600m super.img read_part cache 0 100m cache.img read_part vbmeta_a 0 1m vbmeta_a.img read_part vbmeta_b 0 1m vbmeta_b.img read_part metadata 0 16m metadata.img read_part sysdumpdb 0 20m sysdumpdb.img read_part vbmeta_system_a 0 1m vbmeta_system_a.img read_part vbmeta_system_b 0 1m vbmeta_system_b.img read_part vbmeta_vendor_a 0 1m vbmeta_vendor_a.img read_part vbmeta_vendor_b 0 1m vbmeta_vendor_b.img read_part vbmeta_system_ext_a 0 1m vbmeta_system_ext_a.img read_part vbmeta_system_ext_b 0 1m vbmeta_system_ext_b.img read_part vbmeta_product_a 0 1m vbmeta_product_a.img read_part vbmeta_product_b 0 1m vbmeta_product_b.img read_part vbmeta_odm_a 0 1m vbmeta_odm_a.img read_part vbmeta_odm_b 0 1m vbmeta_odm_b.img read_part avbmeta_rs_a 0 1m avbmeta_rs_a.img read_part avbmeta_rs_b 0 1m avbmeta_rs_b.img read_part common_rs1_a 0 8m common_rs1_a.img read_part common_rs1_b 0 8m common_rs1_b.img read_part common_rs2_a 0 16m common_rs2_a.img read_part common_rs2_b 0 16m common_rs2_b.img read_part tranfs 0 50m tranfs.img reset
    

    I kinda wanna make a copy button now for the code blocks.

    Pull boot.img

    If you want it from the A partition, use this:

    spd_dump exec_addr 0x65015f48 fdl fdl1-dl.bin 0x65000800 fdl fdl2-dl.bin 0x9efffe00 exec read_part boot_a 0 64m boot.img reset
    

    If you want it from the B partition, use this:

    spd_dump exec_addr 0x65015f48 fdl fdl1-dl.bin 0x65000800 fdl fdl2-dl.bin 0x9efffe00 exec read_part boot_b 0 64m boot.img reset
    

    Yes, I know. It's literally one character difference.

    Flashing GSI

    Download the GSI, go into fastboot mode, and run this:

    fastboot delete-logical-partition product_a
    fastboot delete-logical-partition product_b
    fastboot delete-logical-partition system_ext_a
    fastboot delete-logical-partition system_ext_b
    fastboot flash system gsi.img
    fastboot flash userdata userdata.img
    

    CHANGE THE gsi.img TO THE NAME OF THE GSI YOU DOWNLOADED CAUSE SOME RANDOM DUMBASS DECIDED NOT TO AND ENDS UP SOFT BRICKING THE PHONE BY LITERALLY REBOOTING WHEN NO ONE ASKS HIM TO

    Fixing brightness on GSI

    If you're on Kitsune Mask debug build, I suggest taking a quick read of this post before continuing.

    Go into Termux and type this command:

    su -c echo 500 > /sys/class/backlight/sprd_backlight/brightness
    

    You can change 500 to the range between 1-4095.