yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] arka2001:
Bootloop

After flashing the gapps as described when i reboot the device it goes into bootloop. I waited for about 2 hrs but nothing happened except the bootanimation looping the same scene. What to do?????
[Raspberry Pi Original Development] KonstaT:
Which gapps package did you install exactly? The right one is linked in the FAQ. Make sure you've also followed other steps including wiping your device. Last time I tested (arm-9.0-pico-20200116) it worked fine.
[Raspberry Pi Original Development] arka2001:
I have done everything as mentioned and also done factory reset.

Gapps- open_gapps-arm-9.0-pico-20200121
[Raspberry Pi Original Development] chanchan126:
thanks for this, master!
[Raspberry Pi Original Development] KoKoMaster:
Thank you for this build.

I've been eyeing a rpi4 to be the base of a car head unit I'm trying to build. I understand this build is not perfect but would you consider it good enough for my use case? My main concerns would be to use maps/Waze maybe the Android auto app, OBD2 apps and Bluetooth to a receiver to play audio?
[Raspberry Pi Original Development] KonstaT:
I know people have use my Pi builds to build different kinds of car units but I don't have any experience from such project. It can run regular Android apps, there's support for external USB GPS dongles, and bluetooth audio works (still might not be the most reliable at times). I don't know if it's the best option what comes to size and cost effectiveness but why not if you like a tinkering project...
[Raspberry Pi Original Development] Mary1989:
Thank you very much for your build

I flashed image and installed F-Droid store + some apps from F-Droid.

Then did a reboot and now can't find F-Droid and the apps icons. I don't know how to start those apps.

Normally apps are on homescreen? I can't access App drawer with keyboard and mouse (no touchscreen).

Any idea howto start the F-Droid and other apps?

