yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] Doom Mortal:
Thank you very much for for that hint, finally I was successfull.

I was so irritated of the message that the vc4 driver wasnt found, that I thought that this is the problem.

Unfortunately after that i had to type various other commands and da a lot of error research to make it finally work.

Here are the instructions to make it work on Xubuntu 18 hope it helps who are struggeling too:

Minmum specs for your Ubuntu installation: 110GB till 120GB HDD and 6Gb till 8GB RAM.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openjdk-8-jdk
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip

sudo apt-get install kpartx python-mako
repo init -u git://github.com/LineageOS/android.git -b lineage-14.1
curl --create-dirs -L -o .repo/local_manifests/manifest_brcm_rpi3.xml -O -L https://raw.githubusercontent.com/lineage-rpi/android_local_manifest/lineage-15.1/manifest_brcm_rpi3.xml
repo sync

--> Copy these patches
https://github.com/lineage-rpi/android_local_manifest/tree/cm-14.1/patches
to the corresponding directory and execute the following command:

cd path/to/project
git am patchname.patch

export LC_ALL=C

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx24096m"
out/host/linux-x86/bin/jack-admin kill-server
out/host/linux-x86/bin/jack-admin start-server

. build/envsetup.sh
lunch lineage_rpi3-userdebug
mka kernel ramdisk systemimage

if it fails execute:
make update-api

And finally execute:
cd device/brcm/rpi3
sudo ./mkimg.sh

My God I was spending at least two days with that topic.

I have only one more question. I havent tested it yet, but will it work when I clone the new mesa3d library sources to the project ?

Is it neccesary to adapt some of the project code ?

Thank you for your time. :)
[Raspberry Pi Original Development] KonstaT:
Well done. :)

I wish it was that simple. There's a lot of moving parts (MESA, libdrm, drm_gralloc, gralloc, hwcomposer, and even kernel).
[Raspberry Pi Original Development] quintez:
Magisk

Hello,

is there a way to flash Magisk with your ROM ? I always got an error, tried magisk v16 - v18.

I also tried, as suggested, to flash with BootBridge, still not working.

Any ideas ?

Greets
[Raspberry Pi Original Development] KonstaT:
Please see FAQ how to enable built-in root access management. Third party mods (Magisk, Xposed, etc) are unsupported.

Boot partition on Raspberry Pi is different to any other Android device (as this not an Android device to begin with) so the Magisk installer doesn't know how to handle it (patching ramdisk is part of the installation process).
[Raspberry Pi Original Development] micdesa:
Is there any possibility to have HDMI-CEC working?

Thanks
[Raspberry Pi Original Development] KonstaT:
Linux 4.4 kernel used in this build doesn't have HDMI-CEC driver (it was added in Linux 4.8/4.10).

You might have better luck with LineageOS 15.1 that uses Linux 4.14. You'd still need to create a HDMI-CEC HAL if you wanted to make it useful in Android which is no small task. https://source.android.com/devices/tv/hdmi-cec
[Raspberry Pi Original Development] quintez:
Hello,

i don't really need root access, i need to "hide" root and Custom ROM, like Magisk does. I want to run the Sky Go App on my Raspi because the Android Version is running smoother than the Windows Version. The problem is that the app does not run on Custom ROM, the stream starts, but stops immediately with an error message. Thanks anyway for providing your ROM.

Greets
[Raspberry Pi Original Development] KonstaT:
This build has a kernel side patch that hides su binary if root access is not enabled from the setting (Settings -> Developer options -> Root access).

You're probably talking about SafetyNet (https://lineageos.org/Safetynet/) which is a completely different thing than having root access (checking root access is only a part of SafetyNet tests).
[Raspberry Pi Original Development] velis74:
Is there GPIO access in this ROM?
[Raspberry Pi Original Development] KonstaT:
What do you want to do? I2C and SPI devices work. You can also control GPIO from command line. https://www.raspberrypi.org/forums/...sid=7d8f63afa4fa7dcc537e30f61fb43a7a#p1404555
[Raspberry Pi Original Development] velis74:
Basically I need Modbus over RS485, but your info suggests this is achievable, even if through adapters. Or is there something equivalent in there already?
[Raspberry Pi Original Development] KonstaT:
Well, I'm no electronics expert and this is the first I'm hearing about Modbus over RS-485. I had quick search and it seems this requires some tweaking even with Raspbian so I doubt it's going to work out-of-the-box here either. Achievable maybe if you're willing to see the effort.
[Raspberry Pi Original Development] micdesa:
thank you.
[Raspberry Pi Original Development] tb2668:
Hi, first of all: Great work!

