keepcalculator

06 Numbers and Powers

LineageOS Install Guide: Safe Setup & Backup

Card No. 06·30195 · Updated · Standard formula, shown below

This guide walks you through installing LineageOS on a compatible Android phone, covering compatibility checks, full backups, the installation steps, and post-setup. You’ll end with a clean, de-Googled (or Google-included, your choice) custom ROM that gives you more control and longer device life. Before starting, understand that unlocking the bootloader wipes your device and voids warranty on most phones—proceed only if you accept that.

What You’ll Need

  • A compatible phone (check the official LineageOS device list)
  • A PC (Windows, Mac, or Linux) with USB drivers installed for your phone
  • USB cable (preferably the original)
  • LineageOS ROM zip for your exact device model
  • Recovery image (LineageOS Recovery or TWRP) for your device
  • Optional: Google Apps (MindTheGapps or NikGapps) if you want Play Store
  • ADB and Fastboot tools installed on your PC
  • At least 60% battery charge on your phone

Step-by-Step

  1. Check compatibility: Go to the official LineageOS website, find your device in the supported list, and note the exact model number (e.g., SM-G975F for Galaxy S10). Do not proceed if your model isn’t listed—using a wrong ROM can brick your phone.
  2. Back up everything: Since unlocking the bootloader wipes your device, back up photos, contacts, messages, and app data. Use Google Drive, Samsung Smart Switch, or a local backup to a PC. Copy the backup to a safe place outside your phone.
  3. Enable Developer Options: On your phone, go to Settings > About Phone, tap “Build Number� 7 times until you see “You are now a developer.� Then go to Settings > Developer Options and enable “OEM Unlocking� (if present) and “USB Debugging.�
  4. Install ADB and Fastboot: Download the platform-tools from the Android developer site, extract to a folder, and open a command prompt in that folder. Test with adb devices after connecting your phone—it should list your device with “authorized� after you accept the prompt.
  5. Download the correct files: From the LineageOS wiki, download the ROM zip (e.g., lineage-20.0-20240101-nightly-.zip) and the recovery image. Also download the compatible GApps package for your Android version (e.g., MindTheGapps for Android 13).
  6. Unlock the bootloader: Reboot to fastboot mode (usually by holding Volume Down + Power). Run fastboot flashing unlock (or fastboot oem unlock on older devices). Confirm on the phone screen. This wipes your data—do this only after your backup is safe.
  7. Flash the recovery: In fastboot mode, run fastboot flash recovery recovery.img (replace with your filename). Then reboot into recovery using fastboot reboot recovery or by holding Volume Up + Power.
  8. Wipe data (factory reset): In recovery, select “Factory reset� or “Wipe data/factory reset.� This is necessary to avoid boot loops. Do not wipe system or internal storage unless instructed.
  9. Install the ROM: In recovery, select “Apply update� > “Apply from ADB� (or “Install� if you have the zip on an SD card). If using ADB, run adb sideload lineage-*.zip. Wait for it to complete and see “Install from ADB completed.�
  10. Install GApps (optional): If you want Google apps, repeat the sideload step with the GApps zip. Do this immediately after the ROM, before rebooting.
  11. Reboot: Select “Reboot system now.� The first boot may take 5–10 minutes. If it takes longer than 15 minutes, you may have missed a step—see Troubleshooting.
  12. Set up and restore: After boot, sign in to Wi-Fi and restore your backup. Reinstall your apps, and check that everything works (calls, Wi-Fi, Bluetooth, camera).

Common Mistakes

  • Downloading the wrong ROM variant—always match the exact device model (e.g., “beyond1lteâ€� for S10, not “beyond2lteâ€�).
  • Skipping the factory reset after flashing—this causes boot loops.
  • Using an outdated recovery—always use the recovery recommended on the LineageOS wiki.
  • Forgetting to enable OEM Unlocking—the fastboot command will fail with “unknown command.â€�
  • Installing GApps that don’t match the Android version—check the GApps package’s Android version.
  • Not backing up before unlocking—data loss is permanent.

Tips

  • Use a high-quality USB cable and a USB 2.0 port on your PC to avoid disconnects during flashing.
  • Keep the ROM zip and recovery in the same folder as ADB to avoid path errors.
  • After first boot, enable “Root accessâ€� via the LineageOS add-on if you need root (optional).
  • Make a backup in recovery (TWRP) after you’ve set everything up—this gives you a restore point.
  • Join the LineageOS community forums for your device—they often have specific tips.
  • Check the official wiki for “Known issuesâ€� before installing—some builds have bugs.

Troubleshooting

  • Boot loop (stuck at logo): Go back to recovery, wipe data/factory reset, and reflash the ROM. If it persists, you may have flashed the wrong ROM or recovery.
  • “adb: command not foundâ€�: Make sure you’re in the folder with adb.exe, or add it to your PATH. Try ./adb on Mac/Linux.
  • Fastboot not detecting device: Install the correct USB drivers for your phone (OEM drivers). Try a different cable or port.
  • “FAILED (remote: not allowed)â€�: You didn’t enable OEM Unlocking, or you need to unlock the bootloader first.
  • GApps installation fails: Ensure the GApps package matches your Android version and architecture (arm64 for most modern phones). Try MindTheGapps instead of Open GApps.
  • No Wi-Fi or cellular after install: This may be a firmware issue. Check the wiki for “firmware requiredâ€� and flash the latest stock firmware for your region.

Frequently Asked Questions

Is it safe to install LineageOS?

Yes, if you follow the official instructions and use the correct files. The risk is low, but you can brick your phone if you flash a wrong ROM or interrupt the process. Always back up first.

Will I lose my data?

Yes, unlocking the bootloader and the factory reset wipe all data. Back up everything before starting.

Can I go back to the stock ROM?

Yes, you can re-lock the bootloader and flash the stock firmware via fastboot or ODIN (Samsung). This restores the original system.

Does LineageOS include Google apps?

No, LineageOS is free of Google apps. You can flash a GApps package separately if you want Play Store and Google services.

How often do I get updates?

Nightly builds are released almost daily for supported devices, but you can update manually via the Updater app or by sideloading the new zip.

What if my phone isn’t on the supported list?

You cannot install LineageOS officially. You could try unofficial builds from XDA, but they are riskier and not recommended for beginners.

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

The whole Numbers and Powers drawer →