[Xiaomi Mi Max 3 Guides, News, & Discussion] pokipokipxorn:
recommend to backup partitions before flashing any OTA or roms

# unlock bootloader

# flash custom recovery orange fox

# partition backup app by wanam, most useful, especially 100mb block, backup both formats .img .gz

# partition backup by adb (can be restored via fastboot mode)

# qcn backup using androidbrick guide

https://www.androidbrick.com/ultima...agon-xiaomi-mi5-imei-and-baseband-repair-fix/

https://www.androidbrick.com/ultimate-guide-qualcomm-snapdragon-imei-baseband-repair-fix-part-2/

here is my script to backup partition by adb using linux

# original rom from shop FAKE/BUGGY global 10.3.2.0

# to list all partitions
# adb shell
# su
# ls -al /dev/block/bootdevice/by-name

# script to backup mi max 3 all partitions as .img, able to restore from fastboot mode
# some partitions such as system, userdata is excluded (commented)

# example to restore, at fastboot mode
# fastboot flash modem_b modem.img

dd if=/dev/block/mmcblk0p41 of=/sdcard/Download/mmcblk0p41_ImageFv.img ;
dd if=/dev/block/mmcblk0p37 of=/sdcard/Download/mmcblk0p37_abl.img ;
dd if=/dev/block/mmcblk0p38 of=/sdcard/Download/mmcblk0p38_ablbak.img ;
dd if=/dev/block/mmcblk0p16 of=/sdcard/Download/mmcblk0p16_aop.img ;
dd if=/dev/block/mmcblk0p12 of=/sdcard/Download/mmcblk0p12_apdp.img ;
dd if=/dev/block/mmcblk0p70 of=/sdcard/Download/mmcblk0p70_backos.img ;
dd if=/dev/block/mmcblk0p4 of=/sdcard/Download/mmcblk0p4_bk1.img ;
dd if=/dev/block/mmcblk0p8 of=/sdcard/Download/mmcblk0p8_bk2.img ;
dd if=/dev/block/mmcblk0p9 of=/sdcard/Download/mmcblk0p9_bk3.img ;
dd if=/dev/block/mmcblk0p17 of=/sdcard/Download/mmcblk0p17_bk4.img ;
dd if=/dev/block/mmcblk0p42 of=/sdcard/Download/mmcblk0p42_bk5.img ;
dd if=/dev/block/mmcblk0p47 of=/sdcard/Download/mmcblk0p47_bk6.img ;
dd if=/dev/block/mmcblk0p54 of=/sdcard/Download/mmcblk0p54_bk7.img ;
dd if=/dev/block/mmcblk0p56 of=/sdcard/Download/mmcblk0p56_bk8.img ;
dd if=/dev/block/mmcblk0p59 of=/sdcard/Download/mmcblk0p59_bk9.img ;
dd if=/dev/block/mmcblk0p34 of=/sdcard/Download/mmcblk0p34_bluetooth.img ;
# dd if=/dev/block/mmcblk0p68 of=/sdcard/Download/mmcblk0p68_boot.img ;
# dd if=/dev/block/mmcblk0p75 of=/sdcard/Download/mmcblk0p75_cache.img ;
dd if=/dev/block/mmcblk0p25 of=/sdcard/Download/mmcblk0p25_cmnlib.img ;
dd if=/dev/block/mmcblk0p27 of=/sdcard/Download/mmcblk0p27_cmnlib64.img ;
dd if=/dev/block/mmcblk0p28 of=/sdcard/Download/mmcblk0p28_cmnlib64bak.img ;
dd if=/dev/block/mmcblk0p26 of=/sdcard/Download/mmcblk0p26_cmnlibbak.img ;
dd if=/dev/block/mmcblk0p76 of=/sdcard/Download/mmcblk0p76_cust.img ;
dd if=/dev/block/mmcblk0p18 of=/sdcard/Download/mmcblk0p18_ddr.img ;
dd if=/dev/block/mmcblk0p35 of=/sdcard/Download/mmcblk0p35_devcfg.img ;
dd if=/dev/block/mmcblk0p36 of=/sdcard/Download/mmcblk0p36_devcfgbak.img ;
dd if=/dev/block/mmcblk0p60 of=/sdcard/Download/mmcblk0p60_devinfo.img ;
dd if=/dev/block/mmcblk0p33 of=/sdcard/Download/mmcblk0p33_dip.img ;
dd if=/dev/block/mmcblk0p3 of=/sdcard/Download/mmcblk0p3_dpo.img ;
dd if=/dev/block/mmcblk0p63 of=/sdcard/Download/mmcblk0p63_dsp.img ;
dd if=/dev/block/mmcblk0p46 of=/sdcard/Download/mmcblk0p46_dtbo.img ;
dd if=/dev/block/mmcblk0p20 of=/sdcard/Download/mmcblk0p20_frp.img ;
dd if=/dev/block/mmcblk0p2 of=/sdcard/Download/mmcblk0p2_fsc.img ;
dd if=/dev/block/mmcblk0p55 of=/sdcard/Download/mmcblk0p55_fsg.img ;
dd if=/dev/block/mmcblk0p23 of=/sdcard/Download/mmcblk0p23_hyp.img ;
dd if=/dev/block/mmcblk0p24 of=/sdcard/Download/mmcblk0p24_hypbak.img ;
dd if=/dev/block/mmcblk0p29 of=/sdcard/Download/mmcblk0p29_keymaster.img ;
dd if=/dev/block/mmcblk0p30 of=/sdcard/Download/mmcblk0p30_keymasterbak.img ;
dd if=/dev/block/mmcblk0p19 of=/sdcard/Download/mmcblk0p19_keystore.img ;
dd if=/dev/block/mmcblk0p7 of=/sdcard/Download/mmcblk0p7_limits.img ;
dd if=/dev/block/mmcblk0p72 of=/sdcard/Download/mmcblk0p72_logdump.img ;
dd if=/dev/block/mmcblk0p52 of=/sdcard/Download/mmcblk0p52_logfs.img ;
dd if=/dev/block/mmcblk0p64 of=/sdcard/Download/mmcblk0p64_logo.img ;
dd if=/dev/block/mmcblk0p62 of=/sdcard/Download/mmcblk0p62_mdtp.img ;
dd if=/dev/block/mmcblk0p44 of=/sdcard/Download/mmcblk0p44_mdtpsecapp.img ;
dd if=/dev/block/mmcblk0p45 of=/sdcard/Download/mmcblk0p45_mdtpsecappbak.img ;
dd if=/dev/block/mmcblk0p71 of=/sdcard/Download/mmcblk0p71_minidump.img ;
dd if=/dev/block/mmcblk0p43 of=/sdcard/Download/mmcblk0p43_misc.img ;
dd if=/dev/block/mmcblk0p74 of=/sdcard/Download/mmcblk0p74_modem.img ;
dd if=/dev/block/mmcblk0p57 of=/sdcard/Download/mmcblk0p57_modemst1.img ;
dd if=/dev/block/mmcblk0p58 of=/sdcard/Download/mmcblk0p58_modemst2.img ;
dd if=/dev/block/mmcblk0p13 of=/sdcard/Download/mmcblk0p13_msadp.img ;
dd if=/dev/block/mmcblk0p61 of=/sdcard/Download/mmcblk0p61_oops.img ;
dd if=/dev/block/mmcblk0p66 of=/sdcard/Download/mmcblk0p66_persist.img ;
dd if=/dev/block/mmcblk0p67 of=/sdcard/Download/mmcblk0p67_persistbak.img ;
dd if=/dev/block/mmcblk0p31 of=/sdcard/Download/mmcblk0p31_pmic.img ;
dd if=/dev/block/mmcblk0p32 of=/sdcard/Download/mmcblk0p32_pmicbak.img ;
dd if=/dev/block/mmcblk0p11 of=/sdcard/Download/mmcblk0p11_qupfw.img ;
dd if=/dev/block/mmcblk0p73 of=/sdcard/Download/mmcblk0p73_rawdump.img ;
# dd if=/dev/block/mmcblk0p69 of=/sdcard/Download/mmcblk0p69_recovery.img ;
dd if=/dev/block/mmcblk0p21 of=/sdcard/Download/mmcblk0p21_rpm.img ;
dd if=/dev/block/mmcblk0p22 of=/sdcard/Download/mmcblk0p22_rpmbak.img ;
dd if=/dev/block/mmcblk0p5 of=/sdcard/Download/mmcblk0p5_sec.img ;
dd if=/dev/block/mmcblk0p65 of=/sdcard/Download/mmcblk0p65_splash.img ;
dd if=/dev/block/mmcblk0p53 of=/sdcard/Download/mmcblk0p53_spunvm.img ;
dd if=/dev/block/mmcblk0p6 of=/sdcard/Download/mmcblk0p6_ssd.img ;
dd if=/dev/block/mmcblk0p40 of=/sdcard/Download/mmcblk0p40_sti.img ;
dd if=/dev/block/mmcblk0p14 of=/sdcard/Download/mmcblk0p14_storsec.img ;
dd if=/dev/block/mmcblk0p15 of=/sdcard/Download/mmcblk0p15_storsecbak.img ;
dd if=/dev/block/mmcblk0p1 of=/sdcard/Download/mmcblk0p1_switch.img ;
# dd if=/dev/block/mmcblk0p77 of=/sdcard/Download/mmcblk0p77_system.img ;
dd if=/dev/block/mmcblk0p39 of=/sdcard/Download/mmcblk0p39_toolsfv.img ;
dd if=/dev/block/mmcblk0p50 of=/sdcard/Download/mmcblk0p50_tz.img ;
dd if=/dev/block/mmcblk0p51 of=/sdcard/Download/mmcblk0p51_tzbak.img ;
# dd if=/dev/block/mmcblk0p79 of=/sdcard/Download/mmcblk0p79_userdata.img ;
dd if=/dev/block/mmcblk0p10 of=/sdcard/Download/mmcblk0p10_vbmeta.img ;
dd if=/dev/block/mmcblk0p78 of=/sdcard/Download/mmcblk0p78_vendor.img ;
dd if=/dev/block/mmcblk0p48 of=/sdcard/Download/mmcblk0p48_xbl.img ;
dd if=/dev/block/mmcblk0p49 of=/sdcard/Download/mmcblk0p49_xblbak.img ;