Skip to content

Instantly share code, notes, and snippets.

@cicku
Last active October 3, 2025 20:29
Show Gist options
  • Select an option

  • Save cicku/c15d3606a183e6c96b03c624ec7b472e to your computer and use it in GitHub Desktop.

Select an option

Save cicku/c15d3606a183e6c96b03c624ec7b472e to your computer and use it in GitHub Desktop.
Moto G 2025 flashfile (RETUS)
/*
Extracted from XT2513-1_KANSAS_RETUS_15_V1VK35.22-125_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC.xml.zip
Kansas v7 Retail Firmware
Use "fastboot getvar cid" to confirm customer ID on secure HW.
Value must be 0 (developer HW) or match this value:
RetailDocomo => 50 (0x0032)
RetailSoftbank => 50 (0x0032)
Retail => 50 (0x0032)
RetailLocked => 51 (0x0033)
*/
<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="kansas_g_sys"/>
<software_version version="kansas_g_sys-user 15 V1VK35.22-125 06468-7f0382 release-keys MV-301"/>
<sparsing enabled="True" max-sparse-size="268435456"/>
<subsidy_lock_config MD5="d41d8cd98f00b204e9800998ecf8427e" name="slcf_mediatek_default_v1.0.atc"/>
<regulatory_config SHA1="da39a3ee5e6b4b0d3255bfef95601890afd80709" name="regulatory_info_default.png"/>
<cid_template_config SHA1="cfc1136c36955ba5ffe514efdf0037e95e47bef3" name="cid_template.dat"/>
<cid_value value="0x0032"/>
<iqtuning_rescue enabled="false"/>
<apex_rescue enabled="false"/>
</header>
<steps>
<step MD5="5f039109afaf796deadc56298f2e191c" filename="PGPT" operation="flash" partition="gpt"/>
<step operation="getvar" var="max-sparse-size"/>
<step operation="oem" var="fb_mode_set"/>
<step MD5="588502cb199b1820b602263af35fd3ce" filename="preloader.img" operation="flash" partition="preloader"/>
<step MD5="b82e7b761d9fc108cb48ac4ce677afb3" filename="lk.img" operation="flash" partition="lk_a"/>
<step MD5="e8dd2f0083710975b2d7447f385b3c46" filename="tee.img" operation="flash" partition="tee_a"/>
<step MD5="214efce1412dff37ed48dada4804cbc5" filename="mcupm.img" operation="flash" partition="mcupm_a"/>
<step MD5="9fc6736e7ed2d11e2ff9aaeb770502bb" filename="pi_img.img" operation="flash" partition="pi_img_a"/>
<step MD5="1bf4815304a6bfc9e08edf1b54c3a747" filename="sspm.img" operation="flash" partition="sspm_a"/>
<step MD5="ba831136a2ec2f958533c97fff5ee60f" filename="dtbo.img" operation="flash" partition="dtbo_a"/>
<step MD5="40b724cce3359d1c1926362fbc8c7dea" filename="logo.img" operation="flash" partition="logo_a"/>
<step operation="erase" partition="nvdata"/>
<step MD5="48ae894fa6a1ba829bab8516a8921073" filename="spmfw.img" operation="flash" partition="spmfw_a"/>
<step MD5="09bfda6ade6e44107a589aa4de62ca60" filename="scp.img" operation="flash" partition="scp_a"/>
<step MD5="494fcb38e36449251d71d1538c75608a" filename="vbmeta.img" operation="flash" partition="vbmeta_a"/>
<step MD5="b43265c3dad66e593c106fa1fc37b854" filename="vbmeta_system.img" operation="flash" partition="vbmeta_system_a"/>
<step MD5="fb698908c2a9540567936821a88895be" filename="md1img.img" operation="flash" partition="md1img_a"/>
<step MD5="64fae7319c79989722ec7f92d6f50c83" filename="dpm.img" operation="flash" partition="dpm_a"/>
<step MD5="4f79052a7d0e47aedc80b9510ac6cacb" filename="gz.img" operation="flash" partition="gz_a"/>
<step MD5="1236dfde9ff1e2e32d0c7c89ea2306d5" filename="mcf_ota.img" operation="flash" partition="mcf_ota_a"/>
<step MD5="b16127161d9e1bd5c11bdc9226ccad76" filename="vcp.img" operation="flash" partition="vcp_a"/>
<step MD5="1cdd8eba90b943c631c7d953dba143cf" filename="connsys_bt.img" operation="flash" partition="connsys_bt_a"/>
<step MD5="fc29446742c053511a38210bd2344580" filename="efuse.img" operation="flash" partition="efuseBackup"/>
<step MD5="2aeb77c21f59100c285ca1247ba89777" filename="init_boot.img" operation="flash" partition="init_boot_a"/>
<step MD5="dcf86350b86b221fdd227f705e108be1" filename="boot.img" operation="flash" partition="boot_a"/>
<step MD5="10dd11f8792348234ef4f2ba31ffb1e5" filename="vendor_boot.img" operation="flash" partition="vendor_boot_a"/>
<step MD5="c34dc947815c73d2aece4efb79128f7a" filename="super.img_sparsechunk.0" operation="flash" partition="super"/>
<step MD5="e829b9e4e39b28c3f972be33347bdf6c" filename="super.img_sparsechunk.1" operation="flash" partition="super"/>
<step MD5="48565632ae9deece809ab4207e5a15be" filename="super.img_sparsechunk.2" operation="flash" partition="super"/>
<step MD5="fe401c28ebcda6dca4e74b8f73246fb8" filename="super.img_sparsechunk.3" operation="flash" partition="super"/>
<step MD5="462aa80e90413736dbc2b008da3f1623" filename="super.img_sparsechunk.4" operation="flash" partition="super"/>
<step MD5="ff5ca950e759f3de08b7e91222cfc049" filename="super.img_sparsechunk.5" operation="flash" partition="super"/>
<step MD5="77606f65b30cf7efaba7cc2b7199fd1e" filename="super.img_sparsechunk.6" operation="flash" partition="super"/>
<step MD5="00f29558bc6526fed778bb8fa40ecaa7" filename="super.img_sparsechunk.7" operation="flash" partition="super"/>
<step MD5="d17a2d2e186cefa0127baac9d367b81d" filename="super.img_sparsechunk.8" operation="flash" partition="super"/>
<step MD5="351b63a00f6a9f35da90d48ef5df6c2a" filename="super.img_sparsechunk.9" operation="flash" partition="super"/>
<step MD5="8f286485ce98fd3e3b9f236d69d698e0" filename="super.img_sparsechunk.10" operation="flash" partition="super"/>
<step MD5="50b10eeed663b93bc6e873e4b80d3a6d" filename="super.img_sparsechunk.11" operation="flash" partition="super"/>
<step MD5="cfe29f18b0452cc68f9907ee75f25727" filename="super.img_sparsechunk.12" operation="flash" partition="super"/>
<step MD5="27c9db29e0aafca03a47f71dd7e503f9" filename="super.img_sparsechunk.13" operation="flash" partition="super"/>
<step MD5="87fc9d327574327b5a9561af67900a81" filename="super.img_sparsechunk.14" operation="flash" partition="super"/>
<step MD5="17edb96be98339341ebf730c8190d66f" filename="super.img_sparsechunk.15" operation="flash" partition="super"/>
<step MD5="e772c15f9ba0dc522d2d5e919aa5cbdf" filename="super.img_sparsechunk.16" operation="flash" partition="super"/>
<step MD5="94b6829fadeff442c346791a36b43c09" filename="super.img_sparsechunk.17" operation="flash" partition="super"/>
<step MD5="d4982536aec79d8a9c753700c551d6dc" filename="super.img_sparsechunk.18" operation="flash" partition="super"/>
<step MD5="31b54fad269db0f5276765238863d518" filename="super.img_sparsechunk.19" operation="flash" partition="super"/>
<step MD5="6d5a19636f54672e6137ad4e38a4d705" filename="super.img_sparsechunk.20" operation="flash" partition="super"/>
<step MD5="5ebb6c4b506f703bcd2c86738000358a" filename="super.img_sparsechunk.21" operation="flash" partition="super"/>
<step MD5="aeeb6580d0a15605cb36d133497b732f" filename="super.img_sparsechunk.22" operation="flash" partition="super"/>
<step operation="erase" partition="userdata"/>
<step operation="erase" partition="metadata"/>
<step operation="erase" partition="debug_token"/>
<step operation="oem" var="fb_mode_clear"/>
<step operation="oem" var="config unset console"/>
<step operation="oem" var="config unset cmdl"/>
</steps>
</flashing>
@cicku
Copy link
Author

