Yes, you should always back up your data before flashing a custom ROM. Flashing a new ROM wipes your device’s data partition, and even when it doesn’t, a failed flash can leave your phone in an unbootable state. A full backup ensures you can restore your apps, photos, and settings if something goes wrong.
Why Backup Before Flashing?
Flashing a custom ROM (like LineageOS or GrapheneOS) replaces the entire Android system. Most custom ROMs require a factory reset (wipe data) before installation, which erases your apps, messages, photos, and settings. Even if you use an OTA update or a dirty flash, there is a risk of boot loops, corrupted data, or a failed flash that leaves your phone stuck. Without a backup, you lose everything.
Additionally, some ROMs require unlocking the bootloader, which itself wipes the device. So even before you flash, the process may erase your data.
What to Back Up
You should back up more than just your photos. Here is a checklist:
- Photos and videos – Use Google Photos, a cloud service, or copy the DCIM folder to your computer.
- Contacts and calendar – Sync with Google or export a .vcf file.
- Messages (SMS/MMS) – Use an app like SMS Backup & Restore.
- Call logs – Same app or similar.
- App data – For apps that store data locally (games, notes, offline maps), use a root backup tool like Titanium Backup (requires root) or the app’s own export feature.
- Settings and Wi-Fi passwords – Google’s backup service can restore these if you enable it.
- Files – Documents, downloads, and any other files on internal storage.
How to Back Up
There are several ways to back up, depending on your situation:
- Google backup: Go to Settings > System > Backup and enable “Back up to Google Drive.” This saves app data, call history, contacts, settings, and photos (if you have Google Photos).
- Local backup to PC: Connect your phone via USB, enable file transfer, and copy the entire internal storage folder to your computer. This is the most complete backup but may miss app data that is stored in private app directories (unless you have root).
- Custom recovery backup (Nandroid): If you have TWRP installed, you can boot into recovery and select “Backup.” This creates a full image of your current system, data, and boot partitions. You can restore it later with “Restore.” This is the gold standard for ROM flashing.
- Cloud services: Use Google Drive, Dropbox, or OneDrive for specific folders like Documents or Downloads.
For a Nandroid backup, you need an SD card or USB OTG drive with enough space (usually equal to your used storage). The backup takes 10–20 minutes and creates a folder in TWRP/backups.
Common Mistakes
People often skip a backup because they think their data is already synced. But many apps do not sync automatically, and local files (like downloads or WhatsApp media) are not in the cloud. Another mistake is backing up to the same device you are flashing—if the flash wipes internal storage, your backup is wiped too. Always back up to an external location: PC, SD card, or cloud.
Also, do not forget to back up your IMEI/EFS partition if you are flashing on a Samsung or some other devices. This partition contains device-specific identifiers and radio calibration. You can back it up with TWRP (select EFS) or a dedicated tool. Losing it can break cellular connectivity.
What If You Forget to Back Up?
If you already flashed and lost data, recovery is rarely possible. Android’s internal storage is encrypted, and once wiped, the data is gone. Some apps like Google Photos may have synced your images, but local files are unrecoverable. This is why the backup is non-negotiable.
If you are stuck in a boot loop but have not wiped data, you can often reflash the same ROM without wiping data (dirty flash) to fix it. But if the ROM is incompatible, you may need to wipe data anyway. Always keep a backup of your current ROM as a Nandroid so you can restore your exact setup.
Alternatives to Full Backup
If you only care about a few items, you can do a partial backup:
- Photos: Use Google Photos or copy the DCIM folder.
- Contacts: Export to .vcf and email it to yourself.
- App list: Use “App Backup & Restore” to save APKs (not data).
- Settings: Use the built-in backup to Google.
But for a full ROM flash, a Nandroid backup is the safest. It restores your phone to exactly how it was, including all apps and data, after a failed experiment.
Frequently Asked Questions
Q: Does a factory reset delete my SD card data?
A: No, a factory reset only wipes the internal storage. Files on an external SD card are usually safe. But some ROMs may format the SD card if you choose “Format Data” in TWRP, so always remove the SD card before flashing if you want to be extra safe.
Q: Can I flash a ROM without wiping data?
A: Yes, it is called a “dirty flash.” It often works if you are updating the same ROM, but it can cause bugs or boot loops if you switch to a different ROM. It is not recommended for a first-time install.
Q: How long does a Nandroid backup take?
A: It depends on your data size. For 32 GB, it may take 10–20 minutes on a modern phone. The backup is stored as a compressed image, so it may be smaller than your used storage.
Q: Is Google backup enough?
A: It restores contacts, settings, and some app data, but it does not back up local files like downloads or app data for many games. For a full backup, you need a local or Nandroid backup.
Q: What is the EFS partition and why should I back it up?
A: The EFS partition stores your IMEI, baseband, and Wi-Fi MAC addresses. If it is corrupted, you may lose cellular and Wi-Fi functionality. Backing it up with TWRP is a good practice on Samsung and some other devices.
Q: Can I recover data after a failed flash?
A: If you did not wipe data, you can often boot back into recovery and restore a Nandroid backup. If you wiped data, the data is gone. There is no reliable way to recover it because Android uses encryption and TRIM.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- O2 PUK Code and PIN Code Explained
- How to Host a Space Engineers Server
- Schedule Ride in Advance Uber: How It Works
- Optimize WordPress Themes for Mobile Performance
- Can AI Assistants Access Your Carrier Account?5.00 min/km
- How to Uninstall Docker Desktop on Mac