[DEV][ROM][UNOFFICIAL] LineageOS 19 (Android 12L) for Raspberry Pi 4 B

Search This thread

SaturaniumYT

New member
Jun 8, 2022
4
2
Nvm those last 2 messages, I found out how to turn on wifi access to google play. For some odd reason, you need to enable wifi access by going to Settings > Apps > Google Play Store > Mobile data & WiFi and click on allow network access. Weird…
 

KonstaT

Senior Member
Jan 20, 2016
686
424
KonstaKANG.com
Nvm those last 2 messages, I found out how to turn on wifi access to google play. For some odd reason, you need to enable wifi access by going to Settings > Apps > Google Play Store > Mobile data & WiFi and click on allow network access. Weird…
Good to know you figured it out. Downloading gapps file and downloading from the Play Store are different things of course..

But yes, this seems to be a problem with Android 12 gapps and you need to enable this permission manually (possibly after Google Play services has updated itself).
 

Obecny

Senior Member
Apr 16, 2005
158
17
Ireland
www.flickr.com
Any solution for HDMI sleep issue? My HDMI monitor turning black but the backlight is still on so the monitor is not going to sleep at all like with any other regular linux distros. Thanks
 

KingMagla

New member
Jan 25, 2019
3
0
Hey i flashed the newest Build lineage-19.1-20220511 on a Raspberry Pi4, in the Buttons menu is no Power Menu option. I cant get in the advanced reboot. Is there any solution for this problem?
 

SaturaniumYT

New member
Jun 8, 2022
4
2
Hey i flashed the newest Build lineage-19.1-20220511 on a Raspberry Pi4, in the Buttons menu is no Power Menu option. I cant get in the advanced reboot. Is there any solution for this problem?
Is there a way you could send a pic to us?
I suspect it’s in the notification/control center or however you call it in the Android world.
And to turn on advanced restart, Go to Settings > System > Buttons > Power Menu and turn on the Advanced Restart option.
 

KonstaT

Senior Member
Jan 20, 2016
686
424
KonstaKANG.com
Any solution for HDMI sleep issue? My HDMI monitor turning black but the backlight is still on so the monitor is not going to sleep at all like with any other regular linux distros. Thanks
There's been some similar reports (e.g http://disq.us/p/2ow1q71) but I'm not able to reproduce this. If I switch off the display by short pressing the power button or using screen timeout, my displays reports 'no signal' and switches to stand by after a while.
Hey i flashed the newest Build lineage-19.1-20220511 on a Raspberry Pi4, in the Buttons menu is no Power Menu option. I cant get in the advanced reboot. Is there any solution for this problem?
Please read the FAQ.

Settings -> System -> Buttons -> Power menu -> Advanced restart on the regular tablet UI build.
Settings -> System -> Buttons -> Advanced reboot on Android TV.
 

KingMagla

New member
Jan 25, 2019
3
0
There's been some similar reports (e.g http://disq.us/p/2ow1q71) but I'm not able to reproduce this. If I switch off the display by short pressing the power button or using screen timeout, my displays reports 'no signal' and switches to stand by after a while.

Please read the FAQ.

Settings -> System -> Buttons -> Power menu -> Advanced restart on the regular tablet UI build.
Settings -> System -> Buttons -> Advanced reboot on Android TV.
Under the Buttons Menu is no Power Menu. This is all i see in the Buttons Menu.
IMG_20220615_180740.jpg
 

pi_saab

Member
Mar 15, 2022
5
0
Hello
wondering if you can connect a bluethoot dongle to usb port

connect your mobile via it
 

pi_saab

Member
Mar 15, 2022
5
0
There's no support for external bluetooth dongles. You can consider Android as an OS for embedded devices so it's only designed to support one specific bluetooth hardware at a time.
thanks for your reply 😀

you do not know where to start reading or reach tips for raspberry pi 4 ?
 

SFX394402

New member
Feb 20, 2022
3
0
39
Moscow
Hello! Is it possible to change the mouse buttons for left-handers?

Dear KonstaT, please add an entry for f2fs userdata on fstab.rpi4. Thanks.
 

KonstaT

Senior Member
Jan 20, 2016
686
424
KonstaKANG.com
Hello! Is it possible to change the mouse buttons for left-handers?

Dear KonstaT, please add an entry for f2fs userdata on fstab.rpi4. Thanks.
No, Android doesn't have support for left-handed mouse buttons (mouses are not generally used on Android devices). It shouldn't be too difficult to implement as an extra feature but I don't have any current plans.

