Question Can I skip wiping internal storage while changing roms? - OnePlus 9 Pro

Everytime I have to change my rom, My apks , music, books get wiped. Is there a possibiltiy to not wipe internal storage, just format , like it used to happen on a only devices?

Switching roms would require you to wipe, you may use some software to backup and restore your apps if you have root access. I don't flash roms now, but when I use to I used Titanium Backup for this, you can try it if it still works.

The OxygenOS @Funk Wizard? Lol

Bupreno said:
Everytime I have to change my rom, My apks , music, books get wiped. Is there a possibiltiy to not wipe internal storage, just format , like it used to happen on a only devices?
Click to expand...
Click to collapse
If you are going between custom ROMs of the same base version (meaning they all use the same OOS base like C.62), you do not have to do the wipe operation and can just dirty flash, but it's highly recommended to do a wipe so you don't have weird issues. If you do decide to dirty flash, at least do the dev the courtesy of holding off any bug reports until after you factory reset because if you have a weird problem nobody else is reporting, there's a pretty good chance it's because you dirty flashed.
If you're going between stock ROMs, that's a bit more complicated. I have successfully used Fastboot Enhance to upgrade, downgrade, and crossflash between different versions and it generally works as long as I'm not trying to downgrade or upgrade between Android 11 and 12 and I make sure to delete all the cow partitions in the partition screen before starting the flash. Trying to go from ColorOS 13 beta back to C.62 didn't work either but I have flashed between various C builds of OOS for different regions as well as ColorOS 12.1 and they've all worked.
That said, you should always do a full backup because things do go wrong. I have done it so many times on this phone that I have it down to a science now. I hook my phone up and use adb pull -a /sdcard to grab everything, do a system backup to Google Drive using the backup option in settings, back up my Signal messages, and when I'm on a stock ROM, I use the OnePlus backup to grab all my apps and settings. When I restore, I skip the initial Google account setup, I delete the Android folder from the adb pull folder and drag and drop the rest of it to the root of the storage, then I use the OnePlus backup to restore (if it's a stock ROM), then I log into my Google account and run that restore and the rest of the setup process, then I restore my Signal messages. Doing it in this order, I end up with the least amount of data loss. I don't even have to reconfigure my battery settings for my apps on the stock ROM doing it this way, it's all carried over, which saves me about 15 minutes of turning off optimizations for everything so my notifications work right.

Related

Installing custom roms and "low on memory" warning

I decided to try my first custom ROM... (installing virtous) and have a few questions/issues:
1) I started with a Nandroid backup.
2) I did a full titanium backup
3) I used ROM manager to install Virtous (did a full system swipe)...
Ok.. here is where I am having my issues
After the install, I went back to the marketplace and installed titanium backup.
What option should I restore? I would like to get all the widgets and data restored. I tried restore all apps+system data but I am wondering if that is reinstalling the bloatware that virtous removed. If so, what are the correct options in Titanium backup I should use?
Next, I tried to reinstall everything but I got that dreaded low on storage and then out of storage space error. My phone has lots of storage both internal and on the SD card - so the restore (I am guessing) failed at some indeterminate point. Most of my widgets were not loading properly (beautiful widget, pure calendar, multi-icon etc) after the attempted restore.
Regardless, even if I clean-up the widgets, the low memory message persisted so I was left with no choice but to revert to my previous nandroid backup .
So... how do you install a custom rom and easily reestablish your previous state/settings without getting the low/ out of storage warning?
Also, one of my goals is to get a deodexed rom so I can install custom themes (e.g., battery mods, etc). Can I just flash the deodexed stock rom over my current rom (I did not understand deodexed when I first upgraded to froyo) without having to do a swipe? Will I run into any issues?
Thanks
I tried again with less apps/ data and still have no luck.
I did a restore all apps and system data from titanium, got a low storage than out of storage error (the phone has over 60% of its storage available so I know I am nowhere near close to actually using all the storage).
When titanium completed, most apps forced close (gmail, rom manager, etc) so I assume the storage error is impacting the restore.
Back to my nandroid backup again.
If I am running stock Froyo, can I just flash a new sense based froyo without wiping? (trying to find a way to experiment and really want to get a deodexed rom installed)
When new ROM is flashed, in TB, try reinstalling only user apps, not system apps.
Why?
The new ROM you flash and the ROM you are coming from should both have system apps already in them, so why reinstall system apps from the old ROM that most likely exist in the new ROM?
But how do I reestablish the previous settings? Or do I have to reconfigure all my accounts, etc each time I install a new rom.
Thanks
Me too. How to correct?
uncommon 1.1 on my phone is doing same thing. 1.0 had no problem.
Just a theory as I haven't tried to install another ROM...
I noticed the touchdown data file on my phone was quite big (>70mb) - it appears that when touchdown's data file gets very large, the message appears more often (looks likes there is a bug in Android with large data-sets). I cleared touchdown's data and resynced which shrunk the data file to ~12mb. I reinstalled all the apps I removed to try and eliminate the memory error and so far have been running smoothly.
When I have some time, I am going to try another ROM and see if I can restore without any storage issues. I still am curious how everyone resets their settings from ROM to ROM (or do they manually configure everything each time)
After poking around in astro file manager, contacts(cross-linked mess), and uninstalling some rarely used programs all to no avail......
I fixed my "low on program memory" notification by emptying my deleted items in the mail app- a hotmail account that is rarely used.
Sent from my ADR6300 using XDA App
siteexperts said:
But how do I reestablish the previous settings? Or do I have to reconfigure all my accounts, etc each time I install a new rom.
Thanks
Click to expand...
Click to collapse
To be on the safe side, just reinstall only apps, with or without data. There is no real point in wiping days, and yet reinstalling system apps and data. Kind of defeats the purpose. And yes, manually add accounts. Takes more time, but minimizes conflicts. Shouldn't take more than 30 minutes, which is a small price to pay to eliminate potential headaches.
Sent from my ADR6300 using XDA App
I've run into this as well. In fact it was the original reason I decided to move forward with rooting my phone since I had to wipe it anyway. Has anyone looked into what program monitors this and flags the error? Is memory not being reported correctly, or is there a tolerance that maybe we need to tweak in the code somewhere?

