Intro
While cleaning out my drawer of old tech gadgets, I stumbled upon my old OnePlus 2 phone that had been sitting there for years. An article about LineageOS came to mind, so I decided to give the phone a second life by installing it.
What is LineageOS?
LineageOS is a free, open-source OS based on Android. It seems to be the successor of CyanogenMod, and claims to give you a clean, bloatware-free Android experience.
The OnePlus 2, released way back in 2015, was long abandoned by OnePlus and my device looked pretty slow while testing it with clean new stock image. My hope here is that the device can get a new life with LineageOS (spoiler: I wonāt be disappointed).
Prerequisites and a word of warning
ā ļøā ļøā ļø
Before we start, a quick but important warning as usual: flashing custom ROMs can brick your device. Iām not responsible if things go south. Make sure you back up everything important before you begin.
ā ļøā ļøā ļø
Hereās what I had during this process:
- A OnePlus 2 (obviously)
- A computer with ADB and Fastboot installed (and internet access)
- Ubuntu (highly recommended as the official tutorial is based on it)
- USB cable
- About 2-3 hours of free time
- Patience (lots of it)
- A backup of your important data
Iām not reinventing the wheel here. If I managed to flash my old OP2, it was thanks to the official LineageOS guide. Unfortunately, since the OP2 is no longer supported by LineageOS, the only way forward is to compile the OS image yourself. Letās go.
A brief summary of the installation process
In short, the official tutorial will guide you through how to:
- install ADB and fastboot on your pc
- unlock the phoneās bootloader
- install a custom recovery
- build your own LineageOS image
- flash the new image on the phone
I had some issues with fastboot
(no permissions (user in plugdev group....)
), and to fix it, I followed the official Android Developer Guide to set up a device for development.
Once youāre done with that, you need to proceed with building your own LineageOS image for your OnePlus 2.
Building the dinosaur
Before moving on with the article, make sure you already went through the official guide, as Iāll take a lot of commands/procedures from there for granted.
Unfortunately, when Lineage doesnāt support your device anymore, you wonāt find any little cute zip file to download and flash directly on the phone. The only alternative left is to compile your own LineageOS version.
Following the guide from start to finish is⦠feasible. Although sometimes I had to look around for help. For instance, at some point, you have to āExtract proprietary blobsā, and to do that, you need the same phone but with LineageOS already installed. But if Iām installing it for the first time, does that mean I need to find another device with LineageOS already installed? I also tried using the ./extract-files.sh
script inside the android/lineage/device/oneplus/oneplus2
folder, but some files were missing. Perhaps itās due to proprietary files that LineageOS isnāt allowed to provide or disclose their location? Iām not sure. I might have missed some concepts at that point. However, by looking around, I stumbled upon TheMuppets repo, which contains the vendor blobs I needed š¬
You can either download the zip and copy it in your local copy of the LineageOS source code, or, you can edit a roomservice.xml
located in <lineage-source-path>/.repo/local_manifests
folder and add the following line:
<project path="vendor/oneplus" remote="github" name="TheMuppets/proprietary_vendor_oneplus" />
Next time you run a repo sync
, it should fetch the required files from the right branch. Then just run breakfast oneplus2
again to make sure everything is in place, followed by source build/envsetup.sh
, and you should be ready to run the brunch oneplus2
command to start the build.
The build process can be very long, and can fail sometimes. In my case the build took more than 40 mintues to complete.
By the way, once youāre done, boot into recovery mode (hold Volume Down + Power
), and follow the instructions from the official guide to flash your brand new LineageOS zip image on your OnePlus 2.
In case of any errors, make sure you follow all the steps in the official guide. Theyāre not kidding when they show the red banner warning you not to proceed if any of the previous steps have failed. Make sure you read everything in that guide.
Conclusions
After spending a couple of hours trying to build and flash the new image, watching the LineageOS boot animation for the first time on this old OnePlus 2, I couldnāt help but smile. It took me back to those late nights as a teenager, navigating XDA forums, hoping to find help flashing some obscure custom mod.
Honestly, I was surprised by how well LineageOS runs on this 2015 hardware. Itās way faster than the stock image, and the Snapdragon 810 handles basic tasks like browsing, messaging, and some light gaming perfectly.
Oh, and I didnāt install the Play Store or Google services. The phone is now āUNGOOGLEDā (I believe thatās the official term). Iāve installed F-Droid and Iām exploring it, as itās my first time using it.
This was a really satisfying project. Iām not entirely sure if Iāll use this phone yet and how, but thereās something special about taking a device thatās been forgotten by its manufacturer and giving it a second chance with community-driven software. The LineageOS team deserves a huge shout-out for keeping these older devices alive and kicking.
Happy flashing!