Proper way to restore Nandroid backup?

Redwingsyummy

Member
May 26, 2018
42
2
0
I did do a search and found and tried a couple different recommended? methods that r supposed to work. Didn't for me.
What is the PROPER procedure to make a backup with twrp then restore it if needed. THANKS
 

whizeguy

Senior Member
May 18, 2013
824
376
0
Boot twrp, backup, backup all options.

Boot twrp, restore, choose the backup you want to restore, tick all options, swipe right for restore.

You sure u searched?
 

Redwingsyummy

Member
May 26, 2018
42
2
0
Yes

Boot twrp, backup, backup all options.

Boot twrp, restore, choose the backup you want to restore, tick all options, swipe right for restore.

You sure u searched?
Yes I searched more than once, different people trying different things. Tried what you suggested a couple times already before I posted creep.
 

kingwicked

Senior Member
Aug 11, 2011
767
515
123
www.kingwicked.deviantart.com
https://forum.xda-developers.com/oneplus-6/how-to/oneplus-6-unlock-bootloader-flash-twrp-t3792643

Is there something wrong with this guide you mean? It works without issues here......
Guess rooting is too easy on OnePlus devices aswell ?



you are really funny man. he is right . there is no thread which guides you how to restore nandroid on oneplus 6 .

i have tried all the methods posted in oneplus 6 xda.


Only 1 time i have been able to restore successfully. on OOS 5.1.11.

Tried more than 7 times to restore on android pie. with encrypted and decrypted both ways always issues like twrp lost or bootloop on blank screen


The post you are referring to shows general method of how to backup and restore via TWRP. And i assure the twrp doesnt work as intened . This a/b partition is f... PITA.


If any one knows how to successfully restore a nandroid backup on stable pie, please share.

im so fedup of this nonsense. i might go back to samsung devices for easy custom installations
 
  • Like
Reactions: trsix

trsix

Senior Member
Jun 23, 2011
925
242
0
las vegas
you are really funny man. he is right . there is no thread which guides you how to restore nandroid on oneplus 6 .

i have tried all the methods posted in oneplus 6 xda.


Only 1 time i have been able to restore successfully. on OOS 5.1.11.

Tried more than 7 times to restore on android pie. with encrypted and decrypted both ways always issues like twrp lost or bootloop on blank screen


The post you are referring to shows general method of how to backup and restore via TWRP. And i assure the twrp doesnt work as intened . This a/b partition is f... PITA.


If any one knows how to successfully restore a nandroid backup on stable pie, please share.

im so fedup of this nonsense. i might go back to samsung devices for easy custom installations
Whizeguy is a know it all, his posts are mostly about belittling people not helping. And yes restoring backups is a pain. No success here either
 

whizeguy

Senior Member
May 18, 2013
824
376
0
you are really funny man. he is right . there is no thread which guides you how to restore nandroid on oneplus 6 .

i have tried all the methods posted in oneplus 6 xda.


Only 1 time i have been able to restore successfully. on OOS 5.1.11.

Tried more than 7 times to restore on android pie. with encrypted and decrypted both ways always issues like twrp lost or bootloop on blank screen


The post you are referring to shows general method of how to backup and restore via TWRP. And i assure the twrp doesnt work as intened . This a/b partition is f... PITA.


If any one knows how to successfully restore a nandroid backup on stable pie, please share.

im so fedup of this nonsense. i might go back to samsung devices for easy custom installations
At that time backups worked, in that thread there was ways that worked. You had to put the backup on the pc, format, install same rom as your backup and restore it without booting. Now on pie... Nothing works, but 2 months ago, it did.

Whizeguy is a know it all, his posts are mostly about belittling people not helping. And yes restoring backups is a pain. No success here either
Your posts are really helpful I see.. Don't throw rocks in a glass house. (edit: guess the roof came down when someone called you out on your bs doing the same lol pathetic)

New threads are about topics already answered alot.might be why one gets tired of it.. I don't know. People just don't know how to use the forum


The way I do it now is I use swift backup to backup apps+data. Makes the job easier atleast, but I know it's not the same as before. Decrypting and use twrp might be an option.. Never tried it.
 
Last edited:

vtec303

Senior Member
Sep 19, 2007
1,345
419
113
Manchester
I am decrypted and here's what I do:
backup only boot, system, data and efs, at time of restore do it without any wipes, once restore is complete flash twrp reboot recovery, now Flash magisk 17.1 and reboot recovery, now flash dm_verity_force_encrption disabler, now reboot system, it works for me 9 out of 10 times, hope this helps, cheers.
 
  • Like
Reactions: shuweee

kingwicked

Senior Member
Aug 11, 2011
767
515
123
www.kingwicked.deviantart.com
I am decrypted and here's what I do:
backup only boot, system, data and efs, at time of restore do it without any wipes, once restore is complete flash twrp reboot recovery, now Flash magisk 17.1 and reboot recovery, now flash dm_verity_force_encrption disabler, now reboot system, it works for me 9 out of 10 times, hope this helps, cheers.

well i am decrypted too. :good:
will try it once need arises to restore
thanks a lot for your help mate.


have you performed a restore on pie rom yet with above mentioned success rate?
 

kingwicked

Senior Member
Aug 11, 2011
767
515
123
www.kingwicked.deviantart.com
yes I have been on pie since beta 1, now I am on beta 4, cheers.

i had a need to restore my nandroid on pie. and i failed with above method mate. device was rebooting in fastboot mode after restore and twrp lost when i restarted with above steps

I was stuck on black screen with notification light on.\

i tried to adb fastboot boot twrp blu got this error

>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 0.630s]
booting...
FAILED (remote: Failed to load/authenticate boot image: Load Error)
finished. total time: 0.651s

then i tried this command

fastboot flash boot twrp-3.2.3-x_blu_spark_v9.86_op6.img
target reported max download size of 536870912 bytes
sending 'boot_a' (28788 KB)...
OKAY [ 0.666s]
writing 'boot_a'...
OKAY [ 0.116s]
finished. total time: 0.803s

then also flashed to partition b

fastboot flash boot_b twrp-3.2.3-x_blu_spark_v9.86_op6.img
target reported max download size of 536870912 bytes
sending 'boot_b' (28788 KB)...
OKAY [ 0.669s]
writing 'boot_b'...
OKAY [ 0.148s]
finished. total time: 0.841s

tried to fastboot boot twrp blu spark but failed
then tried to fastboot official twrp that worked

restored my backup which was saved on phone and thankfully sdcard didnt get messed maybe because of being decrypted

but still was not able to boot into system

then i adb pushed OOS Pie Stable zip to phone

flashed OOS Pie without any wipes as previous backup was restored.
flashed twrp Blu spark and tried to boot into system

but still returned back to twrp but now on blu spark
flashed magisk 17.1
restarted system

and voila backup has been restored on OOS PIE.
it had password and fingerprint even that made no issue
 
Last edited:

vtec303

Senior Member
Sep 19, 2007
1,345
419
113
Manchester
i had a need to restore my nandroid on pie. and i failed with above method mate. device was rebooting in fastboot mode after restore and twrp lost when i restarted with above steps

I was stuck on black screen with notification light on.\

i tried to adb fastboot boot twrp blu got this error

>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 0.630s]
booting...
FAILED (remote: Failed to load/authenticate boot image: Load Error)
finished. total time: 0.651s

then i tried this command

fastboot flash boot twrp-3.2.3-x_blu_spark_v9.86_op6.img
target reported max download size of 536870912 bytes
sending 'boot_a' (28788 KB)...
OKAY [ 0.666s]
writing 'boot_a'...
OKAY [ 0.116s]
finished. total time: 0.803s

then also flashed to partition b

fastboot flash boot_b twrp-3.2.3-x_blu_spark_v9.86_op6.img
target reported max download size of 536870912 bytes
sending 'boot_b' (28788 KB)...
OKAY [ 0.669s]
writing 'boot_b'...
OKAY [ 0.148s]
finished. total time: 0.841s

tried to fastboot boot twrp blu spark but failed
then tried to fastboot official twrp that worked

