Konsta
Posts: 12
Joined: Thu Aug 16, 2018 3:55 pm

[DEV] LineageOS 15.1 (Android 8.1.0) for Raspberry Pi 3 B and B+

Thu Aug 16, 2018 7:47 pm

Here’s my build of LineageOS 15.1 for Raspberry Pi 3 Model B and Model B+ (bluetooth does not currently work on the new plus model). It is unofficial and unsupported by the LineageOS team. It’s for advanced users only. This build currently uses Google’s SwiftShader software renderer so display performance is probably not what you’d expect. This build is not meant as a daily driver and it’s certainly not suitable for media device use.
Screenshot_Settings_20180630-144620.png
Screenshot_Settings_20180630-144620.png (45.52 KiB) Viewed 1337 times
https://konstakang.com/devices/rpi3/LineageOS15.1/

Sources:

Konsta
Posts: 12
Joined: Thu Aug 16, 2018 3:55 pm

Re: [DEV] LineageOS 15.1 (Android 8.1.0) for Raspberry Pi 3 B and B+

Sat Aug 18, 2018 10:07 pm

Pie on Pi! :D LineageOS 16 booted on Raspberry Pi3.

https://twitter.com/konstatuomio/status ... 8983569408
Last edited by Konsta on Wed Sep 05, 2018 7:24 pm, edited 1 time in total.

globiboulga666
Posts: 12
Joined: Sun Jun 17, 2018 6:38 pm

Re: [DEV] LineageOS 15.1 (Android 8.1.0) for Raspberry Pi 3 B and B+

Wed Sep 05, 2018 10:33 am

Hi, very cool work !

Had you used an original Android Kernel 4.14, or an original Vanilla Kernel 4.14, or current Raspberry Pi modified Kernel 4.14 ?
Did you have to write HAL/HIDL layers for having Android to work ?

According to all the things written in there : https://source.android.com/devices/architecture/
It seems that there is a huge work to do if not already delivered by founders, and updated with new and new versions of Android.
But it also seems that Android 9 requirements about drivers will be able to permit Android System updates without reworking the others layers.

But I'm not sure I understand everything, and I'm not sure if all of this layers are made available for the RPi, so I guess there is a chance you didn't have to do all this ?

Thank you again !

Konsta
Posts: 12
Joined: Thu Aug 16, 2018 3:55 pm

Re: [DEV] LineageOS 15.1 (Android 8.1.0) for Raspberry Pi 3 B and B+

Wed Sep 05, 2018 7:23 pm

globiboulga666 wrote:
Wed Sep 05, 2018 10:33 am
Hi, very cool work !

Had you used an original Android Kernel 4.14, or an original Vanilla Kernel 4.14, or current Raspberry Pi modified Kernel 4.14 ?
Did you have to write HAL/HIDL layers for having Android to work ?

According to all the things written in there : https://source.android.com/devices/architecture/
It seems that there is a huge work to do if not already delivered by founders, and updated with new and new versions of Android.
But it also seems that Android 9 requirements about drivers will be able to permit Android System updates without reworking the others layers.

But I'm not sure I understand everything, and I'm not sure if all of this layers are made available for the RPi, so I guess there is a chance you didn't have to do all this ?

Thank you again !
My kernel is a combination of official Raspberry kernel (https://github.com/raspberrypi/linux/tree/rpi-4.14.y) and Google's Android kernel (https://android.googlesource.com/kernel ... oid-4.14-p) with latest Android security patches which I've merged together and configured for this device and Android.

There's bunch of open source HALs (audio, gps, and light). Display HALs are currently from Android Things. Using whatever works is common in the Android custom ROM scene. Switching to mainline graphics and VC4 driver would be great if someone had the required skills and experience (not sure I do). HIDL HALs have been used since Oreo but many things can be worked around to support older HALs.

I'm not an OEM and I'm not shipping official Android so passing Google's CTS (Compatibility Test Suite) or certification doesn't really concern me. This is initially based on what Google has made available through AOSP (Android Open Source Project) with great improvements by the LineageOS team.
Last edited by Konsta on Thu Sep 06, 2018 7:10 am, edited 1 time in total.

globiboulga666
Posts: 12
Joined: Sun Jun 17, 2018 6:38 pm

Re: [DEV] LineageOS 15.1 (Android 8.1.0) for Raspberry Pi 3 B and B+

Wed Sep 05, 2018 8:58 pm

Cool, it sounds pretty clear. Thank you for those explanations, as I'm trying to understand a maximum of things about all of this, and because I would have no idea of "how to transform Raspberry Pi Kernel 4.14 into an RPi Android Kernel 4.14 plus all of the things needed to have Android working", these details are giving me some help in my quest :)

Konsta
Posts: 12
Joined: Thu Aug 16, 2018 3:55 pm

Re: [DEV] LineageOS 15.1 (Android 8.1.0) for Raspberry Pi 3 B and B+

Thu Sep 06, 2018 3:19 pm

globiboulga666 wrote:
Wed Sep 05, 2018 8:58 pm
Cool, it sounds pretty clear. Thank you for those explanations, as I'm trying to understand a maximum of things about all of this, and because I would have no idea of "how to transform Raspberry Pi Kernel 4.14 into an RPi Android Kernel 4.14 plus all of the things needed to have Android working", these details are giving me some help in my quest :)
Good thing it's open source (https://github.com/lineage-rpi) so that makes your quest a lot easier. :)

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest