How to install LineageOS

Before you start

DISCLAIMER: I DO NOT TAKE ANY RESPONSIBILITY FOR EVENTUAL DAMAGES CAUSED BY FOLLOWING THIS GUIDE

Before you start you need to check if LineageOS and the necessary tools are compatible with your device:

If you cannot find your device in the support list of ALL the above tools you are highly discouraged to proceed and should stop here.

What you need

To sucessfully install LineageOS onto your Android phone you’re going to need to download some tools:

To ease the process later you should download these tools to the same location.

Throughout this guide your software versions could vary from the ones used for this guide. Just adapt the commands accordingly.

Root your device

ATTENTION: ROOTING YOUR DEVICE WILL VOID ANY WARRANTY AND WILL DELETE ANY DATA ON YOUR PHONE SO YOU ARE HIGHLY ENCOURAGED TO DO A BACKUP FIRST!

Assuming you downloaded all necessary tools and successfully setup adb and USB debugging on your phone you now need to root your device before you install the recovery:

  • Connect your Android device via USB and enable USB debugging
  • Check if your device is visible/acessible by opening a terminal on your computer and typing “adb devices”
  • Now type “adb reboot bootloader” to switch your device into fastboot mode
  • After your device sucessfully switched into bootloader mode, type “fastboot devices” to show all devices in fastboot mode.
  • Now root your device by typing “fastboot oem unlock”.

Your device will now unlock the bootloader within a few seconds and restart on its own. After the restart all data will be wiped and you Android will be set to default settings.

When your devices finished resetting, your OS starts just like it did the first time asking you for the language etc… Since you want to install LineageOS you can skip that step and just

Copy needed tools to sdcard

Depending on your phone there are multiple possibilities to copy the necessary files onto your phones sdcard.

  • If your phone has a removable sdcard and your pc has an sdcard reader you can take out the sdcard and copy your files directly onto it.
  • If your phone has a working android version running you could boot right to it and configure your phone to let you access its sdcard. Now copy the files from your computer to your phone.
  • (RECOMMENDED) If the above two methods don’t work for you, you can use the “manual” approach which should work for every phone:
    • Put your phone into recovery mode by restarting it and holding the “Volume Down” and “Power” buttons.
    • Now on your computer open a terminal and navigate to the folder with the previously downloaded tools
    • Now execute following command in a terminal and repeat it for gapps and the root addon if you want to install them
    • adb push lineage-14.1-20170206-nightly-bacon-signed.zip /sdcard/

Install recovery

  • On your computer open a terminal and navigate to your twrp.img file.
  • Flash twrp by executing following command:
fastboot flash recovery twrp-3.0.2-0-bacon.img
  • Reboot device and enter recovery mode by holding “Volume Down” and “Power”.
  • When asked allow modifications to system partition
  • You should now see the TWRP main screen

(Optional but recommended) Backup your device

  • In the TWRP menu select Backup
  • Your device is now being backed up onto its sdcard. This will take some minutes.
  • After the backup process you can get the Backup off your phone by connecting it to your computer and navigating into the folder “TWRP/BACKUPS” onto its sdcard.
  • Reboot your devices by selecting “Back” and then “Reboot”

Install LinaegeOS

  • In TWRP go to Wipe -> Advanced Wipe
  • Select System, Data, Cache and “Swipe to Wipe” to do a clear wipe
  • Return back to the TWRP main menu select “Install”
  • In the list scroll down and select the lineage…zip file
  • “Swipe to confirm flash” and start the flashing process which will take a few minutes.
  • Again, wipe cache/dalvik to make sure any temporary files are gone
  • (Optional) Repeat this installation process for gapps and root addon
  • In TWRP main menu select “Reboot” and then “System”

Your phone is now going to reboot with the new image for the first time. This first boot could take a few minutes. Don’t panic immediately. Mine took around 5 minutes.

Assuming your phone booted up correctly you just need to configure some basic settings (language, wifi, restore from Google…) and can then finally enjoy your newly installed LineageOS.

I hope everything worked like a charm for you as it did for me.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s