Can we format the whole HardDrive and Start from scratch?

In Windows, we can format the whole hard drive and install a new fresh system. Can we do the same to our Samsung Galaxy S3 - fully format the HD clean and install ROM back?
I test out many JB ROMs, Kernels, & apps - now my phone is full of mess. My phone starts to have many problems, force closes and freezes.
My T-mo S3's IMEI was loss (w/o any backup) - so I injected IMEI back but the data kept trapped in EDGE and suffered constant low signal.
How can I restore my phone to the original condition without any previous traces or residual file?
Greatly appreciate for your help in advance.
Yes u can just use the Super wipe. To find it look into exquizt rom there is a dl for it. But make surebthat u back up everything u need or it will b all gone
Sent from my SGH-T999 using xda app-developers app
I come across his thread on SuperWipe - erase everything in Nand - sound intense: http://forum.xda-developers.com/showthread.php?t=1704758
What do I have to install if everything in NAND is gone? Kernel, ROM, Radio Modem... what else if crucial for reinstalling?
Thanks
Uhm, prolly flash a completely bloated stock firmware via ODIN.
What option do I have beside getting myself a bloated stock firmware? Can I just flash a JB AOKP & Modem? What else am I missing for a phone to properly function?
Thanks
Not sure if that super wipe is compatible with our phones, though. I'd format system/data/cache and wipe sdcard (internal) and just flash something else before I'd try something that hasn't been tested on our devices.
Thanks theexel. My phone has so many useless files all over the place - I want to do some house cleaning and get a fresh start. I have been doing "format system/data/cache and wipe sdcard (internal)" every time I flash. Just want to get back to once it was - everything is clean & well structured.
superlex said:
In Windows, we can format the whole hard drive and install a new fresh system. Can we do the same to our Samsung Galaxy S3 - fully format the HD clean and install ROM back?
I test out many JB ROMs, Kernels, & apps - now my phone is full of mess. My phone starts to have many problems, force closes and freezes.
My T-mo S3's IMEI was loss (w/o any backup) - so I injected IMEI back but the data kept trapped in EDGE and suffered constant low signal.
How can I restore my phone to the original condition without any previous traces or residual file?
Greatly appreciate for your help in advance.
Click to expand...
Click to collapse
You can't really compare a windows partition to an android ROM. Windows stores everything, data, system files, etc on the same partition. Not only that, but when a Windows program installs itself, it copies files to system directories throughout the drive and to the registry.
When you uninstall a Windows program, it's very possible that not all of those files and registry entries are deleted, which is why the drive gets cluttered and needs "spring cleaning" every once in a while.
Android works differently. It has separate partitions for System files and Data files. If you don't manually mess with anything in the /system partition, then it should still be the same as what came with whatever ROM you most recently installed. Any apps or data on your phone is stored in the /data partition only.
If you think your phone needs to be started over from scratch, then the best thing to do is delete the /system partition and the /data partition and reinstall whatever ROM you want to use. The Kernel will automatically be erased and reinstalled whenever you install a new ROM. Anything beyond /system and /data is overkill because all the other stuff gets erased automatically anyway when you install a new ROM.
Good luck.