Android boot flawless.

However, when I try to enter TWRP by following the FAQ (at least I think I am) the RPi ends up in a boot loop.

All I do are the following steps:

1) activate developer options

2) activate root for ADB and Apps in developer options

3) activate local terminal in developer options

4) open the terminal app

5) enter "su"

6) grant root access

7) enter "rpi3-recovery.sh"

8) enter "reboot"

From that point on the RPi seems to be in a boot loop with the monitor just flickering every 10 sec or so.

Did I miss a step?

Thanks!
[Raspberry Pi Original Development] KonstaT:
Your steps look fine. Could be an issue with compatibility with your monitor or something else went wrong.

There's really no proper way to boot between Android and recovery on this device (as this is not an Android device to begin with). You can check rpi3-recovery.sh script and make the same changes manually (rename ramdisk files and change some properties in config.txt) after mounting the sdcard on your computer.
[Raspberry Pi Original Development] hacker001:
i have some question

I need to use hifiberry dacplus i2s dac on this android

what should i do?

please advice me

thanks

[MENTION=7223862]KonstaT[/MENTION]

---------- Post added at 05:45 PM ---------- Previous post was at 05:45 PM ----------

i have some question

I need to use hifiberry dacplus i2s dac on this android

what should i do?

please advice me

thanks

[MENTION=7223862]KonstaT[/MENTION]
[Raspberry Pi Original Development] KonstaT:
IDK, I haven't got the hardware so I haven't looked into it. That's something that you need to figure out yourself if you want to have it working.

