Related
My OP6 is running an unofficial build of LineageOS 15 on top of the OOS 5.1.6 firmware. It was set up using TWRP 3.2.2-0, but the install process I used required replacing TWRP with the stock recovery on both A & B before it would boot properly.
Recently, after swapping SIMs (coincidence?), it's been refusing to boot to a usable state. It stops booting before it gets to the unlock screen, in a halfway state where the volume control works but nothing else. This unofficial setup has been a bit of hack and I've long meant to rebuild it, so I don't really want to dedicate time to fixing whatever's been corrupted.
Instead, I'd like to backup the currently encrypted data partition, and put an official LineageOS 16 build on it.
Should be simple enough, but TWRP 3.2.2-0 won't decrypt the data partition, instead giving a password failed error. I think there was a bug or incompatibility at the time. I've tried fastboot boot on TWRP 3.2.3-0 through 3.3.1-2 in the stock, blu_spark, and mauronofrio builds, but none of them will boot, instead giving a solid notification light.
I'm speculating that the issue is a firmware mismatch.
My plan is to:
Update firmware to the latest OTA (34?) for OOS 9
Fastboot boot twrp 3.2.3 or 3.3.1 (not sure which will work) to decrypt and backup data
Follow the instructions in the LineageOS 16 official thread to get on a more stable configuration
Anything I'm missing?
I don't think it would work. Different installations have different decryption keys, so you cannot decrypt your encrypted data from one installation to another. Besides, I don't think it's possible to backup encrypted data (not sure). Also, with a major OS upgrade, like from LOS 15 to LOS 16, it's not advisable to dirty flash upgrade; it's better to start clean.
Best you can do is back up your data using Titanium Backup or Swift Backup then copy it to a computer, and include all your other files in the internal storage. I use Swift Backup when migrating ROMs. Swift Backup includes free trial, you can take advantage of that. This of course, would only work if you are rooted.
remewer said:
I don't think it would work. Different installations have different decryption keys, so you cannot decrypt your encrypted data from one installation to another.
Click to expand...
Click to collapse
I don't plan to do a different installation, until after I've decrypted data and made a backup.
Besides, I don't think it's possible to backup encrypted data (not sure).
Click to expand...
Click to collapse
I don't plan to backup encrypted data. I plan to decrypt it (using a compatible version of TWRP) and then make my backup using TWRP's nandroid backup (or hell, just a file copy of the important stuff).
Also, with a major OS upgrade, like from LOS 15 to LOS 16, it's not advisable to dirty flash upgrade; it's better to start clean.
Click to expand...
Click to collapse
I'm not proposing to do a dirty flash, but to start clean. But I'd rather not start clean until after I've backed up the (currently inaccessible) encrypted data.
I haven't made the time to tackle this but I may try it out tonight.
Right now I can boot from TWRP, but it's an older version and it won't decrypt Data. I think a newer version would, but the newer versions won't boot (fails with a black screen and blue notification LED). I suspect the newer TWRP requires newer firmware.
My plan is:
Flash firmware only (not the OS, just firmware for modems, etc)
Boot from the most recent TWRP
Decrypt Data, and use TWRP's backup or ADB to grab files I want to backup
Do a clean installation of Lineage16
If I'm wrong I'll lose a few months of data that didn't get backed up.
I have a galaxy S9 which I find perfect for what I do, everything.
But I usually reset the phone to install new custom ROMs and I have about 30 email registered in my Gmail app and in my phone. I need the most of then everytime I reinstall a Rom to my phone so adding them every time is annoying because I need to put email and password for each one.
Is there a solution to backup and restore them every time I install a rom? Is there a system file where they are stored?
Pierfranc said:
I have a galaxy S9 which I find perfect for what I do, everything.
But I usually reset the phone to install new custom ROMs and I have about 30 email registered in my Gmail app and in my phone. I need the most of then everytime I reinstall a Rom to my phone so adding them every time is annoying because I need to put email and password for each one.
Is there a solution to backup and restore them every time I install a rom? Is there a system file where they are stored?
Click to expand...
Click to collapse
ROMs don't play well with data that was created/restored from a different ROM. That won't work if you are flashing ROMs that are different from the one you have installed, but, it may or may not work when flashing updates of the ROM that you already have installed. For example, if you have a LineageOS ROM installed and then flash a RemixOS ROM, you can't restore data from LineageOS in the RemixOS ROM but if you have LineageOS 16 installed and then you flash an updated LineageOS 16 or a LineageOS 17, then you can restore data from LineageOS 16 in the updated LineageOS 16 or LineageOS 17.
It requires root and some form of app that can backup and restore system data and user data. Titanium Backup used to be what you would use but it is no longer supported, it doesn't work like it used to, you'll have to find an app similar to Titanium Backup.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
ROMs don't play well with data that was created/restored from a different ROM. That won't work if you are flashing ROMs that are different from the one you have installed, but, it may or may not work when flashing updates of the ROM that you already have installed. For example, if you have a LineageOS ROM installed and then flash a RemixOS ROM, you can't restore data from LineageOS in the RemixOS ROM but if you have LineageOS 16 installed and then you flash an updated LineageOS 16 or a LineageOS 17, then you can restore data from LineageOS 16 in the updated LineageOS 16 or LineageOS 17.
It requires root and some form of app that can backup and restore system data and user data. Titanium Backup used to be what you would use but it is no longer supported, it doesn't work like it used to, you'll have to find an app similar to Titanium Backup.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Thanks. I am moving to an os based on the same rom so I could restore the backup, but the doubt is which system app should I backup to save the email I have registered.
Pierfranc said:
Thanks. I am moving to an os based on the same rom so I could restore the backup, but the doubt is which system app should I backup to save the email I have registered.
Click to expand...
Click to collapse
The same ROM, not a ROM that is "based" on the same ROM, there is a difference. In other words, you can't restore system data and system settings from a lineageOS ROM in a ROM that is "lineageOS based". Most ROMs are AOSP and LineageOS based, if what you are thinking were possible, we could restore system data and system settings from one LineageOS, ROM in any other ROM that is based on LineageOS, but we can't. Being "based" on the same ROM does not make them "similar enough" to use sysyem data and system settings from one in the other. If you have a lineageOS ROM, you can only restore that system data and system settings in another LineageOS ROM. If you have a lineageOS "based" ROM, you can only restore system data and system settings from that ROM in an updated version of that same LineageOS "based" ROM, not another LineageOS "based" ROM. RemixOS and many other ROMs are all LineageOS based but you can't restore system data and system settings from LineageOS in a RemixOS, this leads to issues, bugs and crashes.
What you are looking to backup and restore isn't a system app. What you want to backup and restore is system data and system settings. But, be aware, this doesn't always work even when restoring that data in an updated version of the exact same ROM.
Am I making this any more clear for you?
This only applies to system data, restoring user data from one ROM to a different ROM is usually not an issue because the system itself being different, generally, has no effect on user data, only system related data.
One thing you can try that sometimes works is to flash your new ROM without doing any of the wipes, this is called a "dirty flash". It leaves all of your data untouched and flashes the new ROM without touching your existing data. But, you might get a bootloop or you might get repeated crashes, force closes and random reboots, which indicates that your data can't be used by the new system.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
The same ROM, not a ROM that is "based" on the same ROM, there is a difference. In other words, you can't restore system data and system settings from a lineageOS ROM in a ROM that is "lineageOS based". Most ROMs are AOSP and LineageOS based, if what you are thinking were possible, we could restore system data and system settings from one LineageOS, ROM in any other ROM that is based on LineageOS, but we can't. Being "based" on the same ROM does not make them "similar enough" to use sysyem data and system settings from one in the other. If you have a lineageOS ROM, you can only restore that system data and system settings in another LineageOS ROM. If you have a lineageOS "based" ROM, you can only restore system data and system settings from that ROM in an updated version of that same LineageOS "based" ROM, not another LineageOS "based" ROM. RemixOS and many other ROMs are all LineageOS based but you can't restore system data and system settings from LineageOS in a RemixOS, this leads to issues, bugs and crashes.
What you are looking to backup and restore isn't a system app. What you want to backup and restore is system data and system settings. But, be aware, this doesn't always work even when restoring that data in an updated version of the exact same ROM.
Am I making this any more clear for you?
This only applies to system data, restoring user data from one ROM to a different ROM is usually not an issue because the system itself being different, generally, has no effect on user data, only system related data.
One thing you can try that sometimes works is to flash your new ROM without doing any of the wipes, this is called a "dirty flash". It leaves all of your data untouched and flashes the new ROM without touching your existing data. But, you might get a bootloop or you might get repeated crashes, force closes and random reboots, which indicates that your data can't be used by the new system.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
No I can't do a dirty flash because this rom has bugs and I don't want find again them. I want a clean install.
But also don't want to add again all the email which I am logged in on this rom. So I just want find a fast way to save them. Do you know any alternatives? Maybe a file where these logins are saved in system folder so I can edit it in the new rom.
Also because all these email registered in any Google applications, once you add them in Gmail, you can login with them in PlayStore and other apps. So there should be a general file which store this data.
Pierfranc said:
No I can't do a dirty flash because this rom has bugs and I don't want find again them. I want a clean install.
But also don't want to add again all the email which I am logged in on this rom. So I just want find a fast way to save them. Do you know any alternatives? Maybe a file where these logins are saved in system folder so I can edit it in the new rom.
Also because all these email registered in any Google applications, once you add them in Gmail, you can login with them in PlayStore and other apps. So there should be a general file which store this data.
Click to expand...
Click to collapse
You should be able to use something like Titanium Backup or Helium to backup the data for each account and you may be able to restore them that way. It requires root though.
Or, you can do some searching involving using adb backup to achieve this.
TWRP 3.5.2 supports backup/restore. Does anyone use this feature?
I plan to upgrade stock ROM from android 10 to android 11 and there are some complains about android 11. It would be nice to know if it is easy to switch between android 10 and android 11 using TWRP.
i928 said:
TWRP 3.5.2 supports backup/restore. Does anyone use this feature?
I plan to upgrade stock ROM from android 10 to android 11 and there are some complains about android 11. It would be nice to know if it is easy to switch between android 10 and android 11 using TWRP.
Click to expand...
Click to collapse
If you use Xiaomi cloud, calls, sms, mms, call recording will be saved.
You can use Miphone assistant for the same thing (backing up some apps with data, themes, etc., don't back up the launcher elements because of 10 to 11).
For apps, use an apps like Titanium or others.
With Twrp, the backup is not 100% reliable, especially with the switch from Android 10 to 11.
NOSS8 said:
If you use Xiaomi cloud, calls, sms, mms, call recording will be saved.
You can use Miphone assistant for the same thing (backing up some apps with data, themes, etc., don't back up the launcher elements because of 10 to 11).
For apps, use an apps like Titanium or others.
With Twrp, the backup is not 100% reliable, especially with the switch from Android 10 to 11.
Click to expand...
Click to collapse
Thanks! That is what I do now. Miflash stock ROM, recover messages from Xiaomi cloud, and restore app/data using Titanium Backup.
i928 said:
Thanks! That is what I do now. Miflash stock ROM, recover messages from Xiaomi cloud, and restore app/data using Titanium Backup.
Click to expand...
Click to collapse
Use Miflash https://forum.xda-developers.com/t/guide-use-xiaomi-flash-tool.4262425/
Hello folks,
I'm not an android developer & don't have much android technical experience.
I recently purchased a OnePlus 8T & I'm interested placing a custom ROM on it.
I would like to have nandroid backups of this device. Specifically, I'd like to backup the OS, OS settings, Apps, & App settings. I'd like to do this backup without a PC or internet connection; using only the device itself.
I originally planned on using TWRP because when I installed it on my Galaxy Note 4 the nandroid backup & restores were quick & simple.
I've been researching the use of TWRP on the 8T. An unofficial version of TWRP is available for the OnePlus 8T.
However, on the XDA Discord Server, some have suggested against installing TWRP on this device.
I did a keyword search "OnePlus 8T nandroid backup" & get these reports that suggest using TWRP: Nandroid Backup? & OnePlus 8T TWRP Recovery. With the same keyword search I find this article, Nandroid/Complete Phone Backup Or Similar Without TWRP?, that says to use Migrator that is a Magisk Module.
One person on the XDA Discord Sever also suggested Migrator. I haven't been able to find much on this. I do a keyword search & find only this post on XDA & the GitHub description. Some on XDA have reported trouble with this not working & people losing data. Although I see suggestions about performing a nandroid backup before using Migrator, I didn't see anything about this app itself having a nandroid backup feature.
These articles also suggests installing TWRP on the OnePlus 8T: Best Custom Roms For OnePlus 8T [Android 12]- Install Via TWRP & Comprehensive Guide to Install TWRP Recovery and Root Your OnePlus 8 / 8T.
Other search engine results for "nandroid backup" in general also say to use of CWM or TWRP. They include: What Is A Nandroid Backup and How Exactly Does It Work? & How to Create and Restore NANDroid Backup?.
Are these people all mistaken?
Why they are suggesting this, when other experts on the android OS are advising against it?
Then I started wondering if there was an alternate custom recovery option for this device. I found this article, Best Custom Recovery for Android devices 2021, that says there are 4 other custom recoveries available besides TWRP. They include: OFRP, SHRP, PBRP, RWRP. I briefly did a search to & found no info about their compatibility with the OnePlus 8T.
-OFRP, originally designed for the Xiaomi devices, for OnePlus there is only unofficial that's available for the Nord.
-SHRP, not available for the OnePlus 8T, only available for 6, 6T, & 6 Pro, according to this post.
-PBRP, is not available for the OnePlus 8T.
-RWRP, no information on this custom recovery being available for the OnePlus 8T.
So, from what I understand none of these are compatible with the OnePlus 8T.
Based on what I've gathered so far, it appears there is no stable custom recovery exists for the OnePlus 8T.
Is this right?
I have Titanium Backup. However, that doesn't do nandroid backups.
I did a search on Google Play for "nandroid backup" & found these apps: Alpha Backup Pro; Swift Backup; ROM Manager (ClockworkMod). When I observed the description for Alpha Backup Pro & Swift Backup I don't see anything about nandroid backups. ROM Manager doesn't specifically mention nandroid backups. However, it does say that it manages ROMs & installs ROMS. Is this basically a nandroid backup? One comment for this app says it requires CWM installed in the recovery of the device.
This article, How to Backup Android Device Completely suggests FlashFire, that it describes as "a multi-utility tool for rooted users. It allows a rooted Android user to perform multiple actions like wiping partitions, flashing ROMs and OTAs, and most stuff that only a recovery could do." The FlashFire description on Google Play has no reference to nandroid backups. Yet, it does say that it "offers full device backup and restore functionalities in several formats." Would that include nandroid?
Once again, I'd like to find a way to to easily & quickly perform a nanroid backup of the OnePlus 8T without a PC or internet connection. The backup would include: OS, OS settings, Apps, App settings (without data).
Any useful suggestions would be greatly appreciated!
thank you,
I can say nothing about Migrator, but you can backup/restore at least /data with TWRP.
[CLOSED] [No longer maintained] [RECOVERY] [11] [OFFICIAL] TeamWin Recovery Project (8T / Kebab) (2022-03-09)
Introduction: Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added...
forum.xda-developers.com
As far as i know full stock OOS ROM backup (and especially restore) is problematic on 8T due to virtual a/b partitions.
Rootk1t said:
I can say nothing about Migrator, but you can backup/restore at least /data with TWRP.
[CLOSED] [No longer maintained] [RECOVERY] [11] [OFFICIAL] TeamWin Recovery Project (8T / Kebab) (2022-03-09)
Introduction: Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added...
forum.xda-developers.com
As far as i know full stock OOS ROM backup (and especially restore) is problematic on 8T due to virtual a/b partitions.
Click to expand...
Click to collapse
It's not "problematic" if you do what I mentioned in https://forum.xda-developers.com/t/...ect-8t-kebab-2021-09-04.4302449/post-85465241
In the "new" virtual a/b world of the 8T the equivalent of the "old" boot+system backup is now boot+dtbo+super.
Have just upgraded a 7 Pro from OOS 11 to Paranoid Android 12 and had a rough experience trying to restore apps/data. Getting ready to help a friend do the same for another 7 Pro.
It doesn't seem like Clone Phone can do local backup/restore and I can see some noticeable differences in the backup/restore functionality between what is available on OOS 11 and PA 12. Are there any recommended (non-root and non-TWRP for that matter) options to backup and restore non-system apps and data for this type of ROM upgrade?