Can you nandroid restore for apps & settings on new ROM or new version of same ROM?

Can you nandroid restore for apps & settings on new ROM or new version of same ROM?
Many people (myself included) are "flash-happy" and install new ROMs or ROM updates very frequently. While I love flashing new stuff, I hate the process of getting my phone set up all over again. Titanium Backup is currently my go-to app for backing up apps and restoring them after a flash. Nova Launcher has been super-helpful in keeping my widgets. However, many apps don't work until you open them after a restore (1Weather, Adfree, LightFlow, Lux, etc). So generally, the following is my tedious process for flashing:
1. Assign labels in TiBU to the apps I want to restore and run "backup all apps + data"
2. Wipe Data, Cache, Dalvik, Battery Stats
3. Flash ROM, GApps, Kernel, etc. Fix permissions
4. Install TiBU and then painstakingly restore apps (only non-system), then restore data for those apps.
5. Open each app and configure where necessary
6. Go through all the ROM settings and set them the way I like (nav bar icon size, clock posiiton, battery icon, etc etc etc).
Just the thought of going through this whole process makes me hold off on flashing too often, and I usually end up saving flashes for when I have a big chunk of time. Some people, I've noticed, flash new ROMs like they've got nothing better to do. It makes me wonder... do they have some trick for quickly restoring their phones after each flash? Is there some way to condense or streamline steps 4-6 in my process?
A Nandroid backup saves the System and Data partitions. What info does each partition contain? I realize that each ROM is different and it might be problematic to restore settings of one ROM to another, but what if you're simply upgrading to a newer version of the same ROM? I'm wondering if I can make a nandroid backup of CNA 3.6.6 and then restore only the Data partition after flashing CNA 3.8.0 so that the new ROM is in place but all the apps and settings are restored from the previous setup. If this does work, is it stable and smooth?
Or if I'm completely off about using Nandroid for this purpose, does anyone have any methods for getting back up to speed quickly after flashing new ROMs?
In titanium backup you can go to settings > create update.zip so next time you flash a new rom gapps etc you can install the update.zip as well and have TiBu off the back. If you have the pro key it will be more beneficial to you. You do have to log into you google account if you have the pro key before opening TiBu. I use Paranoid Android and I can backup my rom settings idk how CNA does it. That one you might have to manually do.
Between ROM updates you don't have to wipe data. Just Cache and dalvik.
I have recovered my data partition between wipes before but stopped because everytime I update or flash a new rom I usually go for a new look.
Here is my process between flashing new roms
1. Backup everything in TiBu (I already have the update.zip so I skip that. You only need to do it once or if the app gets updated)
2. Go into recovery wipe data, system, cache, dalvik
3. Install rom, gapps, kernel, TiBu
4. Restart
5. Load up sign into google account
6. Open TiBu and restore everything
Some apps naturally won't restore everything like Adfree for example will put the hosts file in your system for you, when you back that app up your only backing up the settings. When you back it up it only backs up the settings. Dropbox and Skydrive I have to manually sign back in. I never had lightflow so I don't know how that works. Its a little tedious but I usually give a rom a few hours before I actually go through all that.
Hope it helps
If you don't want to have to log in to your Google account before using the full version of Titanium Backup, just use App2Zip to make a flashable zip of TiBu and its Pro key. Then just flash it last, boot, and batch restore the rest of your apps and data.
Subscribed

Lineageos major version updates