Have you tried configuring config.txt following the documentation (https://www.hifiberry.com/build/documentation/configuring-linux-3-18-x/)? Check dmesg that the device is registered after adding the required overlays in config.txt. If it uses ALSA device 0 it might work with no modifications to Android audio HAL.
[Raspberry Pi Original Development] sabaatworld:
Is it possible to do USB accessory mode instead of USB host mode on this ROM?
[Raspberry Pi Original Development] KonstaT:
Sorry, not quite sure what you're asking here. What do you need USB accessory mode for?

USB doesn't work here quite like on other Android devices.
[Raspberry Pi Original Development] che0033:
你好 請問 使用藍牙配對藍牙揚聲器 可以成功配對但是沒有音頻輸出 該怎麼解決 謝謝

Hello Q. Pairing Bluetooth speakers with Bluetooth can be successfully paired but there is no audio output. How to solve it Thank you
[Raspberry Pi Original Development] KonstaT:
This build doesn't support bluetooth A2DP. Added the support in LineageOS 15.1. Both of these builds are now discontinued.

Please update to using my LineageOS 16.0 build instead. It's much more up to date, bluetooth A2DP works, and it works much better than previous versions anyway.
[Raspberry Pi Original Development] velis74:
Is it possible to create an external storage partition for this ROM? Such that getExternalStorageDirectory() function would return something meaningful? I have an app that absolutely requires it...
[Raspberry Pi Original Development] KonstaT:
This build uses emulated internal storage (/data/media) as Android's 'sdcard'. Technically it's possible to create any physical partitions on the actual sdcard and add corresponding storage configuration (https://source.android.com/devices/storage/config-example). You'd need to compile the ROM from source with your changes of course (https://github.com/lineage-rpi/android_local_manifest/tree/cm-14.1).

Google had a bad habit of changing how sdcards are handled in Android with pretty much every new Android version at one point. Even a quick Google search couldn't tell me what path getExternalStorageDirectory() should return other that it's deprecated in recent Android versions. Many app developers didn't bother to keep up with the API changes either so I'd assume it's some issue with your app. Generally when referring to 'external storage' in Android means the primary sdcard which is internal storage on this device. To add to confusion this is the only device that boots from an actual external physical sdcard...
[Raspberry Pi Original Development] uragan1987:
i have wifi internet connection

wanna make a wlan0 to eth0 internet share, is it possible with LineageOS 14.1 - KonstaKANG (Android 7.1.2)?

need a dhcp server, ip_forward,...

like here, but cant use this guide at android system

https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/
[Raspberry Pi Original Development] KonstaT:
I doubt there's any easy way to achieve that on Android.
[Raspberry Pi Original Development] uragan1987:
sounds not good :(
[Raspberry Pi Original Development] uragan1987:
KonstaT do you know how to enable USB-Tethering at rpi?
[Raspberry Pi Original Development] KonstaT:
There's no easy way to do that either. You can only share the ethernet connection using wifi tethering.
[Raspberry Pi Original Development] babai93:
recovery2boot Download link is not working, it's showing "no mirrors found."

please share the zip file.
[Raspberry Pi Original Development] KonstaT:
This build is seriously outdated and it's been discontinued for years. You really shouldn't be using this for anything! Use the latest LineageOS 16.0 (https://xdaforums.com/raspberry-pi/orig-development/dev-lineageos-16-0-android-9-raspberry-t3943678) or 17.1 (https://xdaforums.com/raspberry-pi/orig-development/dev-lineageos-17-1-android-10-raspberry-t4139051) build instead.

AndroidFileHost has server issues sometimes. Refresh the download page or try again later.
[Raspberry Pi Original Development] KonstaT:
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.

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

lineage-15.1-20180706-UNOFFICIAL-KonstaKANG-rpi3.zip

https://www.androidfilehost.com/?fid=5862345805528041370

md5:257ade2f567223cf792023e2d75e5b75

Sources:

lineage-rpi

Thanks:

Google for Android Things platform

peyo-hd and everyone who’s contributed to android-rpi

LineageOS team & everyone who’s been working on LineageOS 15.1
[Raspberry Pi Original Development] KonstaT:
How to install:

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 phone -> 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 -> Developer options -> Root access. Root management is now integrated as part of LineageOS’ Privacy Guard and you can manage per app permissions under Settings -> 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 xx GB used by system. 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. Settings app shows unallocated space as used by system which in reality it is not. 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.

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 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 -> Developer options -> Local terminal) and reboot your device:

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 system partition mounted (Mount->System):

rpi3-recovery.sh boot

Or you can flash my recovery2boot zip in TWRP.

Q: How to install Google apps?

Download MindTheGapps-8.1.0-arm-XXXXXXXX_XXXXXX.zip and save it to your device’s internal storage or use an external USB drive

Boot to TWRP recovery (see FAQ)

Install MindTheGapps-8.1.0-arm-XXXXXXXX_XXXXXX.zip from your selected storage

Wipe->Factory reset!

Boot out of recovery (see FAQ)
[Raspberry Pi Original Development] KonstaT:
Merged commits not mentioned in the changelog.

6.7. changelog:

update to Linux 4.14.53 kernel

add initial support for Pi 3 Model B+ (bluetooth does not currently work)

include TWRP 3.2.2-0 custom recovery (see FAQ how to boot)

build SwiftShader from source and update to master branch (improves graphics performance)

add support for encrypting the device

13.6. changelog:

update display drivers from Android Things 1.0

add support for USB webcams (UVC) with third party USB webcam apps

default to noop I/O scheduler

update to Linux 4.4.136 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)

Android security patch level: 5 June 2018 (merged)

7.3. changelog:

update display drivers from Android Things DP 7

update wifi firmware

update to Linux 4.4.120 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)

Android security patch level: 5 March 2018 (merged)

3.3. changelog:

initial release

Previous builds:

AndroidFileHost
[Raspberry Pi Original Development] suburbadroid:
Wow thank you very much. gonna test this on the 3b plus
[Raspberry Pi Original Development] reversegear:
Does this build support RCA video out. ?
[Raspberry Pi Original Development] KonstaT:
Not sure, haven't tried and I don't even have a display with composite video in to test with. I'd say with LineageOS 14.1 and Linux 4.4 it's not supported (https://github.com/anholt/linux/issues/14). LineageOS 15.1 has a much newer kernel (4.14) but it doesn't even use the VC4 driver (Google's SwiftShader software renderer is used instead) so IDK.

You'd likely need to modify config.txt at least if you want to test this. https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
[Raspberry Pi Original Development] __init__:
On my 3B I'm not getting any HDMI video output. It just shows a black screen.
[Raspberry Pi Original Development] KonstaT:
Some displays might require modifying config.txt. https://www.raspberrypi.org/documentation/configuration/config-txt/video.md

720p is the max resolution this build currently supports.
[Raspberry Pi Original Development] KonstaT:
Pie on Pi! :D LineageOS 16 booted on Raspberry Pi3.
[Raspberry Pi Original Development] __init__:
alright, so do I have to build myself? I don't have a screen that small
[Raspberry Pi Original Development] KonstaT:
No, config.txt is in the boot partition (FAT) so even Windows should mount it when you plug in the sdcard. You need to use a proper text editor, though.
[Raspberry Pi Original Development] __init__:
All three partitions are EXT4 and even when I mount them using Ext2Fsd I don't see config.txt in any of them. (I don't see bootcode.bin or start.elf either.) :/

Edit: I found it - the boot partition wasn't mounted on my PC for some reason :/

---------- Post added at 12:49 AM ---------- Previous post was at 12:09 AM ----------

It's still not working... I changed hdmi_group to 2 and hdmi_mode to 46 (I also tried 48)
[Raspberry Pi Original Development] KonstaT:
Like said 720p is maximum supported resolution with LineageOS 15.1 build. hdmi_mode 46 and 48 are 1440x900 so that's not going to work of course.

You can try with a different display or try LineageOS 14.1 build.
[Raspberry Pi Original Development] mrmazak:
Is this just a tease, or are you maybe gonna make available, I hope.?
[Raspberry Pi Original Development] KonstaT:
If/when it's ready and I feel like it otherwise. :) Audio, bluetooth (on Pi 3 B), ethernet, display, and wifi already working to LineageOS 15.1 standards. It only started week three after the AOSP source drop so everything is still in very early stages. There's no Lineage apps, no Lineage features, no root, etc, and there's still some very basic UI issues.
[Raspberry Pi Original Development] ericimbert:
LineageOS 15.1 Raspberry B+

Thanks for your rom

I dont find script rpi-display.sh for touchscreen like in lineageOS 14.1 Its possible to use this script ?
[Raspberry Pi Original Development] KonstaT:
I don't have any display hardware so I haven't tested. Some people have reported that LineageOS 15.1 works with the original 7" display but I don't know if they've made any modifications.

LineageOS 14.1 script won't work as is at least. You can try this one instead (https://pastebin.com/A2kfGhrR). Push to /system/bin/, set correct permissions (755) and run. I think you also need to change ro.sf.lcd_density in /system/build.prop to match the resolution change (in LineageOS 14.1 as well) but no one has given any proper feedback on that either.
[Raspberry Pi Original Development] lenovo P780 Life 07:
Can someone do support for bluetooth 4.2 (for Rpi3B+), please ?
[Raspberry Pi Original Development] jpq:
This rom is the first non official rom i could boot on my pi 3 B+ !!!! ;)

tkx

go on working on this way
[Raspberry Pi Original Development] zhengyw:
display performance is really really too poor
[Raspberry Pi Original Development] KonstaT:
Which is why you should start by reading the OP...
[Raspberry Pi Original Development] jpq:
Well after flashing gapps

when i'in twrp and i want toi reboot to go back lineageos,

i select terminal, type rp3.recovery.sh boot

and i get rp3.recovery.sh not found and i can reboot only to twrp

what else should do ?

tkx for help

note: i've a PI3 B+
[Raspberry Pi Original Development] KonstaT:
Please read the FAQ. You need to have system partition mounted if you want to run the script.
[Raspberry Pi Original Development] jpq:
I READ Q&A

I did exactly is writen after installing gapps

As i typed

rpi3.recovery.sh boot

i got rpi3.recovery.sh not found

I'm on RPI3 B+

So i ask again what shoul d i do to go reboot lineageOS

and pls don't tell me again to read Q&A ...

Tkx before your help

I foud the solution :

after flashing gapps : only data partition was mounted

so i mounted Boot and system partition

and then i could type rp3-revovery.sy boot

ian i could boot system

u should update your Q&A !!!
[Raspberry Pi Original Development] KonstaT:
LOL, what? You did what you were told to do (mount system partition) and surprisingly it worked. Or you can even flash the recovery2boot zip in TWRP if running the script is too difficult for you. FAQ is fine, I suggest you learn to read it! :P
[Raspberry Pi Original Development] jpq:
I think u did not unerstand

i'll try to explain :

In twrp :

i installed gapps

after installing i wanted reboot out of twrp

in terminal i typed rp3.recovery.sh boot

exactly like u wote in Q&A

i got rp3.recovery.sh not found !!! <--- that's the problem

I looked which partitions were mounted : only data was mounted that's why i couldn't find rpi3.recovery.sh

i decided to mount sytem et boot partition and tried again

This time rp3.recovery.sh was found and worked.

The issue is not in your ROM but may be in TWRP : only /data mounted after flashing so i could not find rp3.recovery.sh

Maybe this issue is specific to RPI3 B+
[Raspberry Pi Original Development] KonstaT:
No, you don't seem to understand. Like I've already explained several times, you need to have system partition mounted if you want to run the script and it also says so in the FAQ: "...if you have system partition mounted (Mount->System)"!

The script is actually located on the system partition (/system/bin/rpi3-recovery.sh) so of course it's 'not found' if you don't have system partition mounted in TWRP!

User specific error, nothing to do with RPI3 B+.
[Raspberry Pi Original Development] jpq:
u're right :)

i didn(t read the end of the sentence in Q&A

SORRY
[Raspberry Pi Original Development] kettenschutz:
hi konsta and special thanks for your efforts while compiling android for the raspberry 3b+

ive installed your version on my pi today and gave it a try. unfortunately the "display performance" is far away from "poor"

its not usable like this, for nothing. Yes it boots, and even network is loaded, so thumbs up ! But you cant do anything with it

im using my PI on an flat touchscreen to display a calendar in my home. i also do have a RING VIDEO DOORBELL but unfortunately there's no linux software for it. the idea was to SEE on the flat screen who is in front of the door if it rings

now i read about android on the PI 3b+ and thought YAY ***** NOW ITS GOING THROUGH!

But unfortunately it isnt :(

i cant even install an APK. file manager crashes, android is stucked, nothing happens. Choose one :)

do u know if theres an older version that works more smooth on the PI 3 B+? i havnt found anything in the web. Only one paid version by exblahblahguy. but no retentions. i would pay some bucks if it would be sure that it works as i need it (and the pi's hardware is strong enough for that)

long story short, Thanks for your developments. we all appreciate developers like you

coffee for you !
[Raspberry Pi Original Development] KonstaT:
My LineageOS 14.1 build doesn't support Pi 3 B+ for the reason explained in this post (https://xdaforums.com/showpost.php?p=77593507&postcount=16). This is an open source project so you're most welcome to contribute and fix display performance or whatever other issues you may find. :)

There's one (Nougat, Linux 4.9 kernel) that is free to try and it's fine as far as I'm concerned. Then there's one paid version (Oreo, Linux 4.14 kernel) that is nothing but a build from my free and open source work (https://github.com/lineage-rpi) with some apps bundled in. Most definitely don't purchase that - ask for a refund if you have! There's GPLv2 licensing issues as well. :(
[Raspberry Pi Original Development] kettenschutz:
Hi and thanks for your Feedback

Can you Name the one thats fine and free?
[Raspberry Pi Original Development] KonstaT:
I'll rather name the one that's not. :P RaspAnd by Arne Exton that is sold for $9. Nothing new to him there either (https://www.reddit.com/r/Android/comments/4q40gj/androidrpi_extons_9_build/).
[Raspberry Pi Original Development] kettenschutz:
mh thanks, but as mentioned i do already know about the one that isnt free and obviously a clone of yours

so im going back to raspbian to use at least google tables again
[Raspberry Pi Original Development] arnoldvillasanta:
I installed lineage-15.1-20180706-UNOFFICIAL-KonstaKANG-rpi3 on B+, everything went well except that Camera is not detected (which works in Raspbian Stretch).