• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[DEV][ROM][UNOFFICIAL] LineageOS 17.1 (Android 10) for Raspberry Pi 4 B

Search This thread

KonstaT

Senior Member
Jan 20, 2016
506
341
KonstaKANG.com
Hi, thanks to everyone involved in this build for their amazing work.
Now, I'd like to install NanoDroid and specifically its patcher script to add signature spoofing support and install microG. I have attached the particular zip file. When I try to install it in TWRP, it just fails with `failed to mount /system (unsupported A/B device?)`.
I tried disabling the option to unmount system before installing zips, mounting it then installing the zip but the script seems to try to mount it anyways. I assume this a problem with the partitioning scheme? What could I do to get the install to work? Thanks in advance to anyone who might help me with this.
This build is discontinued and you should use the latest LineageOS 18 images instead (https://forum.xda-developers.com/t/...18-1-android-11-for-raspberry-pi-4-b.4212945/).

Without further looking into I can't say why it would fail. There is nothing non-standard about system partition on this device (only boot partition is different from regular Android devices) so it shouldn't fail if the installer is done properly.

Would this be something that can be done with Magisk? I just recently added a Magisk patcher for my builds so you can use that now.
 
Last edited:
> This build is discontinued and you should use the latest LineageOS 18 images instead

They're not stable enough for me.

> Would this be something that can be done with Magisk?

I think it can.

I'll stay with degoogled los17. Thanks for your response.
 

KonstaT

Senior Member
Jan 20, 2016
506
341
KonstaKANG.com
> This build is discontinued and you should use the latest LineageOS 18 images instead

They're not stable enough for me.

> Would this be something that can be done with Magisk?

I think it can.

I'll stay with degoogled los17. Thanks for your response.
Care to specify what exactly makes them "not stable enough"? Difference in kernel is just one line in configuration. All the graphics drivers are much newer/better in later versions. I can't see any reason not to update which is why there's also no point in keeping this version maintained. Basically you're just missing out on all the latest features and updates by using an almost a year old build but your choice of course.

There never was any Google services included to begin with so you can't remove anything (and Android being Google OS you can't escape that in any case).
 
There never was any Google services.
That's what I'm saying.

> Care to specify what exactly makes them "not stable enough"?

Some small problems around, like the scrolling text in the quick settings slowing down everything (maybe this only happens with the french locale), or some crashes with video playback in certain cases - I wasn't aware that the los17 build wasn't updated anymore, so I'll consider making detailed bug reports for the newer builds.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    Here’s my build of LineageOS 17.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!

    Screenshot_20200727-114321_Settings.png


    https://konstakang.com/devices/rpi4/LineageOS17.1/

    There is also Android TV version available.
    Screenshot_20200815-143204_Settings.png


    https://konstakang.com/devices/rpi4/LineageOS17.1-ATV/

    Working:
    • Audio (HDMI, 3.5mm jack, USB microphones, bluetooth speakers/headsets, etc)
    • Audio DAC (using GPIO DACs e.g. Hifiberry DAC+)
    • Bluetooth
    • 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)
    • HDMI display
    • 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 accelerometer/gyroscope/magnetometer)
    • Serial console (using external GPIO serial console adapters e.g. PL2303)
    • SPI
    • Touchscreen/multi-touch (USB touchscreens, Waveshare SPI touchscreens, official 7" touchscreen using SwiftShader software renderer)
    • USB (mouse, keyboard, storage, etc)
    • USB-C (ADB, MTP, PTP, USB-tethering)
    • Wifi
    • Wifi tethering

    Not working:
    • Hardware video decoding & encoding (software decoding & encoding works)

    Issues:
    • Stock camera app is not working - many third party camera apps seem to work
    • SELinux is in permissive mode
    • and more…

    Sources:

    Thanks:
    • Peter Yoon and everyone who has contributed to android-rpi
    • brobwind for bluetooth fixes
    • Roman Stratiienko and GloDroid project for graphics fixes
    • Eric Anholt for V3D graphics driver
    • Maxime Ripard for Pi 4 KMS driver
    • Google for Android Things platform
    • Android-x86 project
    • LineageOS team & everyone who has contributed to LineageOS 17.1
    11
    How to install:
    1. Follow the official Raspberry Pi instructions for writing the image to the SD card (Linux, Mac, Windows).

    FAQ:

    FAQ is getting quite long and difficult to maintain in several different places. You can find the always up-to-date FAQs here:
    https://konstakang.com/devices/rpi4/LineageOS17.1/
    https://konstakang.com/devices/rpi4/LineageOS17.1-ATV/
    11
    Merged commits not mentioned in the changelog.

    22.1. 2021 changelog:
    • add support for sensors (MPU6050, LSM6DS3 & LSM303DLHC accelerometer/gyroscope/magnetometer on I2C)
    • add support for more serial GPS devices
    • 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.3
    • update to Linux 5.4.91 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 January 2021 (merged)

    20.11. changelog:
    • device settings improvements
      • fix audio device option
      • add CPU overclock option (make sure to take care of cooling if you decide to overclock!)
      • add SSH option and improve support for built-in SSH server (see FAQ)
    • fix wifi & bluetooth on Pi 400, should be fully functional now (Compute Module 4 support still untested)
    • support using HDMI:1 (fix HDMI audio in Android & fix display in TWRP)
    • fix touch input on Fondar USB touchscreen (thanks to maxwen)
    • update to Linux 5.4.77 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)

    8.11. changelog:
    • initial device settings for various Raspberry Pi specific options (Settings -> System -> Advanced settings)
      • audio device option (HDMI/3.5mm jack/audio DAC)
      • display options (graphics drivers, display resolution, display rotation)
      • options for IR remote, hardware keys, and RTC
    • fix wrong color format used in some games (thanks to Roman Stratiienko)
    • simplify booting to/out of TWRP recovery (see FAQ)
    • improve support for booting from USB devices (see FAQ, thanks to maxwen)
    • improve support for RTC & IR remotes (see FAQ)
    • add more options for rotating touch input on Waveshare SPI (ADS7846) touchscreens (thanks to mikenon)
    • allow switching display off with power button
    • map right mouse button to back key
    • initial support for Pi Compute Module 4 & Pi 400 (untested)
    • update to TWRP 3.4.0-1
    • update to Mesa 20.2.2 and latest upstream version of drm_hwcomposer
    • update to Linux 5.4.75 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 November 2020 (merged)

    13.8. changelog:
    • bring back forced landscape orientation for portrait apps
    • bring back support for running scripts from /system/etc/init.d/
    • read resolution from /boot/resolution.txt
    • fix issue with color format in fullscreen 1080p videos
    • fix issue with drm video playback
    • initial support for SSH server
    • update Mesa to 20.1.5
    • update to Linux 5.4.58 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 August 2020 (merged)

    27.7. changelog:
    • initial LineageOS 17.1 build
    • hardware accelerated graphics
      • V3D using Mesa 20.1.4 with drm_hwcomposer & gbm gralloc
      • 1920x1080 resolution
    • update TWRP to 3.4.0-0
    • update to Linux 5.4.53 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 July 2020 (merged)

    Previous builds:
    4
    New builds (regular & Android TV).


    -add support for sensors (MPU6050, LSM6DS3 & LSM303DLHC accelerometer/gyroscope/magnetometer on I2C)
    -add support for more serial GPS devices
    -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.3
    -update to Linux 5.4.91 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 5 January 2021 (merged)