Android is generally considered a Google product, but Android can be made more private and google-free with some great opensource projects available to everyone: LineageOS (available to many phones) and GrapheneOS (limited to recent Google phones); two custom ROMs built for “de-googled” privacy.
Why Use a De-Googled Android Phone?
LineageOS is an Android phone operating system that contains no apps will attempt to connect to Google servers. The benefit here is a privacy-by-default phone setup instead of one that requires time and tweaking to disable any invasive features.
The Downside: if you install a default version of LineageOS, Google has been removed from the system. Going google-less is great for privacy reasons, but not so great for convenience.
- Some apps depend on Google to work,
- and some push notifications that rely on Google will not work properly,
— but that is a trade-off I happily accept. And if you install other privacy-respecting apps on your phone — apps that do not use Google for any of their functionality –, you will not miss Google apps at all (mostly).
Why LineageOS?
LineageOS is the successor to CyanogenMod, a free and open-source operating system for smartphone and tablet computers, based on the Android mobile platform. It is Android without the all-seeing eye of Google! What’s better than that?
Well, GrapheneOS may be a better option since it has secure boot features, but GrapheneOS supports fewer phones (only recent Pixel devices), so let’s stick with the stable, well-supported LineageOS and its helpful community for now. You are welcome to adapt these steps to install CalyxOS or another custom ROM if you want.
If you do have a Pixel model 3a and above, I recommend installing GrapheneOS and seeing if you can live with it.
First, Is Your Phone Supported by LineageOS?
If you have an old phone laying around and you want to inject it with a second life, check the list below to see if it is compatible with LineageOS. (GrapheneOS is currently limited to the recent Google Pixel 3 and up.) Or, if you want to get a cheap second phone as a backup or your daily driver, choose one of these supported phones.
List of Phones Supported By LineageOS
Go to https://download.lineageos.org and make sure your exact device is supported (look for it down the left column on that page).
Getting Started: Wipe Your Device
Back it up. When you install a new operating system onto your phone, you will be erasing everything on that phone. So if there is anything on your device that you haven’t yet backed up, now is the time to do that.
Wipe your device (optional). Since you will be erasing everything by installing LineageOS anyway, this step is optional but good to know, and it is satisfying to know you are deleting all remnants of Google. The steps will be something like:
- Open the Settings app and tap “System” > “Advanced” > “Reset Options”
- Tap “Erase all data (factory reset)” > “Reset phone”
- Tap “Erase everything”
- Reboot the device and proceed to the home screen
Enable USB debugging. You may have to use duckduckgo or your preferred search engine to find your Android’s instructions for enabling USB debugging, but on a Google Pixel, here’s how:
- Open the Settings app and tap “About phone” then tap “Build number” 7 times
- Tap the back icon to return to the Settings app.
- Tap “System” > “Advanced” > “Developer options”
- Enable the “Developer options” switch
- Enable “USB debugging” and confirm if prompted
Connect your phone to your computer. Once it is plugged into your computer, you are reading to send commands directly to your phone. You definitely need a computer for this step, so first let us configure your desktop or laptop system to use ADB (the Android Debug Bridge).
Install and Configure ADB From Your Computer
For this next step, grab a USB cable to plug your Android device into your USB of your computer. You will use your operating system’s command line (or terminal) to input commands and get this show on the road. For mac, Windows and Linux, the official ADB fastboot instructions are at https://wiki.lineageos.org/adb_fastboot_guide.html.
If you are using Windows 10 (as your main operating system or in a virtual machine), go to https://dl.google.com/android/repository/platform-tools-latest-windows.zip and download the file to your Win10 Desktop.
- Extract the file platform-tools-latest-windows.zip to your Desktop
- Drag and drop the platform tools folder to your Desktop
- Rename the platform tools folder to adb
- Open the Start menu, and type advanced system settings
- Select View advanced system settings
- Click on the Advanced tab
- Open the Environment Variables window
- Select the Path variable under System Variables and click the Edit button
- Click the edit text button
- Append
;%USERPROFILE%\Desktop\adb
to the end of the existing definition. - Click OK three times, once for each window
- Navigate to https://adb.clockworkmod.com/ and click Download
- Double-click the downloaded file and allow the program to be installed
- Connect your device to your computer or virtual machine via USB cable (if using a virtual machine, choose to connect the device to the virtual machine)
- If prompted, choose to “always” allow the connection
- Reboot the machine or computer
- Open a command prompt, type
cd Desktop \adb
and press enter - Type adb devices and press enter. You should see something like “List of devices attached: 523gga device”
If you see your device listed, you are ready to proceed. Unplug and repeat the steps if you receive errors.
Unlock the Bootloader
The bootloader is a security checkpoint on your device which manages all your partitions on your phone; it tells the hardware where to look to start the device and to make sure the software you are using is legitimate.
Your device will have its own steps for unlocking the bootloader; this is how to unlock a Pixel:
- Open the Settings apps, enter Developer options and enable OEM unlock
- Connect the device to your computer via USB cable and make sure it is detected. If connecting to a virtual machine, you may need to choose the appropriate VM
- Open Command Prompt and enter the command
cd Desktop\adb
- Enter the command
adb reboot bootloader
and the device should reboot - Verify the device is still recognized by typing
fastboot devices
- Enter the command
fastboot flashing unlock
The device will reboot on its own. If it doesn’t reboot, force a manual reboot by holding the power button to shut the phone down, and again to restart. You will have to re-enable USB debugging to continue. To re-enable debugging, do the following:
- Open the Settings app and tap “About phone” then tap “Build number” 7 times
- Tap the back icon to return to the Settings app.
- Tap “System” > “Advanced” > “Developer options”
- Enable the “Developer options” switch
- Enable “USB debugging” and confirm if prompted
Your device should now to ready for the installation of your new LineageOS or other custom ROM.
Install TWRP and Download Custom Recovery
Setup a recovery image to allow your phone to boot to a custom menu — this will save you time in the future if you want to reinstall from the device itself.
Find the right TWRP image for your device at their website https://twrp.me/Devices. Select the make and model of your phone and then:
- Click the closest location to you under “Download Links” and download the most recent file ending in “.img”
- Rename the file to “1.img” and move it to the adb folder on your Desktop
- Connect the device to your computer via USB cable again
- Open Command Prompt and type
cd Desktop\adb
- Enter the command
adb devices
and ensure your device is recognized - Enter the command
adb reboot bootloader
and the device should reboot - Verify the device is still recognized by typing
fastboot devices
- Enter the command
fastboot set_active a
- Enter the command
fastboot flash boot_a 1.img
- Enter the command
fastboot boot 1.img
Consult the LineageOS Wiki page for the appropriate steps for your specific device at this point. Afterward, the device should reboot into the new TWRP menu.
If it doesn’t, enter the recovery menu for your device by pushing whatever buttons your device manual specifies. For the Pixel, it is holding down both the Volume Down and Power buttons while the device is off.
If you are using a virtual machine for this process, each time the machine reboots, you will need to notify your host operating system that you desire your USB device to connect to the virtual machine. This is annoying but beneficial in the long run.
Install LineageOS
Now for the easy part!
To install LineageOS:
- Revisit https://download.lineageos.org/ and select your device from the left menu
- Download the most recent “File” into the adb folder on your Desktop
- Rename the file ending in .zip to “1.zip“
- While in the TWRP menu, tap “Wipe” then “Format Data”
- Return to the previous menu and tap “Advanced Wipe”
- Select the “System” partition and then “Swipe to Wipe”
- Return to the main menu
- Select “Advanced” “ADB Sideload” then “Swipe to begin sideload”
- Return to the Command Prompt window from the previous phase
- Enter the command
adb sideload 1.zi
p
- Enter command
adb reboot
BOOM! If all went well, your phone is now booting into LineageOS, an Android operating system without any Google services installed.
If ever prompted to add a Google account, avoid or “skip” the option.
Install Apps Using F-Droid and Aurora Store
To download apps without Google taking over your freshly installed operating system, use F-Droid.
- Using your phone’s browser, go to https://f-droid.org and choose “Download F-Droid” to install the APK file
- To download apps that are not available on F-Droid, use Aurora Store.
- Install it and choose “Anonymous” mode, which prevents the Google account requirement.
You may also search online for programs not on Aurora nor F-Droid, and download trusted APK files directly to the device and install them.
Backup & Restore Options
To backup your phone, grab an empty microSD card of equal or greater size to your phone storage, pop it into your phone, and let’s go.
TWRP enables an easy backup & restore process.
To create a phone backup:
- Boot into recovery mode in the same way as when you installed TWRP (pushing and holding Volume Down and Power if you have a Pixel phone, with the phone off)
- Click the “Backup” button
- Select all available data options
- Click “Select Storage” and choose the SD card within the device
- If TWRP asks if you want to root your phone, choose the “Do Not Install”
- Slide the “Swipe to Backup” option to begin the process
Restore your backup by doing the following:
- Boot into recovery mode in the same way as when you installed TWRP (pushing and holding Volume Down and Power if you have a Pixel phone, with the phone off)
- Click the “Restore” button
- Select all available data options
- Slide the “Swipe to restore” option to being the process
You now have a zippy and secure (free from Google) Android operating system on your phone, capable of supporting all kinds of privacy-respecting apps: ProtonMail, ProtonVPN, Wickr, Linphone, Wire, Session, Signal, Authy, andOTP, Bromite, FirefoxFocus, KeePass2Androind, etc.
Goodbye, Google! Hello, Freedom!