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

[DEV][ROM][UNOFFICIAL] LineageOS 16.0 (Android 9) for Raspberry Pi 3 B and B+

Search This thread

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
Here’s my build of LineageOS 16.0 for Raspberry Pi 3 Model B and Model B+. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only.

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_20190627-114323_Settings.png


https://konstakang.com/devices/rpi3/LineageOS16.0/

lineage-16.0-20200713-UNOFFICIAL-KonstaKANG-rpi3.zip
https://www.androidfilehost.com/?fid=8889791610682891697
md5:3689e767c41858bb53db20190b6542a5

Working:
  • Audio (HDMI, 3.5mm jack, USB microphones, bluetooth speakers/headsets, etc)
  • Audio DAC (using PCM512x 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 (VC4)
  • HDMI display
  • I2C
  • IR remotes (using external GPIO IR modules e.g. TSOP4838)
  • RTC (using external GPIO I2C modules e.g. DS3231)
  • Serial console (using external GPIO serial console adapters e.g. PL2303)
  • SPI
  • Touchscreen/multi-touch (using official 7” display with SwiftShafer software renderer)
  • USB (mouse, keyboard, storage, etc)
  • Wifi
  • Wifi tethering

Not working:
  • Hardware video decoding & encoding

Issues:
  • SELinux is in permissive mode
  • and more…

Sources:

Thanks:
  • peyo-hd and everyone who has contributed to android-rpi
  • brobwind for graphics and bluetooth fixes
  • Eric Anholt for VC4 graphics driver
  • Google for Android Things platform
  • Android-x86 project
  • LineageOS team & everyone who has contributed to LineageOS 16.0
 
Last edited:

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
How to install:
  1. Follow the official Raspberry Pi instructions for writing the image to the SD card (Linux, Mac, Windows).

FAQ:

Q: I can’t find developer options, why?
A: Settings -> About tablet -> Click ‘Build number’ several times

Q: I have no root, why? What is that hashtag on my status bar?
A: You need enable root access under Settings -> System -> Developer options -> Root access. Root management is now integrated as part of LineageOS’ Privacy Guard and you can manage per app permissions under Settings -> System -> Developer options -> Manage root access. You’ll have a persistent notification in the status bar when you’re running an app that uses root permissions.

Q: Settings -> Storage shows total system size of 4 GB. There's unallocated space on my sdcard. What should I do?
A: This is a 4 GB image, remaining space on your sdcard will remain unallocated. You can use e.g. GParted and extend /data partition (/dev/block/mmcblk0p4) to cover the unallocated space. Resizing the partition manually will break support for encrypting /data. Format /data in TWRP recovery (Wipe->Format data) after resizing to leave required space for crypto footer.

Or you can flash my resize zip in TWRP.


Q: My display is not working. I can only see the rainbow screen but no Android boot animation. What should I do?
A: This build only supports HDMI displays that report supported resolutions using EDID. See this page under 'Which values are valid for my monitor?' to see how to check which resolutions your display supports using Raspbian. 1280x720 resolution is used by default with this build. If your display doesn't support 1280x720 resolution, you can try changing value in /boot/resolution.txt to something it does.

Q: I have official 7” LCD display and touchscreen. What should I do?
A: Official 7” touchscreen is only supported using SwiftShader software renderer. See below how to switch between different graphics drivers. You will also need to change display size under Settings -> Display -> Display size (or change ro.sf.lcd_density to 120 in /system/build.prop) to adapt to the smaller resolution.

Q: I need to use SwiftShader software renderer to use the official 7” display or I want to boot without any display connected. What should I do?
A: Warning, SwiftShader is a software renderer and using it affects graphics performance. You can switch between MESA and SwiftShader graphics drivers by executing following commands in ‘adb shell’/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal):

Code:
su
rpi3-graphics.sh swiftshader
Code:
su
rpi3-graphics.sh mesa

Q: Raspberry Pi doesn’t have power button, how do I power off/reboot my device?
A: Following keyboard keys work as Android buttons: F1 = Home, F2 = Back, F3 = Multi-tasking, F4 = Menu, F5 = Power, F11 = Volume down, and F12 = Volume up. You can also use one of many third party reboot applications.

Q: How to create a DIY hardware power button?
A: You can send power button events by connecting GPIO21 to ground.

powerbutton.png


Execute following commands in ‘adb shell’/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal) to enable the feature and reboot your device:

Code:
su
rpi3-powerbutton.sh

You can also use the DIY power button to boot the device to TWRP recovery. Press and hold the button while powering on the device until you see the TWRP screen. If you use this method to boot to recovery, you can ignore what is said about booting into/out of TWRP later in the FAQ.

Q: How to enable audio through 3.5mm jack?
Execute following commands in 'adb shell'/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal) to enable the feature and reboot your device:

Code:
su
rpi3-audio-jack.sh

Q: How to boot from USB device?
A: Warning, this is an experimental feature and there’s still some issues with it. Android shows USB storage notification for each partition and you should ignore these. TWRP shows errors in few places but everything seems to be working regardless of this.

  1. Follow the official instructions on how to enable USB boot on Pi 3 B (this step is not needed on Pi 3 B+)
  2. Write image to your USB device as above
  3. Mount the USB device on your computer and rename following files on the boot partition:
    Code:
    mv ramdisk.img ramdisk-sdcard.img
    mv ramdisk-usb.img ramdisk.img
    mv ramdisk-recovery.img ramdisk-recovery-sdcard.img
    mv ramdisk-recovery-usb.img ramdisk-recovery.img
  4. Plug in the USB device to your Raspberry Pi, remove any sdcard, and boot

Q: How to boot to TWRP recovery?
A: There’s currently no proper way to boot between Android and TWRP, but this can achieved by renaming the ramdisk you want to boot. Execute following commands in ‘adb shell’/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal) and reboot your device:

Code:
su
rpi3-recovery.sh

If mouse cursor doesn’t appear, try replugging your mouse.

Q: How to boot out of TWRP recovery?
A: You can execute the same script in TWRP terminal (Advanced->Terminal) if you have boot and system partitions mounted (Mount->Boot & Mount->System):

Code:
rpi3-recovery.sh boot

Or you can flash my recovery2boot zip in TWRP.

Q: How to update from previous LineageOS 16.0 build without losing data?
A:

  1. Boot to TWRP recovery with the build you want to keep the data (see FAQ)
  2. Plug in an external USB storage device and select 'Backup'
  3. Use 'Select Storage' to choose the USB device and 'Swipe to backup' (it's only necessary to backup the data partition so you can uncheck other partitions to speed up the process)
  4. Write new LineageOS 16.0 image to the sdcard following installation instructions
  5. Boot to TWRP recovery with the new build (see FAQ)
  6. Select 'Restore' and find the backup you created from the USB device ('Select Storage')
  7. Make sure you only have data selected as partitions to restore (uncheck other partitions if available) and select 'Swipe to Restore'
  8. (Flash Google apps package/other add-ons you had previously installed)
  9. Boot out of recovery (see FAQ)

Q: How to install Google apps?
A: Warning, installing gapps slows things down especially on low-end devices with limited amount of RAM such as this one.

  1. Download open_gapps-arm-9.0-pico-xxxxxxxx.zip and save it to your device’s internal storage or use an external USB drive
  2. Boot to TWRP recovery (see FAQ)
  3. Install open_gapps-arm-9.0-pico-xxxxxxxx.zip from your selected storage
  4. Wipe->Factory reset!
  5. Boot out of recovery (see FAQ)
 
Last edited:

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
Merged commits not mentioned in the changelog.

13.7. changelog:

  • add ir-keytable tool to configure IR remotes
  • enable USB gadget support & fix adb toggle in developer options
  • add support for storage devices with exFAT filesystem
  • hide su binary when root access is not enabled in developer options
  • add support for PCM512x audio DACs (tested with Hifiberry DAC+)
  • improve support for Waveshare HDMI touchscreens
  • fix recording videos with camcorder
  • add TWRP flashable zip to resize data partition (see FAQ)
  • update TWRP to 3.3.1-1
  • update to MESA 20.1.3 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
  • update to Linux 4.19.132 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
  • Android security patch level: 5 July 2020 (merged)

7.2. 2020 changelog:
  • add camera HAL to support Pi camera modules and USB webcams (thanks to Android-x86)
  • update to MESA 19.3.3 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
  • enable hardware overlays (improves graphics performance)
  • add option to switch to SwiftShader software renderer e.g. to use official 7” touchscreen or to boot without any display connected (see FAQ)
  • fix portrait apps on forced landscape orientation (thanks to Ladehunter)
  • update GPS HAL
  • option to use DIY hardware power button to boot to TWRP recovery (see FAQ)
  • initial support for IR modules and remotes (tested with TSOP4838)
  • update to Linux 4.19.102 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
  • Android security patch level: 5 January 2020 (merged)

22.12. changelog:
  • update to MESA 19.3.1 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
  • set default resolution using a configuration file (see FAQ)
  • add vendor init library to set serial number, revision, and resolution properties
  • add health HAL to fake battery/charging
  • add script to enable audio through 3.5mm jack (see FAQ)
  • add initial support for RTC hardware (tested with DS3231)
  • update to Linux 4.14.160 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
  • Android security patch level: 5 December 2019 (merged)

27.6. changelog:
  • initial LineageOS 16.0 build
  • hardware accelerated graphics (thanks to brobwind for putting the final pieces together)
    • VC4 using Mesa 19.1 with drm_hwcomposer & minigbm gralloc
  • fix bluetooth on Pi 3 B+ (thanks to brobwind)
  • add initial support for booting from USB devices (see FAQ)
  • add support for DIY hardware power button (see FAQ)
  • update TWRP to 3.3.1-0
  • update to Linux 4.14.129 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
  • Android security patch level: 5 June 2019 (merged)

Previous builds:
 
Last edited:

sabaatworld

Senior Member
Feb 6, 2012
233
192
Seattle
Thanks for the build. Going to try this out today. Is there any way to connect this to a PC as an android device (like someone would connect a phone to PC)?
 

che0033

New member
Jul 10, 2019
2
0
感謝 有個問題 有些APP會在開啟時改變螢幕的方向和尺寸 同時發送出權限請求 系統UI崩潰 配置config有辦法強制禁止對顯示器做任何更改嗎?

Thanks! There is a problem. Some apps will change the orientation and size of the screen when they are turned on. Send a permission request at the same time. System UI crashes. Is there a way to configure Config to forcibly disable any changes to the display?
 

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
感謝 有個問題 有些APP會在開啟時改變螢幕的方向和尺寸 同時發送出權限請求 系統UI崩潰 配置config有辦法強制禁止對顯示器做任何更改嗎?

Thanks! There is a problem. Some apps will change the orientation and size of the screen when they are turned on. Send a permission request at the same time. System UI crashes. Is there a way to configure Config to forcibly disable any changes to the display?

What app are you using? Steps to reproduce the issue? Logcat?
 

darkchmatak

Senior Member
Jan 25, 2009
60
6
Hi I wanted to ask if you plan to add support for USB? I mean to raspberry act like phone when connected though USB to PC. It would make it perfect as phone replacement for using with android auto/AAgateway. Thanks for answer :)
 
Jun 29, 2019
32
6
Nice! I like seeing stuff like this for the pi. I remember having so much fun tinkering with building the oreo lineage15.1 rpi3 stuff a bit ago. Also, I heard something about someone trying to sell your builds of lineage for pie, so will the lineage-16.0 branch for some of the files on the github page for this not be released to the public? Either way, I appreciate your work a lot and hope you can continue as these are amazing!
 
  • Like
Reactions: KonstaT

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
Hi I wanted to ask if you plan to add support for USB? I mean to raspberry act like phone when connected though USB to PC. It would make it perfect as phone replacement for using with android auto/AAgateway. Thanks for answer :)

No current plans.

My LineageOS 14.1 and 15.1 builds are fully open source so there's nothing stopping you/someone else doing this yourself. Shouldn't be any problem adding it here after that (I'll credit the author of course as always :)).
 

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
Nice! I like seeing stuff like this for the pi. I remember having so much fun tinkering with building the oreo lineage15.1 rpi3 stuff a bit ago. Also, I heard something about someone trying to sell your builds of lineage for pie, so will the lineage-16.0 branch for some of the files on the github page for this not be released to the public? Either way, I appreciate your work a lot and hope you can continue as these are amazing!

Wasn't trying - was and still is selling builds for $9! Nothing but builds from lineage-rpi sources with some apps bundled in. It was even promoted on Pi Foundation's own MagPi Magazine as his work and the article was brought to my attention. I spent _a lot_ of time on this last fall but couldn't really get anywhere. You can read about it e.g. here and here.

What makes this very problematic for Exton is that he is not complying with GPLv2 that Linux kernel is licensed under. GPLv2 obligates anyone distributing a binary to release a complete corresponding source code. Even if the only modification you make is stick your own name on other people's work...

That is exactly why I haven't published lineage-16.0 branches apart from the Linux kernel (https://github.com/lineage-rpi/android_kernel_brcm_rpi3/tree/lineage-16.0) as that is naturally also my legal obligation. You can't do Android with just the Linux kernel source, though. I was thinking about putting up a private GitLab project where I could share the source code with reputable developers who actually have some ideas how they want to improve what is already available. I know some companies are you using my previous LineageOS builds which is why I've licensed some stuff under non-commercial license in this one. They've been asking for private tech support but I still can't get as much as a donation even when promised. :(
 
Last edited:
Jun 29, 2019
32
6
Wasn't trying - was and still is selling builds for $9! Nothing but builds from lineage-rpi sources with some apps bundled in. It was even promoted on Pi Foundation's own MagPi Magazine as his work and the article was brought to my attention. I spent _a lot_ of time on this last fall but couldn't really get anywhere. You can read about it e.g. here and here.

What makes this very problematic for Exton is that he is not complying with GPLv2 that Linux kernel is licensed under. GPLv2 obligates anyone distributing a binary to release a complete corresponding source code. Even if the only modification you make is stick your own name on other people's work...

That is exactly why I haven't published lineage-16.0 branches apart from the Linux kernel (https://github.com/lineage-rpi/android_kernel_brcm_rpi3/tree/lineage-16.0) as that is naturally also my legal obligation. You can't do Android with just the Linux kernel source, though. I was thinking about putting up a private GitLab project where I could share the source code with reputable developers who actually have some ideas how they want to improve what is already available. I know some companies are you using my previous LineageOS builds which is why I've licensed some stuff under non-commercial license in this one. They've been asking for private tech support but I still can't get as much as a donation even when promised. :(

Wow that's really horrible! I can't believe that it still is happening. I love building stuff on my own(in fact, I was considering trying get any device I have laying around to work for a custom rom someone I semi-know started) and that really makes me sick that you have to deal with that. Hopefully you can get that situation resolved, because I'm sure that's a huge hit in the stomach for that to happen. Really sours the whole open-source nature of things when someone takes advantage of the community.
 
Last edited:
  • Like
Reactions: KonstaT

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
Hi. I am not capable in this kind of development. What would be involved in making the build detect a wired ethernet connection?

Nothing. Ethernet works just fine the last time I checked.

Edit. Tested again and it works fine on Pi 3 B at least. Android has no settings options for ethernet but a small statusbar icon appears when you're connected using ethernet.
 
Last edited:

reversegear

Senior Member
Jul 17, 2011
2,279
1,611
Xiaomi Mi Max 2
This is the best implementation of Android on pi till date. Super smooth no more random force close and app not responding.

Note : I have not installed gapps.
@konsta Any chance of running the Android in 1080p instead of 720p

Can some one suggest a remote control Android app which controls raspberry pi. I know lot of wireless mouse available in the market.
Right now Im using a wired mouse I have to go near to tv every time for controlling
 
  • Like
Reactions: KonstaT

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
@konsta Any chance of running the Android in 1080p instead of 720p

You can try editing debug.drm.mode.force property in /system/build.prop and see how it goes (also change display density property or display size from display settings). Already struggling with the limited amount of RAM so this is likely going to affect performance.
 
  • Like
Reactions: reversegear

KonstaT

Senior Member
Jan 20, 2016
439
299
KonstaKANG.com
Hi @KonstaT, is it possible to dual boot your build using PINN (Noobs)?.
Thanks for your efforts!

You need to contact procount who is developing PINN and ask him. Some time ago he said that he had some problem with adding LineageOS 16.0 support but I don't know about the current status.

Generally speaking I don't recommend using anything else than the latest build from my site. There was PINN support for some previous LineageOS versions but they were never updated and quickly fell out of date. Not that there's currently any plans for any LineageOS 16.0 updates, though...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Here’s my build of LineageOS 16.0 for Raspberry Pi 3 Model B and Model B+. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only.

    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_20190627-114323_Settings.png


    https://konstakang.com/devices/rpi3/LineageOS16.0/

    lineage-16.0-20200713-UNOFFICIAL-KonstaKANG-rpi3.zip
    https://www.androidfilehost.com/?fid=8889791610682891697
    md5:3689e767c41858bb53db20190b6542a5

    Working:
    • Audio (HDMI, 3.5mm jack, USB microphones, bluetooth speakers/headsets, etc)
    • Audio DAC (using PCM512x 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 (VC4)
    • HDMI display
    • I2C
    • IR remotes (using external GPIO IR modules e.g. TSOP4838)
    • RTC (using external GPIO I2C modules e.g. DS3231)
    • Serial console (using external GPIO serial console adapters e.g. PL2303)
    • SPI
    • Touchscreen/multi-touch (using official 7” display with SwiftShafer software renderer)
    • USB (mouse, keyboard, storage, etc)
    • Wifi
    • Wifi tethering

    Not working:
    • Hardware video decoding & encoding

    Issues:
    • SELinux is in permissive mode
    • and more…

    Sources:

    Thanks:
    • peyo-hd and everyone who has contributed to android-rpi
    • brobwind for graphics and bluetooth fixes
    • Eric Anholt for VC4 graphics driver
    • Google for Android Things platform
    • Android-x86 project
    • LineageOS team & everyone who has contributed to LineageOS 16.0
    4
    How to install:
    1. Follow the official Raspberry Pi instructions for writing the image to the SD card (Linux, Mac, Windows).

    FAQ:

    Q: I can’t find developer options, why?
    A: Settings -> About tablet -> Click ‘Build number’ several times

    Q: I have no root, why? What is that hashtag on my status bar?
    A: You need enable root access under Settings -> System -> Developer options -> Root access. Root management is now integrated as part of LineageOS’ Privacy Guard and you can manage per app permissions under Settings -> System -> Developer options -> Manage root access. You’ll have a persistent notification in the status bar when you’re running an app that uses root permissions.

    Q: Settings -> Storage shows total system size of 4 GB. There's unallocated space on my sdcard. What should I do?
    A: This is a 4 GB image, remaining space on your sdcard will remain unallocated. You can use e.g. GParted and extend /data partition (/dev/block/mmcblk0p4) to cover the unallocated space. Resizing the partition manually will break support for encrypting /data. Format /data in TWRP recovery (Wipe->Format data) after resizing to leave required space for crypto footer.

    Or you can flash my resize zip in TWRP.


    Q: My display is not working. I can only see the rainbow screen but no Android boot animation. What should I do?
    A: This build only supports HDMI displays that report supported resolutions using EDID. See this page under 'Which values are valid for my monitor?' to see how to check which resolutions your display supports using Raspbian. 1280x720 resolution is used by default with this build. If your display doesn't support 1280x720 resolution, you can try changing value in /boot/resolution.txt to something it does.

    Q: I have official 7” LCD display and touchscreen. What should I do?
    A: Official 7” touchscreen is only supported using SwiftShader software renderer. See below how to switch between different graphics drivers. You will also need to change display size under Settings -> Display -> Display size (or change ro.sf.lcd_density to 120 in /system/build.prop) to adapt to the smaller resolution.

    Q: I need to use SwiftShader software renderer to use the official 7” display or I want to boot without any display connected. What should I do?
    A: Warning, SwiftShader is a software renderer and using it affects graphics performance. You can switch between MESA and SwiftShader graphics drivers by executing following commands in ‘adb shell’/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal):

    Code:
    su
    rpi3-graphics.sh swiftshader
    Code:
    su
    rpi3-graphics.sh mesa

    Q: Raspberry Pi doesn’t have power button, how do I power off/reboot my device?
    A: Following keyboard keys work as Android buttons: F1 = Home, F2 = Back, F3 = Multi-tasking, F4 = Menu, F5 = Power, F11 = Volume down, and F12 = Volume up. You can also use one of many third party reboot applications.

    Q: How to create a DIY hardware power button?
    A: You can send power button events by connecting GPIO21 to ground.

    powerbutton.png


    Execute following commands in ‘adb shell’/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal) to enable the feature and reboot your device:

    Code:
    su
    rpi3-powerbutton.sh

    You can also use the DIY power button to boot the device to TWRP recovery. Press and hold the button while powering on the device until you see the TWRP screen. If you use this method to boot to recovery, you can ignore what is said about booting into/out of TWRP later in the FAQ.

    Q: How to enable audio through 3.5mm jack?
    Execute following commands in 'adb shell'/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal) to enable the feature and reboot your device:

    Code:
    su
    rpi3-audio-jack.sh

    Q: How to boot from USB device?
    A: Warning, this is an experimental feature and there’s still some issues with it. Android shows USB storage notification for each partition and you should ignore these. TWRP shows errors in few places but everything seems to be working regardless of this.

    1. Follow the official instructions on how to enable USB boot on Pi 3 B (this step is not needed on Pi 3 B+)
    2. Write image to your USB device as above
    3. Mount the USB device on your computer and rename following files on the boot partition:
      Code:
      mv ramdisk.img ramdisk-sdcard.img
      mv ramdisk-usb.img ramdisk.img
      mv ramdisk-recovery.img ramdisk-recovery-sdcard.img
      mv ramdisk-recovery-usb.img ramdisk-recovery.img
    4. Plug in the USB device to your Raspberry Pi, remove any sdcard, and boot

    Q: How to boot to TWRP recovery?
    A: There’s currently no proper way to boot between Android and TWRP, but this can achieved by renaming the ramdisk you want to boot. Execute following commands in ‘adb shell’/serial console/terminal (you can enable built-in terminal app from Settings -> System -> Developer options -> Local terminal) and reboot your device:

    Code:
    su
    rpi3-recovery.sh

    If mouse cursor doesn’t appear, try replugging your mouse.

    Q: How to boot out of TWRP recovery?
    A: You can execute the same script in TWRP terminal (Advanced->Terminal) if you have boot and system partitions mounted (Mount->Boot & Mount->System):

    Code:
    rpi3-recovery.sh boot

    Or you can flash my recovery2boot zip in TWRP.

    Q: How to update from previous LineageOS 16.0 build without losing data?
    A:

    1. Boot to TWRP recovery with the build you want to keep the data (see FAQ)
    2. Plug in an external USB storage device and select 'Backup'
    3. Use 'Select Storage' to choose the USB device and 'Swipe to backup' (it's only necessary to backup the data partition so you can uncheck other partitions to speed up the process)
    4. Write new LineageOS 16.0 image to the sdcard following installation instructions
    5. Boot to TWRP recovery with the new build (see FAQ)
    6. Select 'Restore' and find the backup you created from the USB device ('Select Storage')
    7. Make sure you only have data selected as partitions to restore (uncheck other partitions if available) and select 'Swipe to Restore'
    8. (Flash Google apps package/other add-ons you had previously installed)
    9. Boot out of recovery (see FAQ)

    Q: How to install Google apps?
    A: Warning, installing gapps slows things down especially on low-end devices with limited amount of RAM such as this one.

    1. Download open_gapps-arm-9.0-pico-xxxxxxxx.zip and save it to your device’s internal storage or use an external USB drive
    2. Boot to TWRP recovery (see FAQ)
    3. Install open_gapps-arm-9.0-pico-xxxxxxxx.zip from your selected storage
    4. Wipe->Factory reset!
    5. Boot out of recovery (see FAQ)
    3
    Merged commits not mentioned in the changelog.

    13.7. changelog:

    • add ir-keytable tool to configure IR remotes
    • enable USB gadget support & fix adb toggle in developer options
    • add support for storage devices with exFAT filesystem
    • hide su binary when root access is not enabled in developer options
    • add support for PCM512x audio DACs (tested with Hifiberry DAC+)
    • improve support for Waveshare HDMI touchscreens
    • fix recording videos with camcorder
    • add TWRP flashable zip to resize data partition (see FAQ)
    • update TWRP to 3.3.1-1
    • update to MESA 20.1.3 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
    • update to Linux 4.19.132 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 July 2020 (merged)

    7.2. 2020 changelog:
    • add camera HAL to support Pi camera modules and USB webcams (thanks to Android-x86)
    • update to MESA 19.3.3 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
    • enable hardware overlays (improves graphics performance)
    • add option to switch to SwiftShader software renderer e.g. to use official 7” touchscreen or to boot without any display connected (see FAQ)
    • fix portrait apps on forced landscape orientation (thanks to Ladehunter)
    • update GPS HAL
    • option to use DIY hardware power button to boot to TWRP recovery (see FAQ)
    • initial support for IR modules and remotes (tested with TSOP4838)
    • update to Linux 4.19.102 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 January 2020 (merged)

    22.12. changelog:
    • update to MESA 19.3.1 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
    • set default resolution using a configuration file (see FAQ)
    • add vendor init library to set serial number, revision, and resolution properties
    • add health HAL to fake battery/charging
    • add script to enable audio through 3.5mm jack (see FAQ)
    • add initial support for RTC hardware (tested with DS3231)
    • update to Linux 4.14.160 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 December 2019 (merged)

    27.6. changelog:
    • initial LineageOS 16.0 build
    • hardware accelerated graphics (thanks to brobwind for putting the final pieces together)
      • VC4 using Mesa 19.1 with drm_hwcomposer & minigbm gralloc
    • fix bluetooth on Pi 3 B+ (thanks to brobwind)
    • add initial support for booting from USB devices (see FAQ)
    • add support for DIY hardware power button (see FAQ)
    • update TWRP to 3.3.1-0
    • update to Linux 4.14.129 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    • Android security patch level: 5 June 2019 (merged)

    Previous builds:
    2
    Nice! I like seeing stuff like this for the pi. I remember having so much fun tinkering with building the oreo lineage15.1 rpi3 stuff a bit ago. Also, I heard something about someone trying to sell your builds of lineage for pie, so will the lineage-16.0 branch for some of the files on the github page for this not be released to the public? Either way, I appreciate your work a lot and hope you can continue as these are amazing!

    Wasn't trying - was and still is selling builds for $9! Nothing but builds from lineage-rpi sources with some apps bundled in. It was even promoted on Pi Foundation's own MagPi Magazine as his work and the article was brought to my attention. I spent _a lot_ of time on this last fall but couldn't really get anywhere. You can read about it e.g. here and here.

    What makes this very problematic for Exton is that he is not complying with GPLv2 that Linux kernel is licensed under. GPLv2 obligates anyone distributing a binary to release a complete corresponding source code. Even if the only modification you make is stick your own name on other people's work...

    That is exactly why I haven't published lineage-16.0 branches apart from the Linux kernel (https://github.com/lineage-rpi/android_kernel_brcm_rpi3/tree/lineage-16.0) as that is naturally also my legal obligation. You can't do Android with just the Linux kernel source, though. I was thinking about putting up a private GitLab project where I could share the source code with reputable developers who actually have some ideas how they want to improve what is already available. I know some companies are you using my previous LineageOS builds which is why I've licensed some stuff under non-commercial license in this one. They've been asking for private tech support but I still can't get as much as a donation even when promised. :(
    2
    New build.

    lineage-16.0-20191222-UNOFFICIAL-KonstaKANG-rpi3.zip
    https://www.androidfilehost.com/?fid=4349826312261681719
    md5:956962b364583917b47046ef8556db85

    -update to MESA 19.3 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
    -set default resolution using a configuration file (see FAQ)
    -add vendor init library to set serial number, revision, and resolution properties
    -add health HAL to fake battery/charging
    -add script to enable audio through 3.5mm jack (see FAQ)
    -add initial support for RTC hardware (tested with DS3231)
    -update to Linux 4.14.160 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 5 December 2019 (merged)