Redmi Note 5 Pro LIneageOS 15.1 Install

How to Update from LineageOS 14.1 to LineageOS 15.1

The developers behind LineageOS just announced their firmware based on Android 8.1 Oreo. As many of us are still on LineageOS 14.1 (which is based on 7.1 Nougat), I wanted to write out a tutorial to show how to upgrade your current install of LineageOS 14.1 to the brand new LineageOS 15.1.

When we normally update to a newer build of LineageOS (that is the same version of Android), we simply do what is referred to as a dirty flash. This means you download the new build and then just flash it right on top of your current install. This is actually what is happening when you use the built-in updater tool as well. However, this method has never worked well when going from one major version of Android to a newer one.

Back in the day, we would need to do a clean install to update from one major version of a custom ROM to another. This still might need to be the case in this instance too, as I have experienced one flawless update to LineageOS 15.1 (with the OnePlus 3T) and one failed update to LineageOS 15.1 (with the regular OnePlus 3). I will be covering everything that is recommended by the LineageOS developers in the step by step guide below.

Then I will go into detail about what I experienced in the Explanation section at the bottom of the article. This method, if done successfully, shouldn’t cause you to lose any data but you should go ahead and create a Nandroid backup just in case. I will also be talking about how to do a clean flash for those who may want to start with a fresh build of LineageOS.

How to Update LineageOS 14.1 to LineageOS 15.1

  1. Download the latest nightly version of LineageOS 15.1 to the device
  2. Download Gapps for LineageOS 14.1 to the device
  3. Boot the device into Recovery Mode
  4. Do an Advanced Wipe of the /system partition. . .
  5. . . .or do an Advanced Wipe of the system/data/cache partitions if you want a clean/fresh install (optional)
  6. Then install the LineageOS 15.1 ZIP file
  7. And install the Android 8.1 Gapps afterwards
  8. Flash any other mods you’re interested in (Magisk, Xposed, etc)
  9. Then reboot back into Android


So the recommended process for upgrading from LineageOS 14.1 to version 15.1 while keeping your data in tact isn’t very difficult. Once you have downloaded the proper files, you just need to boot into Recovery Mode (which is likely to be TWRP). It’s at this point where I recommend you create a Nandroid backup just in case something goes wrong. If you do have TWRP installed, you’ll want to tap on Wipe, then Advanced Wipe and then select the /system partition so that you can wipe it.

Now go back to the TWRP main menu and tap on Install, browse to where you have the LineageOS 15.1 ZIP file and tap it. Then you can tap the Add More ZIPs button so you can add the Gapps ZIP package to the queue as well. In the video above, I even added Magisk to the queue as well. Once you’re ready to install, swipe the white arrows to the right to begin and then wait for it all to install. Now, when updating my OnePlus 3 I ran into an issue at this part.

Updating LineageOS Version

I was told that my device wasn’t a OnePlus 3 or OnePlus 3T and it refused to install. If this happens to you, head on over to the OnePlus 3 downloads section on the OnePlus website and grab the latest open beta update listed there. With this ZIP file on the OnePlus 3 device, I was then able to boot into TWRP install this Open Beta, and then follow through with the step by step guide above. Not sure why this happened but I didn’t experience it with the OnePlus 3T.

What I did experience with the OnePlus 3T though was what seemed to be a stuck OnePlus logo splash screen. I waited for at least 15 minutes for the LineageOS boot animation to appear. If something like this happens to you, you’re more than welcome to wait longer to see if something happens. I was worried that the install was borked though so I pressed and held the Power button for a few seconds. This powered the device off and then I turned it back on.

It booted up like normal this time and instantly went to the boot animation screen after the OnePlus splash screen. Even better, this helped complete the upgrade from LineageOS 14.1 to LineageOS 15.1 as shown in the video above.

If this tutorial helped you in any way, please consider donating via PayPalPatreon, or GoFundMe. If you can't afford to donate then sharing this on social networks such as Facebook, Twitter, etc. will also help a lot.


10 thoughts on “How to Update from LineageOS 14.1 to LineageOS 15.1”

  1. So we need to delete the system partition and than flash the rom? Whats the difference with the so called dirty flashing?
    ps. Lineage wipes the complete system partition when flashing according to the text in twrp

    1. A dirty flash keeps the /data partition intact which keeps all of your installed applications, settings options, etc in place. A clean flash wipes the data partition as well as the system partition so that you need to activate Android and install all of your apps from scratch.

  2. When I attempted to install 15.1, I got the error “MD5 file not found” from TWRP. Does this mean the file is corrupted?

    1. It sounds like you checked the “Zip Signature Verification’ option right before you swiped the white arrows to the right. If you want to verify the ZIP then you’ll want to download the md5 file (along with the ZIP file) from the LineageOS website.

      I never do this, but it could be worth it if you have a sketchy internet connection where it can become corrupt

  3. Hey, buddy.

    Huge thanks for the great tutorial. I have a confusion though. I had previously installed the unofficial 15.1 version on my Galaxy S5 (klteduos). I’ve been having some problems here and there and and was wondering if they would go away if I flashed the official nightly build released 3 days ago.

    Also, I spent several hours going through the settings and tuning everything to my convenience. If I do a dirty flash (wipe only the system partition), will I keep all those settings and stay logged into all my accounts etc?

  4. I have a question… When I do the flash it tells me Update system partition failed. What could it be. I backed up everything so i restore it to 14.1 but ti always tells me the same. thank you.

  5. As step 5 says, you really only need to wipe those other partitions if you want to do a full reset) and lose all of your data from games, apps, photos, etc.

    That’s why I labeled step 5 as optional because I know that’s not what most people want

  6. I’m sorry that it has errored out on you, Rob. I would need to know the error number and description before I could begin to troubleshoot it

  7. Well, that’s a bit of a tricky question. Usually when you do a dirty flash over the same OS then it is okay and you will keep all of those settings and stay logged into your accounts.

    However, the developer of the unofficial build could have had to do something major modifications to get the software to work.

    So I would not do a dirty flash from an unofficial to an official. I would suggest you grab Titanium Backup and backup as much of your applications AND application data as you can. This way, when you do a clean install you can restore all of your backed up data

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.