• Skip to primary navigation
  • Skip to main content
The Custom Droid Logo

The Custom Droid

Android Tutorials, Tips, and Development

  • General
  • How-To
  • Downloads
  • ROMs
  • Reviews
  • About
  • Contact
Home ❯ ROMs ❯ Custom ROMs

Install Redmi Note 4 LineageOS 15.1 ROM (Project Treble Support)

May 14, 2018 • by Dhananjay Bhardwaj

Install Redmi Note 4 LineageOS ROM - Project Treble Support

Follow this guide to install Redmi Note 4 LineageOS 15.1 ROM with full Project Treble support.

Xiaomi’s record-breaking device – the Redmi Note 4 is finally getting some serious development support via third-party developers. And why shouldn’t it? The device is nicely spec’d, easily affordable, and is also the highest selling smartphone by Xiaomi. Since its release last year, the device has seen several MIUI updates. But that’s not it, it seems like third-party developers at XDA forums are now actively participating in bringing good things to the phone. We recently saw Franco Kernel support for it. And this time, you are in for a treat with full Project Treble support. So go ahead and follow the steps to install Redmi Note 4 LineageOS 15.1 ROM right now.

Install Redmi Note 4 LineageOS 15.1 ROM - Project Treble Support
Install Redmi Note 4 LineageOS 15.1 ROM with Project Treble Support

Read more

  • Download Google Installer v2 and Install Google Play Store on MIUI
  • How to Install Franco Kernel on Redmi Note 4 (Best Custom Kernel)
  • Install ViPER4Android on Android Oreo 8.1
  • How to Install Xposed Framework on Android Oreo 8.0 and 8.1

Table of Contents
  • Redmi Note 4 LineageOS 15.1 ROM with Project Treble Support
    • Prerequisites
    • Download LineageOS 15.1 ROM for Redmi Note 4
    • Steps to Install Redmi Note 4 LineageOS 15.1 ROM (Android 8.1 Oreo)

Redmi Note 4 LineageOS 15.1 ROM with Project Treble Support

Android Oreo introduced Project Treble to represent a major re-architecture of the Android Framework. It has been introduced to facilitate easier and faster OS updates for Android devices. Google has been able to modularize the OS, by drawing a line between silicon/OEM code and the normal Android Framework. As a general rule of thumb, all devices shipping with Oreo out-of-the-box must support Project Treble. It not only affects the official firmware updates but also has a drastic effect on the custom ROM development scene. With added support, Treble-enabled devices will be eligible to install a generic ROM without having to wait for the OEM/Silicon manufacturer to update the dedicated drivers.

Also, read – Project Treble Supported Devices List (Official and Unofficial)

Now before you install Redmi Note 4 LineageOS 15.1 ROM, let us talk a bit more about how XDA senior member – abhishek987 was actually able to achieve this. According to XDA, the developer converted the unused ‘CUST’ partition to ‘Vendor’, which is approximately 830 MB in size. The partition originally contained stuff related to MIUI. But it had no significance on the AOSP-based build. With some help from phhusson, the lead developer of the phh-Treble project, abhishek987 was finally able to boot the ROM.

Install Redmi Note 4 LineageOS 15.1 ROM - Screenshots
Credits: abhishek987

The ROM developer has revised the files required for flashing this new build. The changelog for Redmi Note 4 LineageOS 15.1 ROM with Treble support, is as follows:

  • Updated to Android 8.1 Oreo
  • Updated to oreo Tissot Blobs
  • Rebased kernel to support new (goodix touch , ov camera, and displays)
  • Fixed OmniVision camera pink tint and crash in bright light photos
  • Add TextClassifier Selection models
  • Implemented full treble

So now that you know all about the new ROM, let us hop on to the instructions and install Redmi Note 4 LineageOS 15.1 ROM.

Prerequisites

  • Flashing a custom ROM requires your phone’s bootloader to be unlocked. If you haven’t done it yet, then follow this guide to unlock bootloader on Redmi Note 4.
  • Take a complete backup of your phone and the personal data. You can follow our tutorial on how to backup Android devices.
  • Charge your device to at least 50-60% battery level.
  • Install ADB/Fastboot tools on your PC. You will need this to flash the modified TWRP recovery.

Download LineageOS 15.1 ROM for Redmi Note 4

ROM: lineage-15.1-20180423-NIGHTLY-mido.zip

GApps: MindTheGAppps

Modified Magisk: Magisk-v16.0-custom.zip

Steps to Install Redmi Note 4 LineageOS 15.1 ROM (Android 8.1 Oreo)

  1. Download the ROM and GApps zip files from above and copy them to your phone’s storage.
  2. Boot your Redmi Note 4 into Fastboot mode by holding down the Volume Down + Power button simultaneously.
  3. Download the modified TWRP recovery: twrp-3.2.1-mido-vendor-v4 .img (Mirror Link)
  4. Copy the downloaded file to C:\adb, where the ADB/Fastboot files are present.
  5. Hold down the SHIFT key on the keyboard and right-click on an empty space inside the folder.
  6. Select “Open PowerShell window here”.
    Install Redmi Note 4 LineageOS 15.1 ROM - Open PowerShell window here
  7. Flash the TWRP recovery using the following command:

    fastboot flash recovery twrp-3.2.1-mido-vendor-v4.img
  8. Once the recovery has been flashed, power down your phone.
  9. Press and hold the Volume Up + Power button to enter TWRP.
  10. Go to “Wipe” -> “Advanced Wipe” and wipe the System, Data, and Cache partitions.
  11. Tap on the ‘Install” menu.
    Install Redmi Note 4 LineageOS 15.1 ROM using TWRP
  12. Navigate to the internal storage and select the ROM “lineage-15.1-20180324-UNOFFICIAL-mido.zip” file.
  13. Finally, swipe the button on the screen to install Redmi Note 4 LineageOS 15.1 ROM.
    Install Redmi Note 4 LineageOS 15.1 ROM - Flash using TWRP
  14. Repeat from step 10 to flash the GApps and Magisk root zip.
  15. Once complete, hit the “Reboot System” button.

Your Redmi Note 4 will boot into Android 8.1 Oreo ROM with full Project Treble support. The ROM developer has also stated that the source code will be published soon on Github so that others can use to enable Treble as well. So go ahead and enjoy the awesome new Oreo features like Autofill Framework, Notification channels, Picture-in-Picture mode, and more.

Now that your phone supports Project Treble, unofficially, you can go ahead and also try installing a Generic System Image on your phone. So you have just been able to install Redmi Note 4 LineageOS 15.1 ROM with Project Treble support. If you have any questions, leave them down in the comments below.

Source / Via

Tagged under: Android Oreo, LineageOS, Project Treble

Reader Interactions

