Here’s my build of LineageOS 18.1 for Raspberry Pi 4 Model B, Pi 400, and Compute Module 4. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only. Pi 4 model with at least 2GB of RAM is required to run this build.
Important! This image includes parts that are licensed under non-commercial license (Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International). You may use this build freely in personal/educational/etc use. Commercial use is not allowed with this build! You can contact me by email to discuss creating customized Android builds for commercial purposes.
https://konstakang.com/devices/rpi4/LineageOS18/
There is also Android TV version available.
https://konstakang.com/devices/rpi4/LineageOS18-ATV/
Sources:
[DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Last edited by Konsta on Thu May 12, 2022 9:18 am, edited 6 times in total.
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
looks very good...but i cant get into twrp? 

HJPCA
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
I had to search for advanced restart in settings and found the setting. It's moved but it's there and it works.
I just need Open GApps to produce a 32-bit ARM build for 11... or a 64-bit LineageOS 18.1.
I just need Open GApps to produce a 32-bit ARM build for 11... or a 64-bit LineageOS 18.1.
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Please read the FAQ.
You don't have to search if you read the FAQ.

Gapps are also discussed in the FAQ. Someone posted a mirror of the BiTGApps package to my XDA thread (https://forum.xda-developers.com/t/dev- ... t-84228785)
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
https://forum.xda-developers.com/t/rom- ... t-84235459
This solved my problem and delivered my goal of stable Sky Go playback. Your Lineage build plus Open Gapps for 11 delivers a fantastic system on the RPi. I’m even running off of a USB 3.0 stick and had no issue with TWRP.
Thanks!
This solved my problem and delivered my goal of stable Sky Go playback. Your Lineage build plus Open Gapps for 11 delivers a fantastic system on the RPi. I’m even running off of a USB 3.0 stick and had no issue with TWRP.
Thanks!
-
- Posts: 21
- Joined: Sat Nov 07, 2020 3:19 am
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
How am I supposed to make the DIY Powerbutton with Lineage OS 18.1
I have a full size breadboard
I have a full size breadboard
-
- Posts: 21
- Joined: Sat Nov 07, 2020 3:19 am
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Please see the picture in the FAQ.boomerangos wrote: ↑Thu Jan 07, 2021 6:44 pmHow am I supposed to make the DIY Powerbutton with Lineage OS 18.1
I have a full size breadboard
It shouldn't be too complex thing to wire. Connect one wire to GPIO21 and another one to ground. Connect together to send key events (i.e. connect to opposite ends of a button and press it). Should be also pretty safe thing to try without risk of damaging hardware.
Looks like downloads are back in the BiTGApps XDA thread so I'll add a link to my site.
KonstaKANG.com
-
- Posts: 1
- Joined: Fri Jan 08, 2021 11:12 am
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
do anybody have a way to run argonone case script for pi4 on this machine??
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Generally speaking you can't use scripts/drivers that are meant for regular Linux distros because Android doesn't have things like Linux package management, systemd, python, etc.bob.peru78 wrote: ↑Fri Jan 08, 2021 11:16 amdo anybody have a way to run argonone case script for pi4 on this machine??
I don't remember the specifics about Argon script but someone contacted Argon and they referenced this (https://github.com/Argon40Tech/Argon-ONE-i2c-Codes). There was a discussion how to use this with I2C tools included in Android builds (http://disq.us/p/2dqzkga).
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
congratulations on the build
works fine on samsung fullhd tv
but on samsung 4k tv the raspberry does not start the screen remains black
works fine on samsung fullhd tv
but on samsung 4k tv the raspberry does not start the screen remains black
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
You need a display that reports the resolution using EDID. I really don't have any other advice than what you can find under the relevant FAQ section.
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Thanks for the build! I am trying to get touchscreen working on a Elo ET3243L. Everything works except the touchscreen part. I was in the terminal following these directions from the Elo driver readme but it's not letting me create in /etc/opt/ saying it's read only. Here is the readme link https://assets.ctfassets.net/of6pv6scuh ... e-v5.1.txt
What should I do next?
Thanks!
What should I do next?
Thanks!
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
You would need to contact Elo for support on how to use that on Android. Nothing in that document applies to Android as it is not a 'regular' Linux distribution. Can't really comment on the what the "driver" actually is without seeing it either.crazydude wrote: ↑Wed Jan 27, 2021 1:41 amThanks for the build! I am trying to get touchscreen working on a Elo ET3243L. Everything works except the touchscreen part. I was in the terminal following these directions from the Elo driver readme but it's not letting me create in /etc/opt/ saying it's read only. Here is the readme link https://assets.ctfassets.net/of6pv6scuh ... e-v5.1.txt
What should I do next?
Thanks!
Google finds some discussion about Elo touchscreen on Android.
https://forum.odroid.com/viewtopic.php?t=25679
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Hello,
I'm in trouble with a rpi4 model B that with lineage 18.1 only has video output, no tactile in my 7" screen. Any way to understand why?
i've the same screen working well in a rpi400, it's not the screen hardware..
Thanks in advance.
I'm in trouble with a rpi4 model B that with lineage 18.1 only has video output, no tactile in my 7" screen. Any way to understand why?
i've the same screen working well in a rpi400, it's not the screen hardware..
Thanks in advance.
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Please try to stick with one medium. I see this same thing posted on three different places all having slightly different information so it's really not helpful.
It really doesn't make much sense that it would work Pi 400 but not on Pi 4 with the exact same LineageOS 18 image. It seems to be an USB touchscreen. Have you tried using a different USB port on your Pi 4 in case of a hardware failure?
KonstaKANG.com
-
- Posts: 2
- Joined: Sun Feb 14, 2021 7:37 am
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
hello Im looking for a android version which is 64-bit(aarch64)
can you build a 64-bit android(lineage os)?thanks!
can you build a 64-bit android(lineage os)?thanks!
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
New build.
https://konstakang.com/devices/rpi4/LineageOS18/
-add support for LSM303DLHC accelerometer & magnetometer sensor
-add separate TWRP flashable su add-on (see FAQ)
-allow switching display off with power button
-add support for USB-C (ADB, MTP, PTP, USB-tethering)
-enable bluetooth tethering
-add settings option for mouse back button feature
-update to TWRP 3.5.0_9-0-KonstaKANG
-update to Mesa 20.3.4
-update to Linux 5.4.98 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
-Android security patch level: 5 February 2021 (merged)
https://konstakang.com/devices/rpi4/LineageOS18/
-add support for LSM303DLHC accelerometer & magnetometer sensor
-add separate TWRP flashable su add-on (see FAQ)
-allow switching display off with power button
-add support for USB-C (ADB, MTP, PTP, USB-tethering)
-enable bluetooth tethering
-add settings option for mouse back button feature
-update to TWRP 3.5.0_9-0-KonstaKANG
-update to Mesa 20.3.4
-update to Linux 5.4.98 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
-Android security patch level: 5 February 2021 (merged)
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Sorry you are right.Konsta wrote: ↑Fri Feb 12, 2021 7:53 pmPlease try to stick with one medium. I see this same thing posted on three different places all having slightly different information so it's really not helpful.
It really doesn't make much sense that it would work Pi 400 but not on Pi 4 with the exact same LineageOS 18 image. It seems to be an USB touchscreen. Have you tried using a different USB port on your Pi 4 in case of a hardware failure?
I've 2 same touchpads. All working on rpi400 and not in the rpi4 model B. Tested all usbs from touchscreen and from rpi.
Perhaps your're right and it's a hardware problem..I'll try to get my hands on other rpi4 to test.
Thanks anyway,
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
There was another report today with a similar issue on Pi 4 vs. Pi 400 (http://disq.us/p/2f6ugcs). There's no details about the touchscreen, though. Same advice applies so try to dig through 'dmesg', 'cat /sys/class/input/input*/name', etc for more information if there's any difference between the devices.
It really doesn't make any sense why there would be any difference between Pi 400 and Pi 4. If other USB devices work, it's not likely to be a hardware issue either. If your touchscreen is powered through the same USB make sure that there is sufficient power available of course.
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
I love the build.
Is there a way to get it working with the official Pi 7" Touch Display?
Is there a way to get it working with the official Pi 7" Touch Display?
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
KonstaKANG.com
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
Thanks! Sorted it out. Was an adapter problem. For some reason I bought a raspberry 4 model b with not oficial charger. Changed to oficial charged of 5,1V output and worked like a charm.Konsta wrote: ↑Sun Feb 21, 2021 8:22 amPlease try to stick with one medium. I answered you on my site.
http://disq.us/p/2f9tb4q
Thanks very much for your build!
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
You were right...Konsta wrote: ↑Wed Feb 17, 2021 2:16 pmThere was another report today with a similar issue on Pi 4 vs. Pi 400 (http://disq.us/p/2f6ugcs). There's no details about the touchscreen, though. Same advice applies so try to dig through 'dmesg', 'cat /sys/class/input/input*/name', etc for more information if there's any difference between the devices.
It really doesn't make any sense why there would be any difference between Pi 400 and Pi 4. If other USB devices work, it's not likely to be a hardware issue either. If your touchscreen is powered through the same USB make sure that there is sufficient power available of course.
Sorted it out. Was an adapter problem. For some reason I bought a raspberry 4 model b with not oficial charger. Changed to oficial charged of 5,1V (not 5V) output and worked like a charm. other chargers with 5V 3A output as making the touchpad not working.
Thanks!
Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B
This is such great work!! Thank you!!
I'm not sure where bug/issue inquiries are supposed to go, but I figured I'd start here.
I'm running LineageOS 18.1 on a Pi 4 (8 GB) with a 4K (3840x2160) touchscreen monitor. I noticed when I set the Display resolution (Settings->System->Advanced settings) to 2560x1440 or 3840x2160 the buttons on the navigation bar are no longer in the center of the bar. Rather, the Back and Home buttons are on the far left and the Recent button is on the far right (see image). The buttons are centered on the bar as expected when running at 1920x1080.
Is this expected?

I'm not sure where bug/issue inquiries are supposed to go, but I figured I'd start here.
I'm running LineageOS 18.1 on a Pi 4 (8 GB) with a 4K (3840x2160) touchscreen monitor. I noticed when I set the Display resolution (Settings->System->Advanced settings) to 2560x1440 or 3840x2160 the buttons on the navigation bar are no longer in the center of the bar. Rather, the Back and Home buttons are on the far left and the Recent button is on the far right (see image). The buttons are centered on the bar as expected when running at 1920x1080.
Is this expected?
