GUIDE: How to make backups and restore stock. || stock + patched images here

Search This thread

soaidaika

New member
Sep 16, 2019
2
0
I followed your instruction to boot TWRP, but it just stuck at the android one logo.
Is there anyway to solve this issue?
Also thx for uploading stock backups! :good:
 

¥sBielefeld

Senior Member
Jan 14, 2019
51
29
I followed your instruction to boot TWRP, but it just stuck at the android one logo.
Is there anyway to solve this issue?
Also thx for uploading stock backups! :good:

Oh yea. Since Android 10 you can no longer boot twrp or images. You have to use fastboot now to flash them.

Here is a little how to if you wanna root your phone with Android 10. I will edit the original post as well.

In case you are unrooted on Android Q:
1. Reboot to bootloader
2. Flash a patched boot image.
- Now you are rooted
3. Create a backup for Magisk (https://forum.xda-developers.com/mi-a3/how-to/guide-create-manual-backup-stock-boot-t3988345)

- When an OTA is available
1. First restore the stock boot image (Magisk Manager → Uninstall → Restore Images). DO NOT REBOOT!
2. After restoring stock boot image, apply OTAs as you normally would (Settings → System → System Update).
3. Wait for the installation to be done, do not press the "Restart now" or "Reboot" button!
4. Install Magisk to the inactive Slot (Magisk Manager → Install → Install to Inactive Slot)
5. Reboot your phone.
 
  • Like
Reactions: soaidaika

Machi007

Senior Member
Aug 4, 2017
51
53
!!!!!!!Since Android 10 you can no longer boot twrp or images. You have to use fastboot now to flash them.!!!!!!!

Boot TWRP and images is possible also on Android 10, but it needs some workaround...

1) Turn phone into Download Mode
2) Use command fastboot flash recovery twrp.img where twrp.img is your TWRP image you want to boot up
It shows this error (it is OKAY):
Code:
Sending 'recovery' (43004 KB)                      OKAY [  1.078s]
Writing 'recovery'                                 FAILED (remote: '(recovery_a) No such partition')
fastboot: error: Command failed
3) Now you can boot your TWRP recovery image, for example: fastboot boot twrp.img
Code:
Sending 'boot.img' (43004 KB)                      OKAY [  1.014s]
Booting                                            OKAY [  4.552s]
Finished. Total time: 5.623s
After this procedure your Nokia 6.1 with Android 10 really boots up into TWRP recovery!
Tested on TA-1043 and with THIS TWRP recovery by Raghu varma. ;)
 

soaidaika

New member
Sep 16, 2019
2
0
Boot TWRP and images is possible also on Android 10, but it needs some workaround...

1) Turn phone into Download Mode
2) Use command fastboot flash recovery twrp.img where twrp.img is your TWRP image you want to boot up
It shows this error (it is OKAY):
Code:
Sending 'recovery' (43004 KB)                      OKAY [  1.078s]
Writing 'recovery'                                 FAILED (remote: '(recovery_a) No such partition')
fastboot: error: Command failed
3) Now you can boot your TWRP recovery image, for example: fastboot boot twrp.img
Code:
Sending 'boot.img' (43004 KB)                      OKAY [  1.014s]
Booting                                            OKAY [  4.552s]
Finished. Total time: 5.623s
After this procedure your Nokia 6.1 with Android 10 really boots up into TWRP recovery!
Tested on TA-1043 and with TWRP recovery by Raghu varma. ;)

Worked like a charm! Thx a lot!
 

¥sBielefeld

Senior Member
Jan 14, 2019
51
29
Boot TWRP and images is possible also on Android 10, but it needs some workaround...

1) Turn phone into Download Mode
2) Use command fastboot flash recovery twrp.img where twrp.img is your TWRP image you want to boot up
It shows this error (it is OKAY):
Code:
Sending 'recovery' (43004 KB)                      OKAY [  1.078s]
Writing 'recovery'                                 FAILED (remote: '(recovery_a) No such partition')
fastboot: error: Command failed
3) Now you can boot your TWRP recovery image, for example: fastboot boot twrp.img
Code:
Sending 'boot.img' (43004 KB)                      OKAY [  1.014s]
Booting                                            OKAY [  4.552s]
Finished. Total time: 5.623s
After this procedure your Nokia 6.1 with Android 10 really boots up into TWRP recovery!
Tested on TA-1043 and with THIS TWRP recovery by Raghu varma. ;)

Oh nice. Thanks! Tested and added to the main post.:good:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Uploaded April now. This was the last OTA. Nokia 6.1 is now out of service and will not receive any more updates!
  • 9
    If you are not able to boot a patched boot image or a twrp image on Android 10, here is a workadound.
    Boot TWRP and images is possible also on Android 10, but it needs some workaround...

    1) Turn phone into Download Mode
    2) Use command fastboot flash recovery twrp.img where twrp.img is your TWRP image you want to boot up
    It shows this error (it is OKAY):
    Code:
    FAILED (remote: '(recovery_a) No such partition') //This is because an A/B Device does not have a recovery partition. It's located in the boot partition itself.
    3) Now you can boot your TWRP recovery image, for example: fastboot boot twrp.img


    Hay Guys!

    One of the most important things on Android is to make backups. Every time you want to root or flash something, make backups!
    I saw many people struggling with OTA because they didn't make backups to restore there images.

    =========================================================================
    If you DONT have any backup, but you want to restore stock, I'll upload all my stock backups as well as all patched boot images in this mega:
    https://mega.nz/#F!52B0HCID!A1k8PiGn9OQbiEa_IJ3_EQ
    This is just in case something went wrong with you backup. You should still make your own backups!!!
    =========================================================================

    In this post I will show you how to create a backup and how to restore it.

    There are 2 ways to backup your Phone images.

    TWRP:

    1. Reboot ur phone into bootloader
      • You can do this via adb
        Code:
        adb reboot bootloader
      • You can do this by holding volume down + power button while your phone is connected to USB.
    2. Boot into TWRP. you can use the TWRP image from my mega. DO NOT FLASH IT!!!
      Code:
      fastboot boot twrp.img
    3. Hit the Backup button and backup boot image, system image and vendor image.

    If you want to restore this images, you can restore them with TWRP. Just hit the restore button.
    This may not work for all Devices. But you can flash the images via fastboot too.
    The fastboot files looks like boot.emmc.win. Dont worry, this is img file. So you can rename it to boot.img or something.

    ADB:
    1. 1Reboot ur phone into bootloader
      • You can do this via adb
        Code:
        adb reboot bootloader
      • You can do this by holding volume down + power button while your phone is connected to USB.
    2. Find out your current slot
      Code:
      fastboot getvar current-slot
    3. Boot into a patched boot image.
      Code:
      fastboot boot patched.img
    4. Your phone shoud boot up. If it does,
    5. then open ADB.
    6. In ADB type there commands to dump the images.
      • Get root access by typing the "su"
      • Dump your boot, system and vendor from your current slot you found out on step 2
    7. (The commands for dumping an image are below)

    If you want to restore this images, you can restore them via fastboot.
    Code:
    fastboot flash [boot_{current-slot}/system_{current-slot}/vendor_{current-slot}] <image file>
    Replace the {current-slot} with your current slot.

    Example:
    Current slot is a and you want to restore the boot image.
    Code:
     fastboot flash boot_a boot_a.img

    If you still have Questions or need help, feel free to pm me.
    Also you can leave a comment under this post.

    Commands for dumping images:
    #Backup A boot:
    Code:
    dd if=/dev/block/mmcblk0p52 of=/sdcard/boot_a.img
    #Backup B boot:
    Code:
    dd if=/dev/block/mmcblk0p53 of=/sdcard/boot_b.img
    #Backup A vendor:
    Code:
    dd if=/dev/block/mmcblk0p83 of=/sdcard/vendor_a.img
    #Backup B vendor:
    Code:
    dd if=/dev/block/mmcblk0p84 of=/sdcard/vendor_b.img
    #Backup A system:
    Code:
    dd if=/dev/block/mmcblk0p81 of=/sdcard/system_a.img
    #Backup B system:
    Code:
    dd if=/dev/block/mmcblk0p82 of=/sdcard/system_b.img
    2
    !!!!!!!Since Android 10 you can no longer boot twrp or images. You have to use fastboot now to flash them.!!!!!!!

    Boot TWRP and images is possible also on Android 10, but it needs some workaround...

    1) Turn phone into Download Mode
    2) Use command fastboot flash recovery twrp.img where twrp.img is your TWRP image you want to boot up
    It shows this error (it is OKAY):
    Code:
    Sending 'recovery' (43004 KB)                      OKAY [  1.078s]
    Writing 'recovery'                                 FAILED (remote: '(recovery_a) No such partition')
    fastboot: error: Command failed
    3) Now you can boot your TWRP recovery image, for example: fastboot boot twrp.img
    Code:
    Sending 'boot.img' (43004 KB)                      OKAY [  1.014s]
    Booting                                            OKAY [  4.552s]
    Finished. Total time: 5.623s
    After this procedure your Nokia 6.1 with Android 10 really boots up into TWRP recovery!
    Tested on TA-1043 and with THIS TWRP recovery by Raghu varma. ;)
    2
    I heard in nokia 6.1 u don't need to downgrade to unlock bootloader (just change slot a to b).

    Nokia changed the Bootloader unlock algorithm with the August patch. So you need to be pre August patch.
    A B slots work work like this:
    Start: A(June)B(June) Currentslot A -> OTA UPDATE -> A(June)B(July) Currentslot B -> OTA -> A(August)B(July) current slot A and so forth.

    So. If you are on Slot A and you have Januar installed, you B slot is on December. This means, switching the Slot does not help you with the bootloader unlock.
    You have to downgrade.

    Anyways, if I have already unlocked my bootloader can i downgrade to oreo without ntool? Thanks
    Yes you can use OST LA for downgrade if you are unlocked. Make sure you are critical unlocked too.
    1
    Great tutorial and much appreciated. On the first sentence... There is a typo on the word "thinks".. it should be "things".

    Thanks. fixed it :D :good:
    1
    Uploaded April now. This was the last OTA. Nokia 6.1 is now out of service and will not receive any more updates!
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone