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

[DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Thu Aug 16, 2018 4:09 pm

Here’s my build of LineageOS 14.1 for Raspberry Pi 3 Model B. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only.
Screenshot_20180817-200415.png
Screenshot_20180817-200415.png (42.92 KiB) Viewed 4337 times
https://konstakang.com/devices/rpi3/CM14.1/

Sources:
Last edited by Konsta on Fri Aug 17, 2018 5:15 pm, edited 3 times in total.

hippy
Posts: 3908
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 Model B

Thu Aug 16, 2018 7:23 pm

Excellent stuff. Very easy to install and get running, no real advanced skills needed there.

I've instead failed on the 'basic skills' - Not being familiar with Android on a Pi; how do I invoke a safe shut down or power off ?

Update: Seems I actually failed basic reading skills there; press F5 as written on your web page :oops:

Also, my mouse cursor is a bit of a mash-up of pixels. Not sure if that's intended, meant to look like a fingerprint, or is a buggette.

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 Model B

Thu Aug 16, 2018 7:54 pm

hippy wrote:
Thu Aug 16, 2018 7:23 pm
Excellent stuff. Very easy to install and get running, no real advanced skills needed there.

I've instead failed on the 'basic skills' - Not being familiar with Android on a Pi; how do I invoke a safe shut down or power off ?

Update: Seems I actually failed basic reading skills there; press F5 as written on your web page :oops:

Also, my mouse cursor is a bit of a mash-up of pixels. Not sure if that's intended, meant to look like a fingerprint, or is a buggette.
Mouse cursor is a know issue with the display drivers (so is the missing wallpaper). You can tick/untick Settings -> Accessibility -> Large mouse cursor and it will work until next reboot. More permanent solution is to modify display density (ro.sf.lcd_density is /system/build.prop) or change Settings -> Display -> Display size.
Last edited by Konsta on Thu Nov 15, 2018 4:43 pm, edited 1 time in total.

User avatar
bensimmo
Posts: 3328
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Thu Aug 16, 2018 8:08 pm

brings back memories of my ZTE Blade (well Orange SanFancisco)

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Fri Aug 17, 2018 7:34 am

bensimmo wrote:
Thu Aug 16, 2018 8:08 pm
brings back memories of my ZTE Blade (well Orange SanFancisco)
LOL, that feels like ages ago. Learnt pretty much what there's to know about Android custom ROM development with that device. Good times. :)

hippy
Posts: 3908
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Fri Aug 17, 2018 10:13 am

I'm pretty impressed overall. It seems reasonably responsive and connected to my wired network with no problems.

I can't seem to scroll pages in the Browser but it did allow me to download and install APK files from my PC's HTTP Server which side-steps more involved side-loading mechanisms.

The only major issue I have - had, see below - encountered is it won't run APK's created by MIT App Inventor 2 properly. Those appear as 'black on black' so basically 'nothing there', though the mouse cursor does turn to the usual 'bar' when over text fields. Bringing up the App's menu displays that but in a box which looks like a TV with line scan rates gone to pot and is completely unreadable.

Given everything else they do is working, reading files from servers when they start etc, I guess it's just a display or rendering issue. Not sure where bugs or issue like this should be reported.

Update: AI2 issue solved: There now seems to be two different classes of APK which AI2 can create from the Build menu; "App ( save .apk to my computer )" and "App for Google Play ( save .apk to my computer )".

The first targets an older API level so allows running on older phones, but doesn't work with Android 7. The second targets a later API which allows running on Android 7 but not older phones.

I have to recompile my Apps to check they work but it looks promising. A simple test program worked as expected.

https://groups.google.com/forum/#!categ ... 1wFQhRIGBE

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Fri Aug 17, 2018 12:34 pm

hippy wrote:
Fri Aug 17, 2018 10:13 am
I can't seem to scroll pages in the Browser but it did allow me to download and install APK files from my PC's HTTP Server which side-steps more involved side-loading mechanisms.
Scrolling works with mouse wheel at least. It seems dragging&moving only selects text when using a mouse. Other browser apps may behave differently.

hippy
Posts: 3908
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Fri Aug 17, 2018 12:41 pm

Thanks. Time to find a mouse with a scroll wheel. Most of mine don't have one and I don't use it when they do, so never thought of that!

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Fri Aug 17, 2018 3:47 pm

New build.

https://konstakang.com/devices/rpi3/CM14.1/

-include TWRP 3.2.3-0 custom recovery (see FAQ how to boot)
-fix Gallery app crashing (and likely various third party apps as well)
-add support for encrypting the device
-merge AOSP kernel/common android-4.4-n branch to have proper Android Nougat kernel
-update to Linux 4.4.148 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
-Android security patch level: 5 August 2018 (merged)

joeyreichard
Posts: 6
Joined: Tue Apr 17, 2018 5:33 am

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Sat Sep 29, 2018 8:12 am

privacy guard does not remember my choices how do i get it to save it

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Sun Sep 30, 2018 7:01 am

joeyreichard wrote:
Sat Sep 29, 2018 8:12 am
privacy guard does not remember my choices how do i get it to save it
What do you mean exactly? Privacy guard works as expected for me at least.

joeyreichard
Posts: 6
Joined: Tue Apr 17, 2018 5:33 am

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Tue Oct 02, 2018 7:37 pm

Konsta wrote:
Sun Sep 30, 2018 7:01 am
joeyreichard wrote:
Sat Sep 29, 2018 8:12 am
privacy guard does not remember my choices how do i get it to save it
What do you mean exactly? Privacy guard works as expected for me at least.
everytime i open an app i previously used i have to allow privacy guard permissions i click remember my decision and it doesn't i have to keep allowing it permission i want it to perform like superuser where its always allowed

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Wed Oct 03, 2018 8:25 am

joeyreichard wrote:
Tue Oct 02, 2018 7:37 pm
Konsta wrote:
Sun Sep 30, 2018 7:01 am
joeyreichard wrote:
Sat Sep 29, 2018 8:12 am
privacy guard does not remember my choices how do i get it to save it
What do you mean exactly? Privacy guard works as expected for me at least.
everytime i open an app i previously used i have to allow privacy guard permissions i click remember my decision and it doesn't i have to keep allowing it permission i want it to perform like superuser where its always allowed
Sorry, still can't quite understand what you mean. I wonder if we're even talking about the same thing. Please provide exact steps how to reproduce the issue.

Privacy guard is not enabled by default. If you're running an app you've enabled privacy guard, you should see a notification (also if enabled from privacy guard settings) that app will not be able to access personal data.

cjan
Posts: 614
Joined: Sun May 06, 2012 12:00 am

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Wed Oct 03, 2018 10:39 am

does suitable for Rpi2?

fruitoftheloom
Posts: 17626
Joined: Tue Mar 25, 2014 12:40 pm

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Wed Oct 03, 2018 11:07 am

cjan wrote:
Wed Oct 03, 2018 10:39 am
does suitable for Rpi2?

What version of RPi 2B are you referring ?

BCM2836 or BCM2837 SoC ?
Adieu

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Wed Oct 03, 2018 5:37 pm

cjan wrote:
Wed Oct 03, 2018 10:39 am
does suitable for Rpi2?
I've been told this boots on Pi 2 (I assume people are talking about the BCM2837 one but I'm not exactly sure because I don't have any Pi 2). There's no wifi/bluetooth obviously and there's no support for external wifi/bt dongles either.
Last edited by Konsta on Thu Oct 04, 2018 8:22 am, edited 1 time in total.

cjan
Posts: 614
Joined: Sun May 06, 2012 12:00 am

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Wed Oct 03, 2018 11:55 pm

fruitoftheloom wrote:
Wed Oct 03, 2018 11:07 am
cjan wrote:
Wed Oct 03, 2018 10:39 am
does suitable for Rpi2?

What version of RPi 2B are you referring ?

BCM2836 or BCM2837 SoC ?
v1.1-2386, does it work?

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Thu Oct 04, 2018 8:15 am

cjan wrote:
Wed Oct 03, 2018 11:55 pm
fruitoftheloom wrote:
Wed Oct 03, 2018 11:07 am
cjan wrote:
Wed Oct 03, 2018 10:39 am
does suitable for Rpi2?

What version of RPi 2B are you referring ?

BCM2836 or BCM2837 SoC ?
v1.1-2386, does it work?
Why not give it a go and tell us? You have the device - I don't.

This build is only meant for Raspberry Pi 3 Model B like it says in the first sentence of the page. If it boots on other devices, that's great but it's also entirely on your own responsibility. Like already said, there's obvious drawbacks (no wifi/bt) if you run this on Pi 2.

cjan
Posts: 614
Joined: Sun May 06, 2012 12:00 am

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Thu Oct 04, 2018 8:47 am

Why not give it a go and tell us? You have the device - I don't.

This build is only meant for Raspberry Pi 3 Model B like it says in the first sentence of the page. If it boots on other devices, that's great but it's also entirely on your own responsibility. Like already said, there's obvious drawbacks (no wifi/bt) if you run this on Pi 2.
thanks, no wifi supported then give up.

User avatar
Void Frost
Posts: 31
Joined: Sun Jul 01, 2018 2:13 am

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Sun Nov 04, 2018 11:48 pm

Can we expect Android 7.1.2 for 3 B+??
Raspberry Pi User. Subscribe to my YouTube channel, if you want :D https://www.youtube.com/c/VoidFrost

User avatar
DougieLawson
Posts: 34144
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Mon Nov 05, 2018 12:15 am

Void Frost wrote:
Sun Nov 04, 2018 11:48 pm
Can we expect Android 7.1.2 for 3 B+??
Only after you build it. (Or the commercial folks selling Android on RPis build it.)
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Mon Nov 05, 2018 10:38 am

Void Frost wrote:
Sun Nov 04, 2018 11:48 pm
Can we expect Android 7.1.2 for 3 B+??
This build doesn't support 3 B+ for the reasons stated in this post. https://forum.xda-developers.com/showpo ... stcount=16

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

Re: [DEV] LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 B

Tue Nov 13, 2018 8:13 am

joeyreichard wrote:
Tue Oct 02, 2018 7:37 pm
Konsta wrote:
Sun Sep 30, 2018 7:01 am
joeyreichard wrote:
Sat Sep 29, 2018 8:12 am
privacy guard does not remember my choices how do i get it to save it
What do you mean exactly? Privacy guard works as expected for me at least.
everytime i open an app i previously used i have to allow privacy guard permissions i click remember my decision and it doesn't i have to keep allowing it permission i want it to perform like superuser where its always allowed
After discussing this with someone else at XDA (https://forum.xda-developers.com/showpo ... stcount=76) I understand what you mean.

You need to power down/reboot your device through the power menu (F5 on keyboard is the power button) for the privacy guard settings to be stored. Pulling the power cable or using 'reboot -p'/'reboot' in terminal or third party reboot applications won't do.

Return to “Android”