thank you
[Raspberry Pi Original Development] KonstaT:
You can access the app drawer with all the app icons by swiping up from the bottom of the screen (i.e. how you would do it on any phone/tablet running LineageOS' Trebuchet launcher).

There's also plenty of different third party launchers you can install if you want something with all the icons on the homescreen or a separate button to access the app drawer.
[Raspberry Pi Original Development] Mary1989:
from you site:

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 uses 1280x720 resolution by default so you need to use a HDMI display that supports it. See this page under ‘Which values are valid for my monitor?’ to see how to check which resolutions your display supports using Raspbian. If your display doesn’t support 1280x720 resolution, you can try changing values in /boot/config.txt to something it does (see this page). 720p is still the maximum resolution that is supported by the graphics drivers used in this build.

How can I increase the resolution? I have 4K monitor

Can I do this in GUI or need to edit /boot/config.txt?
[Raspberry Pi Original Development] KonstaT:
Also in what you quoted from the FAQ: "720p is still the maximum resolution that is supported by the graphics drivers used in this build."

So, you can't currently increase the resolution from 720p. Decreasing the resolution is possible by editing /boot/config.txt.
[Raspberry Pi Original Development] KonstaT:
New build.

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

-add camera HAL to support Pi camera modules and USB webcams (thanks to Android-x86)

-fix portrait apps on forced landscape orientation (thanks to Ladehunter)

-update GPS HAL

-add ir-keytable tool to configure IR remotes

-enable USB gadget support & fix adb toggle in developer options

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

-Android security patch level: 5 February 2020 (merged)
[Raspberry Pi Original Development] Persori:
Awesome work. Thanks for all your dedication!

The thing I miss the most is, to have a higher resolutions than 720p!
[Raspberry Pi Original Development] chilpachole:
Awesome!! thanks for your work!
[Raspberry Pi Original Development] chilpachole:
WiFi issue

When I try to connect to a previously saved wifi it doesnt work, it tries for some seconds and stays in "saved" is this a known issue?
[Raspberry Pi Original Development] KonstaT:
I've come across this issue at one point. After changing some settings on my router I can no longer reproduce the issues even going back to the original settings. Some wifi mode/channel is probably not working (might depend on wifi region as well) but I don't have any further information.
[Raspberry Pi Original Development] StarBusters97:
Fascinating work, my friend great to see an android operating system for raspberry pi 4. I am looking forward to seeing your next build with wifi and graphic performance enhancement. Thanks for your efforts.
[Raspberry Pi Original Development] RandomPooka:
There's been a lot of progress with 64 but Pi4 linux. Perhaps those kernel configs and drivers could help.

But, I'm not sure if the problems with ARM video decoding are kernel based, or Android based. Or, if it's getting the Linux drivers to play right with an Android kernel.

https://github.com/sakaki-/gentoo-on-rpi-64bit/blob/master/README.md#booting
[Raspberry Pi Original Development] KonstaT:
There's no problem building 64-bit Linux kernel for Android as I've already done this long time ago. You can also use 64-bit kernel with 32-bit Android just fine. Currently it's not possible to use 64-bit Android because graphics drivers use binaries that are 32-bit only. This might change if/when we switch to using MESA and mainline Android graphics HALs.

You can't use any Linux binary drivers on Android because Android has its own bionic C-library (vs. Linux glibc). Using Linux kernel's V4L2 M2M interface is probably the best option for video decoding/encoding and I've discussed it here (https://xdaforums.com/showpost.php?p=81930725&postcount=108).
[Raspberry Pi Original Development] RandomPooka:
I couldn't remember the actual problem. I was thinking it was kernel source related, and didn't go back to read the specifics
[Raspberry Pi Original Development] ronan55:
Hi, Possible to communicate with you privately?
[Raspberry Pi Original Development] mannberg:
Awesome work!

How do I build LineageOS for rpi4? Is there any build instructions available?
[Raspberry Pi Original Development] RandomPooka:
Sync the provided source, then compile.

You'll have to head to the Lineage GitHub in order to get the source for LOS16, but the kernel source for the RPi4 is linked in the OP.
[Raspberry Pi Original Development] mannberg:
I have built aosp for my raspberry pi 3 using this

mkdir aosp_10
cd aosp_10
repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r32
git clone https://github.com/android-rpi/local_manifests .repo/local_manifests -b android10
repo sync -j4 -c -q

cd kernel/rpi
ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs
cd..

source build/envsetup.sh
lunch rpi3-eng
make ramdisk systemimage vendorimage

I have never built Lineage but I guess its something simular from their wiki.

mkdir lineage
cd lineage
repo init -u [url]https://github.com/LineageOS/android.git[/url] -b lineage-16.0
???
What should I clone from KonstaT's repos and where?
???
repo sync
???
build rpi4 kernel!?
???
source build/envsetup.sh
breakfast lineage-rpi4
croot
brunch lineage-rpi4

The part I dont get is, what repos should I get from KonstaT? Is it sufficient to

git clone https://github.com/lineage-rpi/android_local_manifest to .repo/local_manifests -b lineage-16.0

and then repo sync?
[Raspberry Pi Original Development] KonstaT:
There's source code and build instructions for LineageOS 14.1 & 15.1 builds for Pi 3 (https://github.com/lineage-rpi/android_local_manifest/tree/cm-14.1 & https://github.com/lineage-rpi/android_local_manifest/tree/lineage-15.1 respectively). I haven't released complete source code for LineageOS 16.0 builds (Pi 3 & Pi 4) because someone sold builds off of sources I previously released without complying with the open source licensing.

Manifest and sources that available in lineage-rpi in lineage-16.0 branch allow you to build the kernel. The rest you need to figure out yourself.
[Raspberry Pi Original Development] freddy0000:
Total clueless question but is there anyway to change the screen rotation. I've got mine setup to big screen with a touchscreen panel thing on it. I want to set it up on the wall somewhere so the screen is vertical but can't get it to set that way software to flip. I've tried a few apps that let you put it in portrait mode but all that does is narrows the screen
[Raspberry Pi Original Development] KonstaT:
Using hdmi_rotate parameter in /boot/config.txt is probably the easiest way. See http://disq.us/p/27gzrfc
[Raspberry Pi Original Development] freddy0000:
Sorted now Thank you
[Raspberry Pi Original Development] freddy0000:
Is there anyway to overclock your pi while running this
[Raspberry Pi Original Development] KonstaT:
Yes, exactly the same way as on Raspberry Pi in general (https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md).

Also graphics rendering is done on the CPU with the current drivers so take care of cooling if you decide to overclock.
[Raspberry Pi Original Development] freddy0000:
Thank you
[Raspberry Pi Original Development] KonstaT:
This could be the same issue with wifi that's been reported few times. You could try if it works with ethernet connection enabled or with on-board wifi disabled on /boot/config.txt (dtoverlay=disable-wifi).

I can't reproduce this on my own devices and it seems this only happens on some devices. It would be interesting to know what's the cause but I don't even have any good guesses with the information I have so far.
[Raspberry Pi Original Development] dmoreljr:
Thanks Konsta that did the trick for now...however it went back to munching bootloops after flashing gapps. Any ideas? Would it help if I forwarded you the log files now that I can access them? I know you said you couldn't replicate the issue on your devices so I wonder if they could help with the wifi and gapps problems.
[Raspberry Pi Original Development] KonstaT:
I haven't heard anyone having such gapps issue so something strange at your end. You haven't made any changes to image yourself (overclocking, etc), right?

You can use adb to crab logcat.
[Raspberry Pi Original Development] lostboy86:
Hi at all, very awesome works KonstaT! i'm ready to buy rasp pi 4 and install this build, with a 3,5 inch touchscreen, can you or anyone test for me if can install this apk https://github.com/NightscoutFoundation/xDrip/releases , open and work? is for medical use, on my motorcycle, can display glucouse value from connect ble sensor Abbott Freestyle Libre+MiaoMiao. thanks for help and support!
[Raspberry Pi Original Development] KonstaT:
Only HDMI displays and the official 7" touchscreen are supported. Waveshare HDMI touchscreens work apart from calibration issues with minor modifications. I think most of the 3.5" touchscreen use SPI for display so that's not going to work. Only the ones work that use HDMI for display and SPI is only used for touch controller.
[Raspberry Pi Original Development] lostboy86:
Thanks for the reply and support, yes i know for display things, i read all your website FAQ. before i buy all, can you test if the apk install, open, not crash and work? is two minutes for you, but i prefer had a secure test, before buy rasp etc.

Thank you very much
[Raspberry Pi Original Development] KonstaT:
It installs and starts fine. It uses Google Play services for something (I don't have gapps installed) and I don't have any hardware to test it with so can't say anything about functionality.
[Raspberry Pi Original Development] lostboy86:
Very very good. For Gapps, can you say this becausa any message or request for Gapps appears?

Can i contact you with Telegram/Wsapp/any other chat, for maybe some other test with the apk, without obiusvly disturb you?

If it all works, for Deebee.it i can related and describe the project, is for diabethes.

EDIT . If i understand the FAQ, this display is ok : https://www.amazon.com/UCTRONICS-Display-Touch-Screen-Raspberry/dp/B076M399XX
[Raspberry Pi Original Development] KonstaT:
There was a toast pop-up message about Google Play services. Needed to disable some features without it. I don't provide any free private tech support.

Yes, that uses HDMI for display. If it uses XPT2046 touch controller, touch should also work with some modifications.
[Raspberry Pi Original Development] Cheshi Mantu:
Faced described issue with Wi-FIi: RASPI 4 does not connect to my home network.

I played a bit with the settings on my router, e.g. tried to set US Wi-Fi instead of Russia but ended up with the same result - device does not connect.

In the same time RASPI does connect to wifi network if i share data connection from my mobile phone, i.e. using tethering.

If anyone overcame it, please share the info.

thanks
[Raspberry Pi Original Development] piotr7543:
Hi. This rom supports DAC's like a HiFi Berry ? Did someone use that OS to build Car Audio receiver ?
[Raspberry Pi Original Development] andersling:
Hi,thanks for your great work! And BTW,Do you have plan to build a Android 10 ROOM for Raspberry PI 4B? thanks!
[Raspberry Pi Original Development] KonstaT:
Yeah, I had similar issue at one point. I changed some settings on my router and I can no longer reproduce it. Could be that it doesn't work when certain wifi channel is being used or something else.

I don't have any audio DACs so I haven't added the support. If it appears as regular ALSA device it should be possible to get it working.

I've had Android 10 builds for quite some time. There's currently no plans for any future releases.
[Raspberry Pi Original Development] KonstaT:
Yes, software issue for sure. Also 5GHz wifi doesn't work for some reason (https://www.raspberrypi.org/forums/viewtopic.php?f=73&t=261228&start=100#p1641299). There might be some issue related to wifi region i.e. which channels you can use.
[Raspberry Pi Original Development] f2bacon:
i cant figure out why i keep having issues. etcher kept giving me checksums dont match and when it finished the bootlogo it would shut down and start from scratch again, but when i used etcher portable it worked fine with no errors but the pi still wont boot into lineage. it still shuts off once it finishes the bootlogo.
[Raspberry Pi Original Development] KonstaT:
This build doesn't have Android telephony stack so anything like that is not going to work out-of-the-box of course.

It's possible to create builds with telephony and drivers for certain modem hardware. I have Quectel EC25 LTE modem and mobile data and SMS are working fine. It's also possible to make/receive calls but in-call audio is not implemented yet. There's also other similar modems with Android drivers available.
[Raspberry Pi Original Development] iruxx:
do you maybe have a tutorial or something I can read to make a build with such drivers ? it would be awesome.

Thank you very much again!
[Raspberry Pi Original Development] KonstaT:
Modem manufacturer provides binary drivers and documentation on how to implement it on Android build.

There's source and build instructions for LineageOS 14.1 and 15.1 builds for the Pi 3 (https://github.com/lineage-rpi/android_local_manifest/tree/cm-14.1 & https://github.com/lineage-rpi/android_local_manifest/tree/lineage-15.1, respectively). I haven't released the full device specific source code for my LineageOS 16.0 builds because someone sold builds off of the sources I previously released without complying with the open source licensing.
[Raspberry Pi Original Development] MonkeySee:
Hi [MENTION=7223862]KonstaT[/MENTION]

Thanks for sharing this project with us.

Is there any progress on hardware video decoding & encoding?

I'm guessing this is the last piece in allowing the pi to be a proper media playback device?
[Raspberry Pi Original Development] KonstaT:
New build.

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

-add support for storage devices with exFAT filesystem

-hide su binary when root access is not enabled in developer options

-support for booting from USB devices (see FAQ)

-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 Linux 4.19.132 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)

-Android security patch level: 5 July 2020 (merged)

And there's now also an Android TV build:

https://konstakang.com/devices/rpi4/LineageOS16.0-ATV/
[Raspberry Pi Original Development] Dodorino:
Hi KonstaT

I am an undergraduate and in this period i am developing some apps such as Alexa app custom on android automotive emulator

So i need a miracle!

I mean, now i am working on sdk Alexa for Android and now i am testing music skills for example "Play Bluetooth" but for this skill i need to android image with Bluetooth Ad2p Sink,Audio/Video Remote Control Profile (AVRCP) and Hands-Free Profile Sink (HFP) profiles enabled.

These profiles are enabled in android automotive os

So, it's possible to have an Android Automotive OS build for Raspberry Pi 4?or a normal build android with these bluetooth profiles enabled for raspberry pi 4?

I know, a miracle is needed but I am hopeful

Thanks a lot
[Raspberry Pi Original Development] KonstaT:
This build uses the default bluetooth feature configuration (https://github.com/LineageOS/androi...ob/lineage-16.0/res/values/config.xml#L16-L35). It's possible to have more features enabled Android side but it doesn't mean hardware supports it or that it actually works. Last time I tested mic did't work on my bluetooth headset so there's no voice input.
[Raspberry Pi Original Development] Dodorino:
Thanks a lot for the support

So, i will try to build Lineage enabling some Bluetooth feature in config.xml

I need the usb microphone on raspberry to work, no on bluetooth headset. In this way i am be able to use ad2p and avrcp profile for playing music bluetooth and call from my phone paired with raspberry
[Raspberry Pi Original Development] bp1982:
Hi

I am trying the Android TV, thanks for this great job.

I have install GApps ...it is ok. but I cant use Chromecast functionalty. On my Smartphone I see the Chromecast button and I see "raspberry pi 4 TV" but there is nothing on rpi' s screen. The Netflix app said error "Sscr-s4010-2204..."

Somebody has tried Chromecast functionalty ?

Thanks a lot
[Raspberry Pi Original Development] KonstaT:
I think that Chromecast support only works on official Android TV devices. Same goes for the Android TV Remote Control app.
[Raspberry Pi Original Development] bp1982:
I think so:confused:

But with the official remote control App I havent issue. I was able to connect it at first boot when proposed to configure.

I am newbie but I hope there will be a solution to solve the problm....

Again thanks a lot
[Raspberry Pi Original Development] KonstaT:
Nice, the official remote app does indeed work!

As for Chromecast, there's bunch of errors on the logs. Looks like it needs server side certification.

07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask: error parsing cast info Json {"device_info":{"4k_blocked":0,"capabilities":{"audio_hdr_supported":false,"audio_surround_mode_supported":false,"cloudcast_supported":true,"display_supported":true,"fdr_supported":false,"hdmi_prefer_50hz_supported":false,"hdmi_prefer_high_fps_supported":false,"hotspot_supported":false,"https_setup_supported":true,"keep_hotspot_until_connected_supported":true,"opencast_supported":false,"reboot_supported":false,"set_group_audio_delay_supported":true,"setup_supported":false,"stats_supported":false,"system_sound_effects_supported":false,"wifi_auto_save_supported":true,"wifi_supported":false},"cloud_device_id":"058D070CF8C31992476D86384AB26075","factory_country_code":"","hotspot_bssid":"XX:XX:XX:XX:XX:XX","mac_address":"00:00:00:00:00:00","manufacturer":"Raspberry","model_name":"Raspberry Pi 4","product_name":"rpi4","public_key":"MIIBCgKCAQEAnrt6Zj5QHmN\/qUZ\/C7iv7+EduMzD62NvdK+fTehz1TwKcflwBTVBTx2S3HSASpHg71Yd2+yl0oL1mt\/qdu5XoXQMrmDlfxQeXlbO4R0ll1NqiPeDAKiIDF8yDZB7\/rAupbz6UJ0ffSwLU2f26jYV8ZeER5ory5G556m9oRuAJ9AvqQ\/lXswG1oo6nYghD8zwt7CTQEyQGTNjIpHHyanvZ1kcgTsQAplOanXxUMYWuVv5VaCNX+O30cTVBLkpUC4rZ6A2LRh73fQeXQGdUVFqqR27lXN\/5LCSFGUJ3nPThSkBBV8gtHkgo3p6UyZpqKifQnMnuNPfBjBMjQuEC4K5VQIDAQAB","ssdp_udn":"626f682a-fd47-40f6-4d1b-d9f232eba7d9","uma_client_id":"39a57344-50d5-4cb1-bada-aa85c4b92f6b","uptime":617.338564,"weave_device_id":""}}
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask: org.json.JSONException: No value for sign
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at org.json.JSONObject.get(JSONObject.java:392)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at org.json.JSONObject.getJSONObject(JSONObject.java:612)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at lao.a(PG:4)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at lan.call(Unknown Source:15)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at ddr.a(Unknown Source:2)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at qmb.call(Unknown Source:2)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at swv.run(PG:2)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at swb.run(Unknown Source:4)
07-26 00:09:41.758 833 1187 E LoadCastServiceInfoTask:	at java.lang.Thread.run(Thread.java:764)
07-26 00:09:41.759 833 1187 W LoadCastServiceInfoTask: Failed to get cast id and certificate from cast service.
[Raspberry Pi Original Development] bp1982:
I Saw that page,but I am too newbie to understand...

Yingtongli.me/blog/2019/12/20/ gcast-auth.htlm
[Raspberry Pi Original Development] cem_ari:
Thanks for your work.

I will use it with Raspbery Pi 4 8 GB in car. I need to auto power on-off according to igniton. I have applied your "How to create a DIY hardware power button?" Power off function is OK. Short press is screen off and long press is power menu. I just need power off without menu but i think can do it by some script or command etc. But i have problem about power on. If i push to button when power state off, nothing happens. Is it normal? Or did i wrong someting?

Second issue is that boot time is more than 1 minute. My micro sd card is Sandisk Ultra 32GB class 10. Old model. Same question again. Is it normal?

BTW i have ordered SanDisk 64GB Extreme Pro MicroSDXC.

My third question is that which your OS is suitable for carputer? Should i stick with this? Or should i upgrade to your LineageOS 17.1?
[Raspberry Pi Original Development] KonstaT:
You should most definitely use LineageOS 17.1 instead. This build is most likely discontinued and there's won't be any updates.

The DIY power button acts exactly like a power button on any Android device. There's a script in the LineageOS 17.1 thread to power down the device on GPIO event. I've been told GPIO3 can be used to power on the device.

Android just takes certain time to boot. Around minute is normal.
[Raspberry Pi Original Development] cem_ari:
I have flashed it. Woww it's just floading. Very fast. Thank you very much. Now time to handle power issue. I will keep going in the LineageOS 17.1 thread. Thanks again.
[Raspberry Pi Original Development] Mary1989:
DeepL translation:

I have read all the answers and they have clarified many doubts, thank you all.