Data partition in the image I provide is formatted to ext4 so there's no reason to have any f2fs entry. Data partition is mounted by second stage init from /vendor/etc/fstab.rpi4 so you can add that yourself, format the partition to f2fs, and see if that works.
 

tnap1979

Senior Member
Apr 18, 2008
216
61
Hamilton
Replied on my site. Not much point in asking the same thing across several places.
Ain't no need to be a snarky arse..
Actually YES there's a damn good reason for multiple platforms and similar stuff asked across such... to make it FAR EASIER for others seeking similar interests to find said info... this type of response from devs like you is what ruins the experience for others... I asked in both places because A, up til today... I knew **** all about you or your site... but as my status shows... I've been a senior XDA member for many years.... so how about cutting some of us a break and not being rude when asked simple questions for something YOU created... yes... I'm Thankful and enjoy it.. I just wanted to know if it was possible... have a grand day.
 

KonstaT

Senior Member
Jan 20, 2016
686
424
KonstaKANG.com
Ain't no need to be a snarky arse..
Actually YES there's a damn good reason for multiple platforms and similar stuff asked across such... to make it FAR EASIER for others seeking similar interests to find said info... this type of response from devs like you is what ruins the experience for others... I asked in both places because A, up til today... I knew **** all about you or your site... but as my status shows... I've been a senior XDA member for many years.... so how about cutting some of us a break and not being rude when asked simple questions for something YOU created... yes... I'm Thankful and enjoy it.. I just wanted to know if it was possible... have a grand day.
If you consider that to be snarky or rude you haven't seen anything. :)

And yes, I linked the reply to make the information available here as well.
 
  • Like