cicku commented Oct 3, 2025

<step> section defines how to fastboot and flash the corresponding ROM:

fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash preloader preloader.img
fastboot flash lk_a lk.img
fastboot flash tee_a tee.img
fastboot flash mcupm mcupm_a.img
fastboot flash pi_img_a pi_img.img
fastboot flash sspm_a sspm.img
fastboot flash dtbo_a dtbo.img
fastboot flash logo_a logo.img
fastboot erase nvdata
fastboot flash spmfw_a spmfw.img
fastboot flash scp_a scp.img
fastboot flash vbmeta_a vbmeta,img
fastboot flash vbmeta_system_a vbmeta_system.img
fastboot flash md1img_a md1img.img
fastboot flash dpm_a dpm.img
fastboot flash gz_a gz.img
fastboot flash mcf_ota_a mcf_ota.img
fastboot flash vcp_a vcp.img
fastboot flash connsys_bt_a connsys_bt.img
fastboot flash efuseBackup efuse.img
fastboot flash init_boot_a init_boot.img
fastboot flash boot_a boot.img
fastboot flash vendor_boot_a vendor_boot.img
fastboot flash super super.img_sparsechunk.0
fastboot flash super super.img_sparsechunk.1
fastboot flash super super.img_sparsechunk.2
fastboot flash super super.img_sparsechunk.3
fastboot flash super super.img_sparsechunk.4
fastboot flash super super.img_sparsechunk.5
fastboot flash super super.img_sparsechunk.6
fastboot flash super super.img_sparsechunk.7
fastboot flash super super.img_sparsechunk.8
fastboot flash super super.img_sparsechunk.9
fastboot flash super super.img_sparsechunk.10
fastboot flash super super.img_sparsechunk.11
fastboot flash super super.img_sparsechunk.12
fastboot flash super super.img_sparsechunk.13
fastboot flash super super.img_sparsechunk.14
fastboot flash super super.img_sparsechunk.15
fastboot flash super super.img_sparsechunk.16
fastboot flash super super.img_sparsechunk.17
fastboot flash super super.img_sparsechunk.18
fastboot flash super super.img_sparsechunk.19
fastboot flash super super.img_sparsechunk.20
fastboot flash super super.img_sparsechunk.21
fastboot flash super super.img_sparsechunk.22
fastboot erase userdata
fastboot erase metadata
fastboot erase debug_token
fastboot oem fb_mode_clear
fastboot oem config unset console
fastboot oem config unset cmdl
fastboot reboot

@cicku
Copy link
Author

cicku commented Oct 3, 2025

For anyone reading, if you try to flash the official ROM of a different software channel:

  1. Download Software Fix and install, boot the phone into fastboot or via adb manually.
  2. Download official ROMs from a trusted place. Mine is https://mirrors.lolinet.com/firmware/lenomola/2025/kansas/official/RETUS/
  3. Start Rescue, the program will download ROM and FlashTool (modified fastboot).
  4. Once the download is complete, you will receive a notification. At this point, the program will not start flashing.
  5. Go into the correct folder (in my case, Windows: C:\ProgramData\RSA\Download\RomFiles\KANSAS_G_SYS_W1VK36H.9_12_subsidy_COMCAST_regulatory_DEFAULT_cid50_R1_CFC.xml), delete all files inside.
  6. Extract the downloaded ROM and copy all files into the folder in the last step
  7. Continue Rescue, the program will start flashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment