Porting LineageOS to FP2

I noticed that FM radio does not work yet.


1 Like

Just to be sure: Dual SIM works with your port?
If yes, I’d be glad to test this. :slight_smile:
It’s really cool what you did so far! :blush:

1 Like

Well done!
Is there any guide to install lineage OS 14.1 on fp2? Where can I find the rom and a custom recovery (like TWRP) if it is necessary?
Thank you


@chrmhoffmann posted the link https://www.androidfilehost.com/?fid=817550096634770220

Then you probably want to create a backup, wipe the data partition, flash the zip and reboot.

1 Like

You have to try dual SIM. It should work, but I have only one sim at hand.



A post was merged into an existing topic: Using LineageOS on the FP2

Thank you, it works like a charm. I can confirm the issue reported by @jnsp.

I was able to build with @chrmhoffmann’s sources using the following local manifest file:


<?xml version="1.0" encoding="UTF-8"?>
    <remote fetch="https://github.com/" name="github2" />
    <project name="chrmhoffmann/android_device_fairphone_FP2" path="device/fairphone/FP2" remote="github2" revision="cm-14.1" />
    <project name="chrmhoffmann/android_kernel_fairphone_msm8974" path="kernel/fairphone/msm8974" remote="github2" revision="cm-14.1" />
    <project name="chrmhoffmann/proprietary_vendor_fairphone" path="vendor/fairphone/FP2" remote="github2" revision="cm-14.1" />

Edit: Regarding device encryption, might also be a general Lineage OS bug. I will try out the workaround (with FP Open OS) and report back.


I would also love to compile my own Lineage OS :smiley:

Can you provide some basic instructions for what you did?

So far I have been following this guide.

Can you point me to what I need to change to make it work with @chrmhoffmann 's changes? (How to create the local_manifests and to include it in the build and other stuff…)

Just follow any build guide from the Lineage OS wiki, for example this one.

Follow it until “Download the source code”. Then, in android/lineage/ create a new directory:
mkdir .repo/local_manifests

Inside that directory, create the fp2.xml file with vi or nano:
vi .repo/local_manifests/fp2.xml
And paste the content from my previous post inside that file.

After that, resync your source code:
repo sync -c -j8

Finally, build the image by running the following:
source buid/envsetup.sh
breakfast FP2
brunch FP2

Depending on your computer, this might take a while :wink:


FYI, the workaround did not work for me.

I’d suggest using this Docker image, which has a reputation to work pretty well, and solves a lot of environment problems. Only problem I had with that was my refurbished server overheating, absolutely non-related with the Docker image.

If anyone choose to go with this route, don’t hesitate to contact me! I can help to setup the thing for the FP2 (pretty much the directions given by @jnsp above, but skipping the environment setup).

1 Like

6 posts were split to a new topic: Will Lineage OS be officially supported?

Confirming Dual SIM works without problems until now together with the latest FP OS modem files.

You can easily install them with this zip: Using LineageOS on the FP2

1 Like

Does the follwowing work for you?

  • Changing the 4G SIM to, let’s say 3G, and then back to 4G
  • Switch 4G SIM to 2G and 2G SIM to 4G and back again

You might want to backup your data partition via TWRP beforehand, in order to go back if you’re stuck on 3G (or can’t reenable 4G on one SIM).

EDIT: Can we make this a wiki post and update the top post regarding what is working, what is not working, which bugs are present and where to download the latest build/source code?


Going to test this in the weekend! Will gather other bugs in the meantime.

About the wiki: good idea! A centralized place to build / host the souce / zip’s is also being discussed here:


For some people this isn’t working in regular Fairphone OS at the moment, so it’ll be interesting to see if it does work in Lineage. If, however, it doesn’t work on Lineage either, maybe the same work-around helps:

I agree, this is a good idea to get more oversight, so I allowed myself to do that.


Thanks, I have updated the top post. The original post is now in a spoiler at the bottom of the post.

I am not sure if we should provide installation instructions, or if those kind of things are better kept in the “Using LineageOS” thread.

Feel free to edit, it’s a wiki! :slight_smile:

Edit: Regarding the modem firmware, I’m happy to update my flashable zip whenever a new modem firmware version comes out. However, Fairphone could support the custom ROM development by providing an official flashable zip with the latest modem firmware (without /system and /boot) at code.fairphone.com.


Great work! The only thing I’m missing is a type of versioning. Is it maybe a idea to call this version 1.0 and work from there? Then people will know when to flash.

1 Like