Reactions: Grobsen

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Ain't no need to be a snarky arse..
    Actually YES there's a damn good reason for multiple platforms and similar stuff asked across such... to make it FAR EASIER for others seeking similar interests to find said info... this type of response from devs like you is what ruins the experience for others... I asked in both places because A, up til today... I knew **** all about you or your site... but as my status shows... I've been a senior XDA member for many years.... so how about cutting some of us a break and not being rude when asked simple questions for something YOU created... yes... I'm Thankful and enjoy it.. I just wanted to know if it was possible... have a grand day.
    If you consider that to be snarky or rude you haven't seen anything. :)

    And yes, I linked the reply to make the information available here as well.
    1
    Is it possible to use this 4G sim hat: Waveshare SIM7600X which accepts standard AT commands via UART on GPIO pins 8 & 10? Can the RIL be configured to talk on these pins?
    No, you can't use any LTE modem out-of-the-box. My builds are configured as wifi only tablet so they don't even have Android telephony framework. I have builds that have support Sixfab modem HAT and Quectel EC25. LTE data and SMS works fine. It's also possible to make/receive calls but in-call audio is not working. It's not something that I plan to include in public releases as practically no one has the hardware.

    Some 3G/LTE USB dongles have been reported working using third party apps (e.g. https://play.google.com/store/apps/details?id=de.draisberghof.pppwidget3).
  • 18
    Here’s my build of LineageOS 19 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_20220313-200456_Settings.png


    There is also Android TV version available.

    Screenshot_20220114-084413_Settings.png


    Working:
    • Audio (HDMI, 3.5mm jack, USB microphones, bluetooth speakers/headphones, etc)
    • Audio DAC (using GPIO DACs e.g. Hifiberry DAC+)
    • Bluetooth (and bluetooth tethering)
    • Camera (using official Pi camera modules & UVC USB webcams)
    • GPIO
    • GPS (using external USB modules e.g. U-Blox 7)
    • Ethernet
    • Hardware accelerated graphics (V3D, OpenGL & Vulkan)
    • HDMI display (and HDMI-CEC)
    • I2C
    • IR remotes (using external GPIO IR modules e.g. TSOP4838)
    • RTC (using external GPIO I2C modules e.g. DS3231)
    • Sensors (using external GPIO I2C modules e.g. MPU6050, LSM6DS3, LSM303DLHC, BME280/BMP280, and APDS9930 accelerometer, gyroscope, magnetometer, temperature, pressure, humidity, ambient light, and proximity)
    • Serial console (using external GPIO serial console adapters e.g. PL2303)
    • SPI
    • Touchscreen/multi-touch (official 7" touchscreen, USB touchscreens, Waveshare SPI touchscreens)
    • USB (mouse, keyboard, storage, etc)
    • USB-C (ADB, MTP, PTP, USB tethering)
    • Wifi (and wifi tethering)

    Not working:
    • Hardware video decoding & encoding (software decoding & encoding works, option to test highly experimental H.264 hardware video decoding)

    Issues:
    • Camcorder & some third party camera apps don't work with official Pi camera modules
    • SELinux is in permissive mode
    • and more…

    Sources:

    Thanks:
    • Peter Yoon and android-rpi project
    • Roman Stratiienko and GloDroid project
    • AOSP reference board developers (dragonboard, hikey, yukawa)
    • E. Anholt for V3D graphics driver
    • Maxime Ripard for Pi 4 KMS driver
    • Android-x86 project
    • LineageOS team and everyone who has contributed to LineageOS 19
    4
    New build.


    -switch to Linux 5.10 kernel by default
    -fix VC4 HDMI audio with 5.10 kernel (3.5mm jack is now used by default so select the right HDMI device from the settings)
    -add support for the official 7" touchscreen display with hw accelerated graphics (enable configurations for the touchscreen from the settings)
    -minor brightness fixes for the official 7" display
    -add support for Pi camera modules using libcamera, preview & photos work - camcorder doesn't (thanks to Roman Stratiienko)
    -fix UVC USB webcams that use external camera HAL (camera needs to support MJPG format - preview, photos & camcorder works)
    -add option to enable currently very WIP H.264 hardware video decoding using v4l2_codec2 (enable experimental feature from the settings)
    -fix reboots related to Hotspot 2.0 networks/ANQP requests (see issue #6)
    -Vulkan 1.1 (thanks to people at Igalia for Vulkan 1.1 conformance and Roman Stratiienko for latest Mesa fixes)
    -update to Mesa 21.3.1
    -update to Linux 5.10.83 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 5 December 2021 (merged)
    3
    New build. Added optional Linux 5.10 kernel add-on to test a lot of WIP stuff.


    -add option to show virtual volume down, volume up, and power keys on navigation bar (requires reboot)
    -add option for old TCP-based ADB over network
    -show IP address and port for ADB/SSH/VNC options
    -update to TWRP 3.6.0_11-0-KonstaKANG
    -update to Mesa 21.3.0
    -update to Linux 5.4.161 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 5 November 2021 (merged)

    Linux 5.10 kernel: (optional add-on)
    -various KMS driver improvements (DSI panel support, etc)
    -support for Pi camera modules using libcamera, preview & photos work - camcorder doesn’t (thanks to Roman Stratiienko)
    -option to test currently very WIP H.264 hardware video decoding using v4l2_codec2 (Settings -> System -> Advanced settings -> Hardware video decoding)
    -HDMI audio is not supported! (see issue #4651 & issue #4654)
    -new Raspberry Pi Android kernel bring-up based on AOSP android12-5.10-lts
    -update to Linux 5.10.81 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    3
    Wow I didn't expect latest Android being supported on the Pie, thanks for the great work!
    I have two small questions though :
    • Do you know how is support for microG? It doesn't cause any problem? (was wondering about casting videos for example)
    MicroG requires a patch for signature spoofing that is not included in LineageOS for security reasons. I think this is also something that can be achieved using Magisk (which is now supported) but haven't looked into it.
    • I know it has been asked few times already, but now that Android 12 has been released are you confident it will be possible to have support for hardware acceleration soon? Would make a big difference to have a steady 1080p/60fps
    I'm pretty confident it will work eventually. Soon(™) is also a relative term.

    Short term goal is to get some proof of concept that stateful H.264 V4L2 dec/enc can work on Android on Pi 4. Just made some minor progress with v4l2_codec2 couple of days ago and got the dec/enc codec2 component to even do something in the first place. Not sure if the current issues I'm having are due to memory allocation or the codec component negotiating with the kernel driver. There's also still some hardcoded buffer sizes, etc that depend on the video resolution you're trying to dec/enc. Only real hardware that I'm aware that just recently has this working at least to some extent is dragonboard and John Stultz has tweeted some updates on the matter so check those out if you're interested.

    Sorry if this wasn't the news you were looking for but things like this take time.
    3
    Short term goal is to get some proof of concept that stateful H.264 V4L2 dec/enc can work on Android on Pi 4.
    And that didn't even take too long. \o/ But yes, H.264 V4L2 hardware decoding can work on Android on the Pi 4!

    Something still getting messed up somewhere in the pipeline so the colors are not correct and there's a green tint on the bottom half of the playback.
    https://www.dropbox.com/s/hlvcv23ejfpinn5/VID_20211108_194739.mp4?dl=0