restored my backup which was saved on phone and thankfully sdcard didnt get messed maybe because of being decrypted

but still was not able to boot into system

then i adb pushed OOS Pie Stable zip to phone

flashed OOS Pie without any wipes as previous backup was restored.
flashed twrp Blu spark and tried to boot into system

but still returned back to twrp but now on blu spark
flashed magisk 17.1
restarted system

and voila backup has been restored on OOS PIE.
it had password and fingerprint even that made no issue
very sorry to hear you ran into problems, as I have mentioned before my method only works if only three partitions are backed up, boot, system and data, if any other partition are/is in the backup, it will not restore especially vendor and vendor image, next time when you do a nand backup only check boot, system and data as well as efs if you want, hope this helps, cheers.
 

tabletalker7

Senior Member
Nov 9, 2015
424
194
0
I did do a search and found and tried a couple different recommended? methods that r supposed to work. Didn't for me.
What is the PROPER procedure to make a backup with twrp then restore it if needed. THANKS
This is what I do and it always works.

BACKUP - only do the backup for boot, system, and data. That is all that works anyway

STEPS TO RESTORE

1. Clean flash the room you made the backup on. If using OOS like I am just use a fastboot rom. It will wipe everything for you and makes this possible.

2. Start the rom up and complete the initial setup - you don't need to sign in to Google or install any apps just get through the setup or this will not work

3. If TWRP was installed on the phone for the backup, install the same version of it here. Same thing applies for magisk. When this is all done reboot to recovery.

4. Restore system, data, and boot only.

5. Reboot to system and enjoy.


I know this is complex and a serious pain in the butt, but it is the only way I found to make this thing work. Let me know if you have any questions.
 
  • Like
Reactions: amithiel

fred_gaou

Senior Member
Jul 25, 2014
340
150
0
Here and there
This is what I do and it always works.
Thanks for for sharing your working process.

1. Do you follow the advice of guides around there that suggest to disable lock screen before the backup?

2. Your system is encrypted, right? Or you decrypted it?

3. What version of TWRP and OOS did you use for your successful backup/restore?
 

tabletalker7

Senior Member
Nov 9, 2015
424
194
0
Thanks for for sharing your working process.

1. Do you follow the advice of guides around there that suggest to disable lock screen before the backup?

2. Your system is encrypted, right? Or you decrypted it?

3. What version of TWRP and OOS did you use for your successful backup/restore?
1. I came up with this all on my own, and while some people removed the lock screen stuff, I didn't. There are a few files you will need to delete to remove the lock screen password, but the fingerprint and facial recognition still worked.

2. My system is encrypted - the encryption problems people ran into was from different roms running with different Android security updates. By reinstalling the same rom as the backup was made on, you remove that problem.

3. This worked with both official and bluspark TWRP and on every official OOS rom, and I even tried it on a few of the open betas, until I got sick of the open betas. I haven't tried it on OOS 9.0.3 yet, but I doubt there is a problem there.

EDIT: The file that needs deleted is data/system/locksetting.db you can delete it with the TWRP file manager, and this process also works on OOS 9.0.3
 
Last edited:
  • Like
Reactions: fred_gaou

fred_gaou

Senior Member
Jul 25, 2014
340
150
0
Here and there
1. I came up with this all on my own, and while some people removed the lock screen stuff, I didn't. There are a few files you will need to delete to remove the lock screen password, but the fingerprint and facial recognition still worked.
EDIT: The file that needs deleted is data/system/locksetting.db you can delete it with the TWRP file manager, and this process also works on OOS 9.0.3
Yes. This guide from @funkwizard for OP6T lists all files, if present, that should be deleted in /data/sytem/ if any one forgot to disable unlock screen during backup.

2. My system is encrypted - the encryption problems people ran into was from different roms running with different Android security updates. By reinstalling the same rom as the backup was made on, you remove that problem.
Good to know.

3. This worked with both official and bluspark TWRP and on every official OOS rom, and I even tried it on a few of the open betas, until I got sick of the open betas. I haven't tried it on OOS 9.0.3 yet, but I doubt there is a problem there.
Very valuable feedback. Thanks for sharing your experiences.