How to install LineageOS 14.1 on Nexus 5


This article will show you how to install LineageOS 14.1 on Nexus 5. LineageOS 14.1 is based-on Android 7.1.1 AOSP.

LG Nexus 5 is still a great Android phone though it was released 3 years ago. Unfortunately Google stopped to release official Android OS for Nexus 5 until Android 6 Marshmallow. It means that they will not release Android 7 Nougat and newer for Nexus 5.

Fortunately there are available custom Android ROMs which are based-on Android 7 AOSP such as CyanogenMod 14.1 now LineageOS 14.1, and ResurrectionRemix 5.8.0. LineageOS is the successor to the popular Android custom ROM CyanogenMod after it was discontinued by Cyanogen Inc. on December 2016.

Backup everything before following the guide below!

To install LineageOS 14.1 on Nexus 5, follow the step by step below:

Install TWRP Recovery

Make sure that you have installed TWRP Recovery on Nexus 5. If not follow this guide how to install TWRP Recovery on Nexus 5.

Download the latest LineageOS 14.1 image

You can download the latest LineageOS 14.1 image from its official website. For Nexus 5, go to this page to download it. At the time of this writing, the latest version is

Download the latest Google Apps

We will use OpenGApps. You can download the latest OpenGApps from Select the ARM, Android 7.1, and pico / nano variant. Copy / save the files into internal storage / SDcard of Nexus 5.

Reboot into TWRP Recovery

To reboot into recovery, plug in the Nexus 5 into laptop / computer using USB data cable. Run ‘adb reboot recovery’ to reboot into recovery.

Wipe the device

In the TWRP Home menu, select Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Data, and Cache. Do not select the Internal Storage otherwise you will lose the data. Then Swipe to Wipe.

Install LineageOS and GoogleApps

Select Install  then select the zip image file. It will take some times to install. Please wait and be patient.
After it successfully installed, then install the OpenGapps zip file. It will also takes some times to install. Once installed then reboot the system. It should reboot into the new installed LineageOS 14.1 aka Android 7.1.1 Nougat.