Blogger Jateng

Manual Backup Android Partition Without TWRP

So you want to backup android partition such (WIFI, IMEI, etc) but you dont have custom recovery (TWRP). You can backup the partition directly using command line shell on powershell or termux in android with root access. You can use this tutorial on any android phone. tested on Realme C17 Snapdragon

Prerequisite

  • Use at your own risk! I am not responsible for your actions
  • Need root access
  • Put the backup in safe place such as SDcard/ PC
  • You can list the partition by run this command : #ls /dev/block/by-name/

Video Tutorial

File Needed

  • CMD/Powershell in Windows or shell in Linux/Mac
  • Termux in Android

Manual Backup Qualcomm

Backup fsg Partition

dd if=/dev/block/by-name/fsg of=/storage/emulated/0/fsg.img

Backup wifi Partition

dd if=/dev/block/by-name/modem of=/storage/emulated/0/modem.img

Backup imei 1 Partition

dd if=/dev/block/by-name/modemst1 of=/storage/emulated/0/modemst1.img

Backup imei 2 Partition

dd if=/dev/block/by-name/modemst2 of=/storage/emulated/0/modemst2.img

Backup sensor Partition

dd if=/dev/block/by-name/persist of=/storage/emulated/0/persist.img

Backup super Partition

dd if=/dev/block/by-name/super of=/storage/emulated/0/super.img

Manual Backup Mediatek

You can also use gzip option do compress file make it smaller size
e.g dd if=/dev/block/by-name/nvram | gzip > /sdcard/nvram.img.gz
Later you need to extract the backup file to restore it e.g gunzip persistent.img.gz

Meta data

  • dd if=/dev/block/by-name/md_udc | gzip > /sdcard/md_udc.img.gz
  • dd if=/dev/block/by-name/metadata | gzip > /sdcard/metadata.img.gz

Kernel/ boot

  • dd if=/dev/block/by-name/boot | gzip > /sdcard/boot.img.gz

Vendor/ ODM

  • dd if=/dev/block/mapper/vendor | gzip > /sdcard/vendor.gz
  • dd if=/dev/block/mapper/odm | gzip > /sdcard/odm.img.gz

System Only

  • dd if=/dev/block/mapper/system | gzip > /sdcard/system.img.gz

Super (system, vendor, odm, product)

  • dd if=/dev/block/by-name/super | gzip > /sdcard/super.img.gz

Backup nvram,nvdata,persist,persistents,protect_f,protect_s

  • dd if=/dev/block/by-name/nvram | gzip > /sdcard/nvram.img.gz
  • dd if=/dev/block/by-name/nvdata | gzip > /sdcard/nvdata.img.gz
  • dd if=/dev/block/by-name/nvcfg | gzip > /sdcard/nvcfg.img.gz
  • dd if=/dev/block/by-name/persistent | gzip > /sdcard/persistent.img.gz
  • dd if=/dev/block/by-name/protect1 | gzip > /sdcard/protect1.img.gz
  • dd if=/dev/block/by-name/protect2 | gzip > /sdcard/protect2.img.gz

Restore Mediatek Partition

Open CMD in windows or termux in android. type su and hit enter

  • dd if=/sdcard/nvram.img of=/dev/block/by-name/nvram
  • dd if=/sdcard/nvdata.img of=/dev/block/by-name/nvdata
  • dd if=/sdcard/nvcfg.img of=/dev/block/by-name/nvcfg
  • dd if=/sdcard/persistent.img of=/dev/block/by-name/persistent
  • dd if=/sdcard/protect1.img of=/dev/block/by-name/protect1
  • dd if=/sdcard/protect2.img of=/dev/block/by-name/protect2

Instruction To Restore Qualcomm Partition

Open CMD in windows or termux in android. type su and hit enter

Restore fsg Partition

dd if=/storage/emulated/0/fsg.img of=/dev/block/by-name/fsg

Restore wifi Partition

dd if=/storage/emulated/0/modem.img of=/dev/block/by-name/modem

Restore imei 1 Partition

dd if=/storage/emulated/0/modemst1.img of=/dev/block/by-name/modemst1

Restore imei 2 Partition

dd if=/storage/emulated/0/modemst2.img of=/dev/block/by-name/modemst2

Restore sensor Partition

dd if=/storage/emulated/0/persist.img of=/dev/block/by-name/persist

Restore super Partition

dd if=/storage/emulated/0/super.img of=/dev/block/by-name/super

Backup Mediatek Partition

  • dd if=/dev/block/by-name/nvram of=/storage/emulated/0/nvram.img
  • dd if=/dev/block/by-name/nvdata of=/storage/emulated/0/nvdata.img
  • dd if=/dev/block/by-name/nvcfg of=/storage/emulated/0/nvcfg.img
  • dd if=/dev/block/by-name/persistent of=/storage/emulated/0/persistent.img
  • dd if=/dev/block/by-name/protect1 of=/storage/emulated/0/protect1.img
  • dd if=/dev/block/by-name/protect2 of=/storage/emulated/0/protect2.img