When updating a major version - i.e. from Lineageos 16 to Lineageos 17 - it would seem you have to go through steps similar to the initial install (sideloading and what not).
My question is, do you lose everything on the device after performing this? Do I lose all of my installed apps, settings, messages, etc? Or is it just an overwrite of the core operating system?
My concern always is that I'll forget to back something up that I wish I'd backed up. Probably prudent to go ahead and backup stuff before attempting the upgrade. But I'm just wondering how much time should I spend insuring that everything I need is backed up. If the apps, settings, messages, etc are all expected to be there after upgrading, then I'm probably less concerned about spending a large chunk of time insuring everything is backed up.
all your data is stored in the /data partition which is not touched by the lineageos install. lineageos will install into the /system partition. you might edit your boot partition too, depending on your phone, but your data which includes all your installed apps (not the system apps that came with the phone) and your messages, settings, etc, is not touched. your camera photos and some settings are also on your /sdcard which is also untouched as long as you dont do a factory reset or wipe. that erases the /data and /sdcard partition.
if something goes wrong and your phone stops working then you can probably fix it but you want to have a backup in case you do need to wipe. you may or may not be able to recover the data, depends on the problem. always backup.

Missing back-up/phone locked/weird sd-card behaviour

Hi together,
just as a disclaimer, I don't really have knowledge in this field (custom roms etc), but I'm willing to learn and understand what is going on.
I have the Moto G5 as my daily phone with the unofficial lineage 17 from the xda-forum. It's not rooted. Now i saw that the g5 got official support for LOS18, so I wanted to upgrade. However, I had some important files on my phone, so I wanted to do a backup (with twrp), which i did on a different sd-card than the one I was using as storage. Or so i thought. The upgrade itself wasn't really a problem, at first i forgot to wipe the phone, but i realized right after the installation, wiped it accordingly to the instructions and did the installation again. The phone booted without a problem and everything seemed fine. I encrypted the phone accidently, i thought it was the lockscreen pin. But it wouldnt recognize the sd i used as storage on the previous version. Because i had pictures, music etc on the card, i wanted to restore my backup to use the phone as before. Well... to my surprise, on the sd i used to back up i couldn't find it, but strangely there were now two versions of a backup i made some months ago, only different in the timestamp (not the date) in their filename. I didn' know if one of them was the one i made, or if i had made two backups back in the days. I was confused, but i chose on of them at random and restored it. It seemed to have worked, it booted to the familiar lockscreen i set up a while ago. But then: it wouldnt accept the pin, even though i knew it was the right one - at least for the system i have used the same morning. I had to delete the lockpin.db (or how it was called) via twrp to acces the phone again. The former uncompatible storage sd now got recognized and worked, the phone showed all the apps i had before, i was still logged in in all of them etc. But: i made a photo, wanted to look at it in my gallery app, and i briefly saw my albums - then they vanished and only the photo i had taken was there. So now all the pictures, music are gone from the sd. Some funky things are different, the swipe directions for the "recent apps" and "back" buttons on the fingerprint sensor are switched and i cannot find the menu to change them. That's the story.
Here are my questions:
The backup i made - why wasn't it called with the proper date and time? Or have i deleted it somehow due to my wiping mistake? but it was on the sd... ?
I now assume i restored the old backup with a different lockscreen pin, and thats why the pin i thought was correct didn't work. But some apps which i hadn't installed at the time i made the backup where there and with all the recent data. Doesn't that mean the sd has some kind of image of the system or rather the apps themselves stored? but why are the pictures and the music gone? Is there any chancce to get it back? Can I upgrade to LOS18 and use the same sd as storage without the need to format it?
I'd like to learn what the mechanisms behind all these happenings are and would be glad if someone could explain it! Thanks in advance!
Twrp backups do no backup personal files - This includes music pictures and documents. These must be backuped up yourself to a pc, external device or the cloud.
TWRP backups do backup the following for example
System - your current rom
Data - apps and their data of your current rom, phone settings
Boot - Kernel
Never restore data on a different rom. The data contains apps and settings for your current rom and restoring this on a different rom will likely lead to a bootloop or an unstable device. This is why you had issues with passwords.
In regards to personal files - if you have formatted data of an encrypted device then it removes encryption and thus formats internal storage. Anything on this will be lost.
If you are changing roms you need to format data and then install everything again via the playstore (or manually via apk)
You can use 3rd party apps that backup apps and data but I advise against this as what it restore may be unstable on a different OS
As with the twrp date I assume twrp assigns the correct date. The file would be lost if you backup up to internal storage and your formatted data. I don't know what happened to it if you backed up to an external device.

Categories

Resources