sodcalculator

10 Tech How-To

Install Custom Android ROM & Remove Google

Guide 10-44251 · Updated · Step by step

Installing a custom Android ROM and removing Google services gives you a phone free of Google tracking, bloatware, and data collection, while often extending the life of older devices. This guide walks you through the entire process, from unlocking the bootloader to flashing a Google-free ROM like LineageOS without GApps. You’ll need a computer, a USB cable, and a willingness to follow steps carefully—this is a technical procedure that can void your warranty and erase all data.

What You’ll Need

  • A compatible Android phone (check the ROM’s official device list).
  • A Windows, macOS, or Linux computer.
  • A USB cable that supports data transfer.
  • ADB and Fastboot tools installed on your computer (platform-tools from Google is standard).
  • The custom ROM ZIP file (e.g., LineageOS) for your exact device model.
  • Optional: A recovery image like TWRP or LineageOS Recovery.
  • Optional: A microSD card or USB OTG drive if you want to back up files or flash from external storage.
  • Your phone’s unlock code (for bootloader unlocking) if required by the manufacturer.

Step-by-Step

  1. Back up everything. Unlocking the bootloader and flashing a ROM wipes your phone. Copy photos, contacts, messages, and any other important data to your computer or cloud storage. Also note your Google account credentials if you plan to sign in later on a different device.
  2. Enable Developer Options. Go to Settings > About Phone and tap “Build Number” seven times. Then go to Settings > System > Developer Options and enable “OEM Unlocking” (if present) and “USB Debugging.”
  3. Install ADB and Fastboot. Download the platform-tools ZIP from the Android developer site, extract it to a folder, and open a terminal/command prompt in that folder. On Windows, you may need to install proper USB drivers for your phone.
  4. Unlock the bootloader. Connect your phone to the computer, reboot into fastboot mode (usually by holding Power + Volume Down during boot), then run fastboot flashing unlock (or fastboot oem unlock on older devices). Confirm on the phone screen. This wipes data and may trigger a warning—accept it.
  5. Install a custom recovery. Download the recovery image for your device (e.g., TWRP or LineageOS Recovery). In fastboot mode, run fastboot flash recovery recovery.img, then reboot into recovery using fastboot reboot recovery.
  6. Download the ROM and optional add-ons. Get the ROM ZIP and, if you want to keep some Google apps, a GApps package (though for a Google-free phone, skip GApps). Also grab a no-Google alternative like MicroG if you need push notifications or location services without Google.
  7. Transfer files to the phone. In recovery, use the “Advanced” or “Mount” menu to enable MTP, then copy the ROM ZIP (and any add-ons) to the phone’s internal storage or SD card. Alternatively, use ADB sideload: adb sideload rom.zip.
  8. Wipe data and caches. In recovery, select “Wipe” and choose “Factory Reset” (this wipes data, cache, and dalvik). Do not wipe system unless the ROM instructions say to—most ROMs handle system automatically.
  9. Flash the ROM. Select “Install” and choose the ROM ZIP. Swipe to confirm. Wait for the installation to finish (it may take a few minutes). If you have add-ons, flash them now in the same session.
  10. Reboot and set up. Reboot to system. The first boot may take longer than usual. You’ll now have a clean Android without Google apps. If you want to avoid Google entirely, don’t sign in to any Google account and avoid installing Google Play Services.

Common Mistakes

  • Flashing a ROM meant for a different device model—this can hard-brick your phone.
  • Forgetting to unlock the bootloader before trying to flash—most ROMs require it.
  • Not backing up data before unlocking—the unlock wipes everything.
  • Using an outdated or incompatible recovery version—always use the one recommended by the ROM.
  • Skipping the factory reset after flashing—this often causes boot loops or crashes.
  • Flashing GApps on a ROM that doesn’t support it, or vice versa—check the ROM’s documentation.

Tips

  • Check the XDA Developers forum for your device—there you’ll find the most accurate guides and troubleshooting threads.
  • Keep your phone charged above 70% before starting—a power loss during flashing can be catastrophic.
  • Use a quality USB cable and a direct USB port on your computer, not a hub.
  • After installing a Google-free ROM, consider using F-Droid as your app store—it has thousands of open-source apps that respect privacy.
  • If you need Google Play Store later, you can flash a GApps package, but that defeats the purpose—try MicroG instead.
  • Take notes of every command you run—if something goes wrong, you’ll know exactly what you did.

Troubleshooting

  • Boot loop: If the phone keeps restarting, go back to recovery, wipe data/cache, and reflash the ROM. If that fails, check if you flashed the correct ROM for your device.
  • Stuck on boot logo: Wait at least 10 minutes—first boot can be slow. If it’s still stuck, try wiping cache and dalvik again, or reflash the ROM.
  • Phone not recognized by computer: Install the correct USB drivers, try a different cable/port, and ensure USB debugging is enabled.
  • Fastboot command not found: Make sure you’re in the right directory and that platform-tools are in your PATH. On Windows, try running the command as administrator.
  • Recovery doesn’t stick: Some phones overwrite recovery on reboot. You may need to boot into recovery directly with fastboot boot recovery.img instead of flashing it.
  • No Wi-Fi or cellular after flashing: This usually means the ROM doesn’t include the correct firmware. Flash the latest stock firmware for your device first, then reinstall the custom ROM.

Frequently Asked Questions

Will I lose all my data?

Yes, unlocking the bootloader and flashing a new ROM wipes your phone. Always back up before starting.

Can I still use banking apps?

Possibly. Many banking apps rely on Google Play Services for SafetyNet attestation. Without Google, they may refuse to run. Some ROMs pass SafetyNet if you install MicroG, but it’s not guaranteed.

Will I get OTA updates?

Yes, most custom ROMs like LineageOS offer over-the-air updates. You’ll receive notifications and can install them directly from Settings.

Can I reinstall Google later?

Yes, you can flash a GApps package at any time. But if you want a Google-free phone, simply don’t flash it.

Is it legal?

In most countries, it’s legal to modify your own device, but it may void the warranty. Check your local laws and manufacturer policy.

What if I brick my phone?

You can usually recover by flashing the stock firmware using fastboot or a tool like Odin (Samsung). If you can’t, seek help on XDA—most bricks are fixable.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →