FP4 and (unofficial) LineageOS

Hi all,
received my FP4 last week. Encouraged by samwein’s post I compiled LOS 19.1 and wanted to share my observations.

Roomservice.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <!-- Grab device and kernel trees from WeAreFairphone -->
  <project name="WeAreFairphone/android_device_fairphone_FP4" path="device/fairphone/FP4" revision="staging/lineage-19.0" remote="github" />
  <project name="WeAreFairphone/android_kernel_fairphone_sm7225" path="kernel/fairphone/sm7225" revision="staging/lineage-19.0" remote="github" />
  <!-- unsure if/why we need this one -->
  <project name="LineageOS/android_external_bson" path="external/bson" remote="github" />
  <!-- grab the modified blobs from Fairblobs, note that extracting blobs from an Android 11 image doesnt work -->
  <project name="xblax/android_vendor_fairphone_FP4" path="vendor/fairphone/FP4" revision="lineage-18.1" remote="github" />
  <!-- mods for the display need to be grabbed -->
  <remove-project name="LineageOS/android_hardware_qcom_display"/>
  <project name="poshul/android_hardware_qcom_display" path="hardware/qcom-caf/sm8250/display" remote="github" revision="lineage-19.0-caf-sm8250"/>
</manifest>

So far I have tested the following things:

  • Wifi: works
  • NFC: works
  • GPS: works
  • Bluetooth: works with my Sony headphones, but cannot send/receive files with my PC/smartphone.
  • Camera: not working, app crashes
Logs

Fastupload.io — BluetoothFileReceiveLog.txt
Fastupload.io — CameraLog.txt

I would like to help get LOS 19.1 up and running. Is there a channel where development is coordinated?

2 Likes

Interesting, thanks for your feedback.

I trust you had to install it from FPOS as if I understand correctly it cannot be installed from LOS 18 ?

What’s your general feeling of the OS ? Is it smooth ?
As for the camera does any third party app fails ?

Oh and welcome by the way :relaxed:

Thank you for the warm welcome :hugs:

It was a fresh install. Booted the LOS 19.1 recovery, did a factory reset and sideloaded the LOS 19.1 zip. The upgrade path from LOS 18 to 19 was not tested.

Apart from the issues mentioned, it runs very smooth and is stable. I have not experienced random reboots yet. The battery life also seems to be okay. I have not yet inserted a SIM Card, but will do so and test it in the next few days.

The camera seems to be not recognized at all. Open Camera from F-Droid doesn’t find one.

2 Likes

Got the camera on LOS 19.1 working by using this commit: FP4: Patch vendor.qti.hardware.camera.postproc@1.0-service-impl.bitra.so while extracting (44ac4176) · Commits · CalyxOS / device_fairphone_FP4 · GitLab
Sadly it works only with 12MP, but better than nothing for now.

It might make sense to include these other commits in the WeAreFairphone repo too, but I have not tested them yet.

2 Likes

Great !
The temptation to go back to LOS again is overwhelming :smiley:

Since that patch is coming from CalyxOS, come on over…

… if you want to try it without building LOS yourself :smirk:

1 Like

Looks promising but… you know… no Gapps possibilities haha. I’ve done my share of trying with microG, I really need my gmaps and my Gpay :smiling_face_with_tear:

1 Like

With the latest commits in the WeAreFairphone staging/lineage-19.1 repo my FP4 works quite well. Sending and receiving files over Bluetooth seems to work now. Calls and SMS also work fine. So I have decided to migrate the data from my old phone and continue testing under real conditions. A big thank you to everyone who has participated in the development so far!

However, it is still not a completely bug free experience. While watching videos in popup mode with NewPipe, I have noticed another bug. Once you tab out of NewPipe into another app or the home screen, the app part of the screen does not respond to touch anymore. You can still use the menu buttons, the status bar or the popup, but not the app you have opened. Everything will work normally again once you close the popup and stop the video… Is this broken popup behaviour already a known issue with Android 12?

1 Like

I can confirm that the NewPipe issue exists on CalyxOS (Android 12) as well.

Seems to be related to PiP mode, the ticket discussing this problem in the NewPipe bug tracker is #6770.

1 Like

Hello folks,

I see that there seems to be not significant progress towards an official LOS build (right?) (no offense to the volunteers!). Even though, many of you managed what I did not after two attempts: Creating their own build. However, these builds are uploaded randomly and to platforms I don’t trust (such as OneDrive).

I wanted to suggest if we could have a temporary community solution. I would also be happy to donate some money if that is required. Maybe we can maintain our own “unofficial official” build? :smiley: Or kind of trust-able place to upload and maintain them?

What do you think?

So far I saw these build uploads:

8 Likes

I like the idea. If you want, I can share my signed LOS 19.1 userdebug builds. So far they work great for me.
Do you have any trustworthy platform in mind? I think the guys over at XDA Developers use Android File Host quite often.

2 Likes

I got one positive reply + 3 :heartbeat: on my post. No one claimed. Maybe its a not too bad idea. Can we somehow apply / sign the images uploaded? Maybe also ensure that the next update will not wipe the data? but I understand that requires work.

Any other suggestions, thoughts?

I think LOS uses default test keys for custom builds automatically. I don’t see much reason to use another key - it would just complicate things.

I’m also still working on getting LOS 18.1 functionality in a better shape … got the stock camera mostly working now but still not as smooth as on Stock. It always takes a while to switch between wide and normal angle lens. Currently assume it might be a problem with the kernel and I’m looking into that.

2 Likes

Okay!

Well, then let’s go ahead!

Does this require any financial support? Any other support? Anyone else we want to involved? Should several people have access to this?

CC: @mmustermann

What exactly do you have in mind? I for myself - if I’m ready to share a custom build - will upload that to Android File Host (already have an account there).

Beside that WeAreFairphone · GitHub is already a community project. Probably best to try contributing there. Not sure who of them follows this thread.

@dk1978 @lucaweiss @TeamB58
What would be the best way to contribute? Is there a chat group for fair phone development?

Here is a fresh userdebug build with test keys. Use it at your own risk and not in production!
I haven’t gotten developer access on Android File Host yet, but for now fastupload should be sufficient.

Download
sha256sum recovery.img lineage-19.1-20220430-UNOFFICIAL-FP4.zip
2c2ece00c80835830344bdae0f411aff1e5674be2212589fdfa12d14706ea4de  recovery.img
10a59a1f41d683192a4907047943b87d60c8f7b0378adad92892c5ac6dbe6cdc  lineage-19.1-20220430-UNOFFICIAL-FP4.zip

Fastupload.io — recovery.img
Fastupload.io — lineage-19.1-20220430-UNOFFICIAL-FP4.zip

If you are interested, I can also share my signed builds about once a month.

3 Likes

If you got the camera working, could you share it with other projects, like CalyxOS? I’d very much like to use the full resolution and wide angle lens there…

2 Likes

Okay many thanks!

But what needs it to be that I can use it “in production”? I mean I wanna use it as my private phone.

What means test keys?

Furthermore, do you plan to upload new versions, too?

You need a build that is not signed with the publicly available test keys. For the details you can have a look at Signing Builds | LineageOS Wiki

I will upload my next build that is signed with my private keys as soon as the May security patches got merged in LOS. Probably in a week.

As I said, my plan is to upload new versions once a month (after the latest security patches got merged) until the FP4 gets official LOS support.

3 Likes

Thank you for your work, I found both the official ROM and the MicroG-ones not usable for my purposes. So far I haven’t found any problems.