User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

[DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Mon Jan 04, 2021 9:59 am

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.
Screenshot_20210104-104810_Settings.png
Screenshot_20210104-104810_Settings.png (73.11 KiB) Viewed 42454 times
https://konstakang.com/devices/rpi4/LineageOS18/

There is also Android TV version available.
Screenshot_20210306-163341_Settings.png
Screenshot_20210306-163341_Settings.png (73.55 KiB) Viewed 38964 times
https://konstakang.com/devices/rpi4/LineageOS18-ATV/

Sources:
Last edited by Konsta on Thu May 12, 2022 9:18 am, edited 6 times in total.
KonstaKANG.com

User avatar
hjpca
Posts: 17
Joined: Sun Sep 06, 2020 8:31 pm
Location: canada

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Jan 06, 2021 6:25 pm

looks very good...but i cant get into twrp? :idea:
HJPCA

mcnaugha
Posts: 5
Joined: Wed Dec 30, 2020 10:37 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Jan 06, 2021 6:43 pm

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.

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Jan 06, 2021 7:31 pm

hjpca wrote:
Wed Jan 06, 2021 6:25 pm
looks very good...but i cant get into twrp? :idea:
Please read the FAQ.
mcnaugha wrote:
Wed Jan 06, 2021 6:43 pm
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.
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

mcnaugha
Posts: 5
Joined: Wed Dec 30, 2020 10:37 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Thu Jan 07, 2021 3:35 am

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!

boomerangos
Posts: 21
Joined: Sat Nov 07, 2020 3:19 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Thu Jan 07, 2021 6:44 pm

How am I supposed to make the DIY Powerbutton with Lineage OS 18.1
I have a full size breadboard

boomerangos
Posts: 21
Joined: Sat Nov 07, 2020 3:19 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Thu Jan 07, 2021 6:44 pm

mcnaugha wrote:
Wed Jan 06, 2021 6:43 pm
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.
https://bitgapps.ga/arm/R/BiTGApps-arm- ... signed.zip
Download these GAPPS

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Fri Jan 08, 2021 9:35 am

boomerangos wrote:
Thu Jan 07, 2021 6:44 pm
How am I supposed to make the DIY Powerbutton with Lineage OS 18.1
I have a full size breadboard
Please see the picture in the FAQ.

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.
boomerangos wrote:
Thu Jan 07, 2021 6:44 pm
Download these GAPPS
Looks like downloads are back in the BiTGApps XDA thread so I'll add a link to my site.
KonstaKANG.com

bob.peru78
Posts: 1
Joined: Fri Jan 08, 2021 11:12 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Fri Jan 08, 2021 11:16 am

do anybody have a way to run argonone case script for pi4 on this machine??

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Fri Jan 08, 2021 2:27 pm

bob.peru78 wrote:
Fri Jan 08, 2021 11:16 am
do anybody have a way to run argonone case script for pi4 on this machine??
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.

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

DaimonS
Posts: 9
Joined: Fri Jul 03, 2020 5:18 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Sun Jan 10, 2021 8:11 am

congratulations on the build
works fine on samsung fullhd tv
but on samsung 4k tv the raspberry does not start the screen remains black

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Sun Jan 10, 2021 4:40 pm

DaimonS wrote:
Sun Jan 10, 2021 8:11 am
congratulations on the build
works fine on samsung fullhd tv
but on samsung 4k tv the raspberry does not start the screen remains black
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

crazydude
Posts: 1
Joined: Wed Jan 27, 2021 1:36 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Jan 27, 2021 1:41 am

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!

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Jan 27, 2021 3:11 pm

crazydude wrote:
Wed Jan 27, 2021 1:41 am
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!
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.

Google finds some discussion about Elo touchscreen on Android.
https://forum.odroid.com/viewtopic.php?t=25679
KonstaKANG.com

XaRz
Posts: 8
Joined: Fri Feb 12, 2021 12:21 pm

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Fri Feb 12, 2021 12:31 pm

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.

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Fri Feb 12, 2021 7:53 pm

XaRz wrote:
Fri Feb 12, 2021 12:31 pm
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.
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

superjovie
Posts: 2
Joined: Sun Feb 14, 2021 7:37 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Sun Feb 14, 2021 7:39 am

hello Im looking for a android version which is 64-bit(aarch64)
can you build a 64-bit android(lineage os)?thanks!

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Sun Feb 14, 2021 9:43 am

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)
KonstaKANG.com

XaRz
Posts: 8
Joined: Fri Feb 12, 2021 12:21 pm

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Feb 17, 2021 12:06 pm

Konsta wrote:
Fri Feb 12, 2021 7:53 pm
XaRz wrote:
Fri Feb 12, 2021 12:31 pm
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.
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?
Sorry you are right.

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,

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Feb 17, 2021 2:16 pm

XaRz wrote:
Wed Feb 17, 2021 12:06 pm
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,
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

Arm8tr0ng
Posts: 1
Joined: Sun Feb 21, 2021 5:50 am

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Sun Feb 21, 2021 6:12 am

I love the build.
Is there a way to get it working with the official Pi 7" Touch Display?

User avatar
Konsta
Posts: 655
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Sun Feb 21, 2021 8:22 am

Arm8tr0ng wrote:
Sun Feb 21, 2021 6:12 am
I love the build.
Is there a way to get it working with the official Pi 7" Touch Display?
Please try to stick with one medium. I answered you on my site.
http://disq.us/p/2f9tb4q
KonstaKANG.com

XaRz
Posts: 8
Joined: Fri Feb 12, 2021 12:21 pm

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Feb 24, 2021 4:44 pm

Konsta wrote:
Sun Feb 21, 2021 8:22 am
Arm8tr0ng wrote:
Sun Feb 21, 2021 6:12 am
I love the build.
Is there a way to get it working with the official Pi 7" Touch Display?
Please try to stick with one medium. I answered you on my site.
http://disq.us/p/2f9tb4q
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.

Thanks very much for your build!

XaRz
Posts: 8
Joined: Fri Feb 12, 2021 12:21 pm

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Wed Feb 24, 2021 4:49 pm

Konsta wrote:
Wed Feb 17, 2021 2:16 pm
XaRz wrote:
Wed Feb 17, 2021 12:06 pm
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,
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.
You were right...

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!

Exergist
Posts: 11
Joined: Thu Mar 04, 2021 8:37 pm

Re: [DEV] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Thu Mar 04, 2021 10:31 pm

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?

Image

Return to “Android”