Comments

  1. Ajay

    Dec 21, 2018

    I am using SuperSU , do I need to unzip it before flashing magisk ?

    Reply
    • Dhananjay

      Dec 21, 2018

      Hi Ajay. I think you mean “Uninstall”. Then yes, you have to uninstall it completely before you flash Magisk.

  2. AHMED

    Jul 22, 2018

    bro
    have u update any facelock function in this rom..in other same rom i use that function but there was some bugs and your rom is perfect

    Reply
  3. AHMED

    Jun 29, 2018

    hiii bro,
    thanks…is there any way of using facelock fuction in this rom

    Reply
  4. AHMED

    Jun 28, 2018

    aadab n hiii bro,
    ( Allhum dullilah ) many many thanks atlast i am using your rom ..its realy great..keep it up god bless you

    Reply
    • Dhananjay

      Jun 28, 2018

      Good. Enjoy the ROM. And you’re much welcome! Please let me know if you have any further questions.

    • Steve

      Sep 24, 2019

      Hi, is there any fix for network drop?

    • Dhananjay

      Sep 25, 2019

      Hi Steve. Are you using the latest LOS 15.1 build?

  5. AHMED

    Jun 28, 2018

    hii bro,
    any suggestion for me i m not getting sim option..

    Reply
    • Dhananjay

      Jun 28, 2018

      Hello again, please download the latest official LineageOS 15.1 build from here and GApps from the link above.

      Then go to TWRP > Wipe and swipe the button at the bottom to factory reset (This will wipe all the data except the internal storage data such as photos, music, etc). Once wiped, go to the Install menu in TWRP and flash the latest LineageOS 15.1 official ROM and GApps. Then reboot.

  6. AHMED

    Jun 26, 2018

    aadab,
    i used twrp provided by you but it dosent work so i download twrp from xda developers but sorry i didnt remember that it was official or not anywz rom is wonderfull but my badluck about sim so i didnt use ..any suggestion again…thanks from heart for your quick reply ( allah blessed you )

    Reply
  7. AHMED

    Jun 25, 2018

    aadab,
    thanks for your quick reply,at last i succeded in installing rom,and gaps file but Magisk-v16.0-custom.zip file is not flashing and the rom after booting dosent support sim and wifi
    is anything i did wrong ( i hav used 3.2.1twrp )

    Reply
    • Dhananjay

      Jun 25, 2018

      Hi again, did you use the TWRP recovery provided above or the official TWRP recovery?

  8. AHMED

    Jun 25, 2018

    Aadab bro,
    i m getting problem in 12 step when i am unziping rom file ..i got the message ” updater process ended with error:7..error installing zip file
    whats the problem

    Reply
    • Dhananjay

      Jun 25, 2018

      Hello, you mean while installing the ROM? Then please redownload the file and try flashing again. Also, please let me know which version of TWRP recovery are you using right now?

  9. Suhas Patel

    May 29, 2018

    In the settings of LineageOS update. When I am trying to install new update of 28th May signed.zip. It is showing verification failed. I tried downloading the zip file from website and tried flashing it. But that too failed.

    Is it because the version given by you is just .zip and the one I am trying to flash is signed.zip

    Reply
    • Dhananjay

      May 30, 2018

      Hi Suhas, the reason why you’re not able to update is that this ROM supports Project Treble by creating an extra /vendor partition on the phone. If you wish you update, kindly check the ROM’s download link above, grab the latest ZIP and flash it via TWRP.

      You need to use the Treble-enabled TWRP as provided above.

      However, if you wish to install the official LineageOS build, you will first need to flash the latest stock fastboot ROM using MiFlash tool and repeat the whole process of installing TWRP.

  10. Sadep

    May 27, 2018

    Hello

    For mi note 4 which gapps are mostly recommended??

    Reply
    • Dhananjay

      May 27, 2018

      Hi Sadep, the ones mentioned in this post will do good for the Mi Note 4 as well.

  11. Narend

    May 23, 2018

    whats different about lineage os and lineage os extend?

    Reply
    • Dhananjay

      May 23, 2018

      Hi, the official LineageOS ROM (released pretty recently) is a regular custom ROM for the phone. The unofficial build shared in this post is compiled by a third-party developer and adds Project Treble support to the device.

      Other than that, everything else would be same as in the regular version.

    • Narend

      May 24, 2018

      thank you for your answer sir 😀

  12. Ravi

    May 23, 2018

    i have installed lineageos 15.1 official one but iam not able to flash magisk through twrp. it shows me error 1 “cant mount /vendor”. what can i do?

    Reply
    • Dhananjay

      May 23, 2018

      Hi Ravi, the official LineageOS ROM will require the regular Magisk version (Link here) and not the Treble-enabled Magisk as provided above.

  13. vinay

    May 17, 2018

    what is the source of these rom any official site.

    Reply
    • Dhananjay

      May 17, 2018

      Hi, Vinay. The ROM is sourced from the XDA forums. The link to the original thread can be found at the bottom of the post. Kindly check.

  14. Arbeitssklave

    May 13, 2018

    with GApps AMR or AMR64 for Redmi Note 4 ?

    Reply
    • Dhananjay

      May 14, 2018

      Hello, it would be ARM64 for the Redmi Note 4 (mido).

  15. Ulrich Becker

    May 13, 2018

    I’ve got another issue: I installed everything the wy you said, but I don’t find the “treble”-stuff, neither the “Phh-Treble Vanilla” under “Model” (on my phone it is still “Redmi Note 4”), nor the “Treble-Check”.
    Did I miss something out? Do I have to to activate something more? Is there a link to the camera failure?
    Thank aou in advance for your reply
    Kind regards
    Ulrich

    Reply
    • Dhananjay

      May 14, 2018

      Hi again, the model should be “Redmi Note 4”, which is correct. The screenshots that you saw above are from a very early build. The latest builds are now more organized with things on the place, where they are meant to be.

      Treble is not something we could enable within the settings. If your phone booted into LineageOS, it means that your phone is perfectly fine and supports Treble, unofficially. You can find more explanation about Treble here. I have tried and explain the whole concept in simple words. You can also check out Google’s own documentation on the same.

  16. Ulrich Becker

    May 13, 2018

    Hi,
    I was actually quite happy to ahve done the step to use lineage 15.1 on my Xiaomi Redmi Note 4.
    Unfortunately I cannot use my camera anymore. I always get: “Camera error -Can’t connect to the camera.”
    I tried out al I can find in forums: I force stopped the camera, emptied cache and data and turned off the phone, I wiped cache and Kadvik cache in recovery mode, I tried out other camera apps like “A Better Camera and “SNAPit”, I tried to use the camera viaother apps like “WhatsApp”.
    Nothing worked.
    I fear – and also hope – that it has to do with Lineage 15.1.
    Do you have an Idea or – even better – a way to guide me out of this calamity?
    Thanks for your reply
    Ulrich

    Reply
    • Dhananjay

      May 14, 2018

      Hi Ulrich, first please make sure that you have flashed the latest nightly. If there’s a problem with the current build, it will most likely be fixed in the next build.

      Now, over to the camera issue that you have been facing. While researching for the same on the forums, I found that setting the SELinux status to Permissive could solve the problem. So please try that and confirm. You have to go to Settings > System > About phone to see and change the SELinux status.

    • Ulrich Becker

      May 15, 2018

      Hi Dhananjay,

      Thanks for your reply.

      I ‘ve got the “15.1-20180423-NIGHTLY-mido”.
      This seems to be the most recent one, doesn’t it.

      The SELinux status is “Permissive” and it cannot be changed.

      Do you have other ideas?

      Thanks again

      Kindly
      Ulrich

    • Dhananjay

      May 15, 2018

      Kindly download the latest one from here (lineage-15.1-20180514-NIGHTLY-mido.zip).

    • Ulrich Becker

      May 15, 2018

      Thank you.
      So I downloaded even the very newest, the “lineage-15.1-20180515-NIGHTLY-mido.zip”. So far I have never replaced a OS-version. How do I install it?
      Will I lose all my data and settings?
      Do you have a foolproof installation guide for this upgrade?
      Thanks in advance
      Kindly
      Ulrich

    • Dhananjay

      May 15, 2018

      Simply boot into TWRP and flash the LineageOS ZIP and GApps package. No need to wipe anything. Oh, and if you flashed Treble-enabled Magisk, simply reflash it again.

    • Ulrich Becker

      May 16, 2018

      THANK YOU, you are great! The camera works again!
      Kind regards
      Ulrich

    • Dhananjay

      May 16, 2018

      Glad that it worked out for you! Just keep a tab on that link and update to the latest nightly build, whenever a new one is available.

  17. Kiril K

    May 6, 2018

    I’m getting error 7 first, and if I delete “assert” line in a file, I get error 6. What do I do?

    Reply
    • Dhananjay

      May 7, 2018

      Hi Kiril, kindly let me know the exact ROM build (That’s what you’re getting the error for, right?)that you flashed on your Redmi Note 4. Also, it is the Snapdragon variant, correct?

  18. Ulrich

    Apr 28, 2018

    Dear Dhananjay,

    the link for lineage is down. Thanks for updating it.

    Kind regards

    Ulrich

    Reply
    • Dhananjay

      Apr 29, 2018

      Hi Ulrich, thank you so much for notifying. The ROM developer has now moved all the builds to a dedicated server instead of Google Drive. So, the link won’t go down anymore.

  19. Teja

    Apr 26, 2018

    Bro the links for magisk and twrp are dead. Please update them.

    Reply
    • Dhananjay

      Apr 26, 2018

      Hi Teja, first off, thank you for the heads up. I have updated the new links.

  20. Wael Hussein Mahmoud El Seliseli

    Apr 17, 2018

    First, Thanks for your work
    Second, I just want to understand some points
    – I already running official Lineage OS 14.1 on My Xiaomi redmi note 4 and getting OTA updates regularly
    – Since Project Treble is all software experience and fast updates so, does this rom support any kind of OTA updates and if so does it will be direct from google or from Lineage team (since there still no official build)
    Thank in advance

    Reply
    • Dhananjay

      Apr 17, 2018

      Hello,

      This ROM is basically a hack, that converts an unused partition to be used as ‘vendor’. Not Xiaomi, LineageOS, or Google support this in any way. Every time the ROM is updated, the link here will be updated as well. And you will have to manually flash it over using TWRP. Your data in this process will not be erased, it will stay intact.

      You will only get LineageOS OTA while on the official build. If you favor OTAs over the manual installation, I’d advise to stick with LineageOS 14.1 and wait for the official 15.1 support.

  21. Ashok Poolla

    Apr 8, 2018

    Hi, I just came here to say Thanks! I was scourging reddit, and other websites for hours now to find out what’s going on with the Project Treble (technical explanations to the codebase). I use a Mido (running RR 5.8.5) myself, your post neatly outlined what’s going on, and why I would like to do what I’d do (switching to treble-enabled Oreo). I haven’t tried this ROM or anything yet but just came here to comment about how well-put this guide and you as a person are (in terms of explaining and for helping out people with respect and passion in the comments section). Great job! Have your site bookmarked. Please do cover more topics on LineageOS moving forward to Oreo and P. Thank you!

    Also, If you’d answer, could you please tell me if I wanted to go with AOSPExtended or Resurrection Remix or LineageOS, I’m a customization behemoth and have a perfectly-tweaked setup for my needs (special mentions to Tasker + Xposed + LastPass), so the answer obviously would be RR Nougat, but, I’m starting to feel pushy about how AOSPExtended and LineageOS are way ahead of RR in terms of pushing regular updates/builds for the community (I’ve noticed tons of updates to their Oreo builds). I also want to live on the bleeding edge with little compromise towards features but am having hard time figuring out which ROM to go with to stay “updated” and “feature-rich” at the same time.

    I’m really sorry for my long and nagging comment, just something bugging me for quite sometime, wanted to get it off my chest. Please do explain in much detail as you can, if you will. Again, Thank you very much! 🙂

    Reply
    • Dhananjay

      Apr 8, 2018

      Hi Ashok,

      First off, I really appreciate that you wrote that many lines just to show generosity towards my work. I am glad that my passion is paying me off. Seeing the commenting literally put a smile on my face. So thank you for that!

      Now over to your question. I’d probably rule out LineageOS. That’s because RR itself is majorly based on LAOS code. Plus, I do feel that RR is meant for users who really want to customize. As for AOSPExtended, I haven’t really tried it. But from what I could tell from the ROM screenshots available on the net, it doesn’t really stand a chance in front of Resurrection Remix.

      I would suggest that you give it a try though, who knows, maybe it holds something that RR doesn’t. Both the ROMs are pretty much updated once or twice a month, which means the update frequency is almost the same.

      I recently tried Resurrection Remix Oreo to revive my old OnePlus One, and it feels fantastic. And definitely rich in features.

      In case I missed anything, please let me know. And please don’t feel that your commenting is nagging. I like it when readers take out time to get into a conversation about the topic. After all, that’s what the blog is about, isn’t it?

  22. Nokos

    Apr 7, 2018

    I have some questions regarding differences between packages.

    What is TWRP on provided link different from the official one for mido? (official: https://dl.twrp.me/mido/) – both are 3.2.1-0.

    What is MindTheGApppsdifferent compared to OpenGapps for Android 8.1 (ARM64)?
    http://opengapps.org/

    Will official Lineage OS 15.1 have full support for Treble and when is expected to be published on lineageos.org site?

    Thank you.

    Reply
    • Dhananjay

      Apr 7, 2018

      Hi Nokos, I’d love to clear the differences.

      1) This ROM is different than other regular custom ROMs altogether. In order to install it, you’ll need to use a special compiled build of TWRP recovery.

      2) MindTheGApps is what people from LineageOS recommend. That’s because several users reported compatibility issues initially with OpenGApps. The recommendation was more likely for the broader set of OEM devices. For some OG may work fine, but then not much for others.

      I have checked the official Github for any traces of the device name and its corresponding codename, but couldn’t find any. Which means there are yet no plans for it.

      Even if it does get official support, project Treble won’t be supported unless the OEM chooses to add it. What’s done with this ROM is a clever hack by the developer. As for the official Treble implementation, it is alleged to accompany the Android 8.1 Oreo (Read here).

      Hope this clears it up. If you still got some questions, feel free to ask.

  23. Eugenia

    Apr 3, 2018

    Do I need to install the fastboot/adb files, or the official Xiaomi fastboot utility would be able to flash TWRP for me properly?

    Reply
    • Dhananjay

      Apr 3, 2018

      Hi Eugenia, I would recommend installing fastboot/ADB first and then manually flashing the TWRP image. I am unsure if the Mi Flash tool allows us to do that.

  24. Kanishka Rathore

    Mar 27, 2018

    Hey there, My Redmi Note 4 is stuck at checking for updates screen from more than 20 minutes now. It isn’t responding. Is it normal or some bug?
    Kindly give me some fix for this if possible.

    Reply
    • Dhananjay

      Mar 27, 2018

      Hi Kanishka, there’s no such bug present in the ROM. I hope you have followed the steps correctly and only used the TWRP, ROM, Gapps, and Magisk files as provided in this post?

  25. red

    Mar 23, 2018

    Just installed this ROM. Works great and is very fast. 2 things: I had trouble with sharing Internet over Wifi which works but the conecting devices can’t access Internet – and I had trouble to get my HUE app to reconize the bridge – which I was able to solve in the end entering it’s IP address manually. A part from this it seams good enough to be used as a daily driver. Question: Is this ROM updated/maintained by somebody? Where would updates be posted?

    Reply
    • Dhananjay

      Mar 26, 2018

      Hi, the ROM is being updated by a third-party developer at XDA (Check the source link). I just noticed that a new build was pushed on 24th this month and have updated the links above.

      Hopefully, the new build will bring a solution to your current problems.

    • Bhupendra

      Apr 2, 2018

      Kindly update the Gapps link also.
      LOS is Oreo 8.1
      Gapps are 8.0
      Thanks

    • Dhananjay

      Apr 2, 2018

      Hello Bhupendra. Thank you for notifying us. I have updated the links with the latest GApps for Android 8.1 Oreo.

  26. SSG

    Mar 15, 2018

    Since its a treble based ROM so can we use the same to flash in other treble enabled device, namely Honor 9 Lite.

    Have already flashed the AOSP V12 (Phhs) but its way too scrappy as a daily driver & since the stock rom of H9L hasn’t been out yet so need to rely on a custom rom for the time being.

    Reply
    • Dhananjay

      Mar 15, 2018

      Actually, no. I wouldn’t recommend. The ROM is sort of an hack and changes the Note 4 partition layout by adding an individual partiton. You may look forward to phh-Treble for this.

  27. Sonu

    Mar 9, 2018

    Hey man, The modified magisk link is dead, please update

    Reply
    • Dhananjay

      Mar 9, 2018

      Hi, thank you for notifying. I have updated the link, kindly check.

  28. Akhil

    Mar 6, 2018

    Any known issues with this ROM?
    like encryption pattern for rebooting like that.

    I really want to use this ROM. Is it safe to use this ROM for a long time?

    Reply
    • Dhananjay

      Mar 6, 2018

      Hi Akhil, according to the source, there isn’t any issue. You can freely use it for the long term.

  29. Ayush Anand

    Feb 16, 2018

    How does time it will take to boot

    Reply
    • Dhananjay

      Feb 16, 2018

      A couple of minutes, at max.

Leave a Reply Cancel reply

Comment Policy: Input your real name and email address in the fields below, and let us have a meaninful conversation. Your email address will NOT be published publically.
All comments are manually moderated and those deemed to be spam will be deleted. Read our our privacy policy to know how we process the comment data.

Recent Posts

Download Magisk v22 w/ New Magisk App, Galaxy S21 support, and more

[Download] Magisk v22.0 – New Magisk App, Galaxy S21 support, improved app hiding, and more

How to Install TWRP on Snapdragon Galaxy S20 and root using Magisk

Install TWRP on Snapdragon Galaxy S20/S20+/S20 Ultra and Root using Magisk

Unlock bootloader on Snapdragon Galaxy devices using SamPWND (paid remote service)

PSA: Unlock Bootloader on Snapdragon Galaxy Devices with SamPWND (Paid Service)

©2017 - 2021 TheCustomDroid.com Privacy Terms Disclaimer Request Tutorial