[Q] Adb backup > unlock bootloader > adb restore. Will it work? - ONE Q&A, Help & Troubleshooting

My question is this: I want to take an adb backup, then unlock my bootloader, then restore the adb backup. Will it work (and not brick my device like I've done before!), and if so, will my bootloader still be unlocked or will it be locked again ?
Thanks for advice. If it's really necessary I know I can lose my data and restore everything, but it's a time-wasting pain so I thought I'd try it this way!
Currently I'm on 05Q official stock, no root/busybox, stock recovery and kernel. I.e. everything stock.

pmedwards25 said:
My question is this: I want to take an adb backup, then unlock my bootloader, then restore the adb backup. Will it work (and not brick my device like I've done before!), and if so, will my bootloader still be unlocked or will it be locked again ?
Thanks for advice. If it's really necessary I know I can lose my data and restore everything, but it's a time-wasting pain so I thought I'd try it this way!
Currently I'm on 05Q official stock, no root/busybox, stock recovery and kernel. I.e. everything stock.
Click to expand...
Click to collapse
What about
fastboot boot (twrp) recovery.img
And then make a backup in recovery
And copy the backup somewhere safe
I'm not sure if that works on 5Q though

waterdaan said:
What about
fastboot boot (twrp) recovery.img
And then make a backup in recovery
And copy the backup somewhere safe
I'm not sure if that works on 5Q though
Click to expand...
Click to collapse
Isn't that the same as adb backup?

pmedwards25 said:
Isn't that the same as adb backup?
Click to expand...
Click to collapse
A backup in recovery backs up
System
Data
It won't backup your sdcard
I don't know what adb backup does, I think it backs up your apps and data

waterdaan said:
A backup in recovery backs up
System
Data
It won't backup your sdcard
I don't know what adb backup does, I think it backs up your apps and data
Click to expand...
Click to collapse
You can add parameters to make it backup system, apks, app data, sdcard and others. Should this work in theory?

waterdaan said:
What about
fastboot boot (twrp) recovery.img
And then make a backup in recovery
And copy the backup somewhere safe
I'm not sure if that works on 5Q though
Click to expand...
Click to collapse
You can't boot a recovery with a locked bootloader anymore, they patched that way back in the 30O update I believe.
Transmitted via Bacon

Related

[Q] can i take a nand back up from another device?

if i install twrp on my unrooted sm-t210r and do a nand backup, can i take that back up and flash it on another sm-t210r? or are they only for the device you backed it up for? does it back up serail #'s and stuff like that or are they generic like a rom?
countryboy318 said:
if i install twrp on my unrooted sm-t210r and do a nand backup, can i take that back up and flash it on another sm-t210r? or are they only for the device you backed it up for? does it back up serail #'s and stuff like that or are they generic like a rom?
Click to expand...
Click to collapse
You can transfer NANDROID backups to same model devices and flash them just fine. They a snapshot of your device so not as generic as a ROM (Think of it almost like a personal ROM) but they don't backup serial number and things like that, which allowes you to flash the backups on identical model devices.
Sent from my SCH-I535 using XDA Premium 4 mobile app
thanks thats great!
any problems with only installing twrp and not rooting? would twrp void warranty?
countryboy318 said:
thanks thats great!
any problems with only installing twrp and not rooting? would twrp void warranty?
Click to expand...
Click to collapse
Does your device have fastboot mode? What you can do if it does is boot into the bootloader and then run the fastboot command:
Code:
fastboot boot <name-of-your-recovery>.img
This will allow you to temporarily boot TWRP make a backup (You can then transfer that to a computer and then transfer it to your other device) without permanently flashing it to the device (Keeping your warranty intact). Overall if you try what I suggested you should have no problems only installing TWRP and not rooting also.

[Q] Backup without Root/Unlocked Bootloader

Hi I want to unlock the bootloader and root my phone, but before I am doing this I want to make a backup(for the case that i need to take the warranty).Its called Nandroid Backup. How can I do this without root access and so on?
CyBeR54 said:
Hi I want to unlock the bootloader and root my phone, but before I am doing this I want to make a backup(for the case that i need to take the warranty).Its called Nandroid Backup. How can I do this without root access and so on?
Click to expand...
Click to collapse
unlock the bootloader, flash a custom recovery. it might be possible to make a backup without root, and without unlocking the bootloader with adb(bit not sure).
What Simms said.
Just unlock, flash twrp or whatever...and nandroid.
Then you're covered. It takes 10 minutes to flash stock firmware if you're worried about ota's.
There's no better way to get a complete backup.
Wait, if you unlock the bootloader you'll wipe the device. Try helium backup before you unlock.
Sent from my Nexus 5
jd1639 said:
Wait, if you unlock the bootloader you'll wipe the device. Try helium backup before you unlock.
Sent from my Nexus 5
Click to expand...
Click to collapse
Lol. Great point!
I just assumed he wanted a fresh backup of stock. But yeah.....forgot to mention unlocking wipes the SD.
jd1639 said:
Wait, if you unlock the bootloader you'll wipe the device. Try helium backup before you unlock.
Sent from my Nexus 5
Click to expand...
Click to collapse
True, however OP wants a backup for warranty purposes which leads me to thinking he wants a system dump.
However, if that's the case it's pointless as it would be rooted. Also all the factory images are officially available from google so it isn't a concern.
Sent from my Nexus 5 using Tapatalk
CyBeR54 said:
Hi I want to unlock the bootloader and root my phone, but before I am doing this I want to make a backup(for the case that i need to take the warranty).Its called Nandroid Backup. How can I do this without root access and so on?
Click to expand...
Click to collapse
You don't need to do that with a Nexus. Google puts out factory images if you ever need to go back to stock.
https://developers.google.com/android/nexus/images#hammerhead
Link to the aforementioned factory images.
CyBeR54 said:
Hi I want to unlock the bootloader and root my phone, but before I am doing this I want to make a backup(for the case that i need to take the warranty).Its called Nandroid Backup. How can I do this without root access and so on?
Click to expand...
Click to collapse
as mentioned before, you must flash a custom recovery for a "nandroid backup".
yes, you can backup apps and their data and sdcard with adb commands, no need for rooting or unlocking bootloader...
follow this.
Thank you guys your comments helped me much :good: :laugh:

[Q] Restoring CWM backup folders using fastboot.

Is it possible and if yes then how would I restore (using fastboot) a CWM backup folder containing:
boot.img
cache.ext4.tar
cache.ext4.tar.a
data.ext4.tar
data.ext4.tar.a
nandroid.md5
recovery.img
recovery.log
system.ext4.tar
system.ext4.tar.a
I want to use fastboot and not just restore from recovery because it would be very useful to know this.
Thanks
Fastboot no way.
You can adb push the backup to your sdcard and restore it via recovery.
I wouldn't expect extracting the backup and adb pushing the contents to system or data would be a good idea
You could restore an adb backup though but with all this, I'd have to ask "why?"
Sent from my Nexus 5 using Tapatalk
rootSU said:
Fastboot no way.
You can adb push the backup to your sdcard and restore it via recovery.
I wouldn't expect extracting the backup and adb pushing the contents to system or data would be a good idea
You could restore an adb backup though but with all this, I'd have to ask "why?"
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I wanted to see if this was possible so that after trying android L i could easily restore everything. I am assuming that installing android l using fastboot will revert my CWM recovery back to stock so then I wouldn't be able to restore my old setup. That's my reasoning.
I haven't looked at the L download but I doubt very much a developer preview of Android would contain a recovery.img
In any case you'd still be without recovery
Sent from my Nexus 5 using Tapatalk
nmushkin said:
I wanted to see if this was possible so that after trying android L i could easily restore everything. I am assuming that installing android l using fastboot will revert my CWM recovery back to stock so then I wouldn't be able to restore my old setup. That's my reasoning.
Click to expand...
Click to collapse
Yes, flashing all the L img files will replace the custom recovery with the stock one. If you want to restore, all you gotta do is flash back cwm and then restore.
vin4yak said:
Yes, flashing all the L img files will replace the custom recovery with the stock one. If you want to restore, all you gotta do is flash back cwm and then restore.
Click to expand...
Click to collapse
odd. Why do they provide a stock recovery?
Anyway yeaf flash recovery, adb push your /sdcard contents back and restore. Since you have to wipe /sdcard, you'll already be needing to push back
rootSU said:
odd. Why do they provide a stock recovery?
Click to expand...
Click to collapse
Yes, it's strange as it's a "developer's preview". Since it can be accessed by the general public as well, they thought of including the recovery as well. All the previous factory images had bootloaders, recoveries even though they weren't updated so they might have stuck on this practice in this release as well :silly:
rootSU said:
odd. Why do they provide a stock recovery?
Anyway yeaf flash recovery, adb push your /sdcard contents back and restore. Since you have to wipe /sdcard, you'll already be needing to push back
Click to expand...
Click to collapse
They provide it most likely because it's a part of AOSP. And they know not only devs will flash this. No OTA updates too..

How to make a flasheable backup

I've been using my Moto G3 without problems, It's bootloader unlocked, rooted and with custom recovery; I have been read about hardbricks after updates and bootloops after OTA updates... so I have a question:
Is it possible to make a flasheable backup of my entire system so I can use it to rescue after any problem?
All that can help would be well received
If your system is working, just make a Backup via Twrp and place it on your pc or a sd card
so you can acces it even when you did a factory reset
(Edit: i know what you mean here is a link to do that, didn't test it but i think it will work)
(i recommend just flashing to factory firmware files)
HelpMeruth said:
If your system is working, just make a Backup via Twrp and place it on your pc or a sd card
so you can acces it even when you did a factory reset
(Edit: i know what you mean here is a link to do that, didn't test it but i think it will work)
(i recommend just flashing to factory firmware files)
Click to expand...
Click to collapse
Thanks HelpMeruth .
I already have the TWRP backup, but I'm looking for a way to "fully backup" my phone and that can be flasheable via fastboot.exe in case of emergency ...
I'll read the link you share me :good:
If its any help, Titanium Backup will make a flashable zip of all your apps and data that can be flashed with TWRP.
Sent from my GT-P5210 using Tapatalk
Tel864 said:
If its any help, Titanium Backup will make a flashable zip of all your apps and data that can be flashed with TWRP.
Sent from my GT-P5210 using Tapatalk
Click to expand...
Click to collapse
thanks for the advice Tel864 .

Bootloop + Encrypted Data

So I wanted to try out LOS 16. I made a full TB backup and a Nandroid backup on TWRP. I flashed Open Beta 2 for the firmware and booted. Everything was fine, but OB 2 is not my thing so I went like planned and booted into TWRP to wipe and flash LOS. This was when it went downhill: TWRP no longer prompts me for a password and all my files are encrypted.
Even so I flashed LOS and it boot just fine but all my files are no longer there.
I will try to avoid a full wipe down. It's painful af, and since i got the 6 it's the second or third time that I'm at this point. I don't get it.
At this point all i want is to decrypt my data and restore my nandroid. Does anyone know how to achieve this?
Thanks in advance
quimbexa said:
So I wanted to try out LOS 16. I made a full TB backup and a Nandroid backup on TWRP. I flashed Open Beta 2 for the firmware and booted. Everything was fine, but OB 2 is not my thing so I went like planned and booted into TWRP to wipe and flash LOS. This was when it went downhill: TWRP no longer prompts me for a password and all my files are encrypted.
Even so I flashed LOS and it boot just fine but all my files are no longer there.
I will try to avoid a full wipe down. It's painful af, and since i got the 6 it's the second or third time that I'm at this point. I don't get it.
At this point all i want is to decrypt my data and restore my nandroid. Does anyone know how to achieve this?
Thanks in advance
Click to expand...
Click to collapse
if all you did was temp boot twrp on pie, temp boot twrp can not decrypt data. You have to flash twrp to phone then reboot to twrp. Second, twrp can not restore backups of stock roms. Third, to go back to any oreo rom will require a format data to fix.
MrSteelX said:
if all you did was temp boot twrp on pie, temp boot twrp can not decrypt data. You have to flash twrp to phone then reboot to twrp. Second, twrp can not restore backups of stock roms. Third, to go back to any oreo rom will require a format data to fix.
Click to expand...
Click to collapse
I'm pretty sure temp TWRP can decrypt data. I do it all the time. Regarding the restore, I wouldn't know, haven't tried yet but I think it would work, had I been able to decrypt it. Whatever. Full wipe it is.
quimbexa said:
I'm pretty sure temp TWRP can decrypt data. I do it all the time. Regarding the restore, I wouldn't know, haven't tried yet but I think it would work, had I been able to decrypt it. Whatever. Full wipe it is.
Click to expand...
Click to collapse
I know for 100% that it can't on temp boot for pie. it is a learning experience on this phone.
MrSteelX said:
I know for 100% that it can't on temp boot for pie.
Click to expand...
Click to collapse
I'm on Oreo mate.
quimbexa said:
I'm on Oreo mate.
Click to expand...
Click to collapse
after reading your first post, you are on pie.
MrSteelX said:
after reading your first post, you are on pie.
Click to expand...
Click to collapse
The backup I made was of Oreo. And on Pie it did temp boot, but was unable to decrypt and restore. Too bad.
I restored the phone using a fastboot stock ROM, but now I get strange signal drops followed by the phone locking itself
quimbexa said:
The backup I made was of Oreo. And on Pie it did temp boot, but was unable to decrypt and restore. Too bad
Click to expand...
Click to collapse
by flashing pie, your phone is on pie UNTIL you flash oreo rom.
MrSteelX said:
by flashing pie, your phone is on pie UNTIL you flash oreo rom.
Click to expand...
Click to collapse
So your suggestion would be to flash Oreo over Pie, boot (if it managed to boot), setup a new pattern, then TWRP and decrypt from there?
https://forums.oneplus.com/threads/...vice-tree-kernel-source-for-oneplus-6.833612/ this is how to fix this mess you are in.
or you could reflash beta 2 to access your data right now.
MrSteelX said:
if all you did was temp boot twrp on pie, temp boot twrp can not decrypt data. You have to flash twrp to phone then reboot to twrp. Second, twrp can not restore backups of stock roms. Third, to go back to any oreo rom will require a format data to fix.
Click to expand...
Click to collapse
twrp can not restore backups of stock roms? that's the first time I'm reading that... do you know the reason for that?
MJFox78 said:
twrp can not restore backups of stock roms? that's the first time I'm reading that... do you know the reason for that?
Click to expand...
Click to collapse
it's because of the encryption used on oneplus6. We can make backups with twrp, it just fails on the restore part.
MrSteelX said:
it's because of the encryption used on oneplus6. We can make backups with twrp, it just fails on the restore part.
Click to expand...
Click to collapse
so if I decrypt the device restoring will work?
MJFox78 said:
so if I decrypt the device restoring will work?
Click to expand...
Click to collapse
only if backup is decrypted aswell
MrSteelX said:
only if backup is decrypted aswell
Click to expand...
Click to collapse
makes sense... thanks!
MJFox78 said:
makes sense... thanks!
Click to expand...
Click to collapse
I can get TWRP backups to work just fine on stock OOS, but I follow a weird process.
1. Store backup on something other than the phone (I got a USB OTG SD card reader/writer - I use a 128GB SD card to hold my stuff)
2. Use a fastboot rom to flash the same rom as the backup was made on. They are in this thread https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665
3. After flashing the fastboot rom start up the phone and go through the whole setup process (I don't know why but it doesn't work when I don't do this)
4. Install TWRP. Instructions can be found in this thread https://forum.xda-developers.com/oneplus-6/how-to/guide-how-to-install-official-twrp-t3801558 don't just boot TWRP, actually install TWRP (it might work if you just boot TWRP, I never tried it so I can't make any claims that it works)
5. Move your backup back to the phone and restore it in TWRP.
I have done this probably 100 times by now and it ALWAYS works. It is just how funky the encryption is on the OP6 that makes us go through hell to do something this simple. Try this.

Categories

Resources