[GUIDE][TWRP]Backup current partitions

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    This guide is only for Huawei Y6 (2018) for those who want to flash something but are in doubt they may end up in bootloop. This guide assumes you already unlocked your bootloader and have adb and fastboot installed on your computer.
    The advantage of this guide is you can boot TWRP recovery without flashing it.

    This guide recommended if you haven't flashed anything yet as you may want to backup the original files, but is also useful if you want to try a custom kernel or rom

    First, download the two files attached and then reboot to fastboot using this command:
    Code:
     adb reboot bootloader
    your device should boot in download mode

    Next, boot into Twrp using this command:
    Code:
     fastboot boot <downloaded Image.gz-dtb> <downloaded twrp.cpio.gz>
    Your device's screen should go black, don't worry. Please do note that this is a no-flash twrp

    Next, confirm your device is detected using
    Code:
     adb devices
    and make sure your device is listed

    1. To backup ramdisk partition (this is useful if you want to install magisk and still be able to restore) use this command:
    Code:
    adb exec-out "dd if=/dev/block/platform/soc/7824900.sdhci/by-name/ramdisk 2>/dev/null" > ramdisk.img

    2. To backup your kernel, use this command:
    Code:
    adb exec-out "dd if=/dev/block/platform/soc/7824900.sdhci/by-name/kernel 2>/dev/null" > kernel.img

    3. To backup your current recovery, use this command
    Code:
    adb exec-out "dd if=/dev/block/platform/soc/7824900.sdhci/by-name/recovery_ramdisk 2>/dev/null" > recovery_ramdisk.img

    4. Taking a backup of the current rom is different and requires rooting your device Backup your ram disk first and follow the guide here for rooting. Next, install Terminal Emulator from Play Store open the app and use this command (make sure you have about 3GB available storage)
    Code:
    su
    dd if=/dev/block/platform/soc/7824900.sdhci/by-name/system of=/sdcard/system.img
    and then copy the file to your computer.

    On Linux however, this is much simpler as you will only type this command on the computer
    Code:
    adb pull /dev/block/platform/soc/7824900.sdhci/by-name/system system.img

    If you are finished backing up your desired partitions, reboot your phone using this command:
    Code:
     adb reboot

    Downloads:
    Image.gz-dtb: https://drive.google.com/file/d/1jeI54O-voXl5-WD281tBawUN1x6NWAsA/view?usp=drivesdk

    twrp.cpio.gz: https://drive.google.com/file/d/1JyF4iUjU26GgGT6KwiOfilAg2M_0u_2h/view?usp=drivesdk]

    WARNING!! DO NOT FLASH ANY OF THE FILES PROVIDED AS THEY ARE NOT FLASHABLE
    1
    Restoring from backup
    First, reboot your phone to download mode
    Code:
    adb reboot bootloader
    1. To restore ramdisk,
    Code:
    fastboot flash ramdisk ramdisk.img

    2. To restore kernel,
    Code:
    fastboot flash kernel kernel.img

    3. To restore recovery,
    Code:
    fastboot flash recovery_ramdisk recovery_ramdisk.img

    4. To restore ROM,
    Code:
    fastboot flash system system.img

    When you're done, reboot
    Code:
    fastboot reboot