yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] KonstaT:
IIRC search function needs GApps.

GPIO GPS has been discussed before e.g. http://disq.us/p/2m34x04. It likely won't work as-is on recent builds due to conflict with the bluetooth interface as also discussed before.

My builds are configured as wifi only tablet so they don't have Android telephony framework or drivers to support any modem hardware. I doubt there's Android RIL drivers available for that hardware in any case.

Yeah, I don't expect this to be any different on any Android 13 build. Raspberry Pi hardware specific implementation is the same on both AOSP and LineageOS builds.

I assume you mean the Android TV version.

1. Settings -> Remotes and accessories

2. I can reproduce this but not entirely sure if this feature even works in the first place.

3. Notifications seems to stay enabled with the one app I have installed so can't reproduce this.

4. Should be possible with Magisk but I haven't really followed how to do this these days. Maybe you'll find something in Magisk's own support topic. You can also look into ih8sn.

5. Android TV builds don't seem to have this option in developer options.

There shouldn't be any reason to increase the gpu_mem in the first place, the smaller the better (https://www.raspberrypi.com/documentation/computers/config_txt.html#gpu_mem).
[Raspberry Pi Original Development] whytf:
I got 8GB raspberry, my phone has even less ram and much more apps, therefore a lineage or tv version without the bloatware has more than enough and it is still a bit laggy when hovering over certain elements in the android tv, that's why i use more gpu memory because anyway unused memory is wasted memory, i'm gonna try with 76mb for gpu and see tho
[Raspberry Pi Original Development] ethical_haquer:
Thanks for replying.
[Raspberry Pi Original Development] Newluck77:
Thank you for providing this build! I'm running it on a Raspberry connected to a SWEDX SM-50K1 and without GAPPS. I have discovered two issues:

1. HDMI-CEC at first did not work, but I noticed that the TV discovered the Raspi when I was using the ARD Meditathek app. However, many buttons on the SWEDX remote don't work and do nothing. Is there a way to remap the remote buttons on the Android TV software side (similar to [Keymap Editor](https://kodi.tv/addons/matrix/script.keymap) for KODI)?

2. Many movies in the ARD Mediathek do not run and just say "The requested contents cannot be loaded at this time." This is not related to geoblocking as there is a different error text in this case. Possibly, the error happens because of DRM issues or because I haven't installed GAPPS.
[Raspberry Pi Original Development] elkir0:
Any chance that you share the package you built? I'd llike to try it :D
[Raspberry Pi Original Development] viteliogt:
All done let me know if this works for you
[Raspberry Pi Original Development] HackxBox:
Hi @KonstaT , firstly, thank you for your continuous and amazing work to bring Android to RPi!

I just got the latest (I hope) build from your website and got it running in no time on my RPi4. Even got GApps and resize patch all good. However, after following the Magisk steps - install through TWRP -> it seems it automatically did a factory reset -> set the device up again -> install Magisk apk -> when launched Magisk, I got a "your device needs additional configuration, Restart" - and after that my RPi no longer boots. I see the Lineage boot animation and when it shows the 3 circles and Linage below, the device restarts and the loop starts again.

Any help or suggestion what the issue might be will be greatly appreciated, as I can't find any reports of this issue anywhere so far.

Many thanks!
[Raspberry Pi Original Development] elkir0:
Waw, It works like a charm! Juste installed a few apps from google play, it works perfectly for me. Wifi is OK, can't connect my remote in BT therefore.
[Raspberry Pi Original Development] viteliogt:
there is a few remaining apps on the store that you need to update/install since the pack only install the basic apps try with that, i dont have a BT remote to test i use my phone as remote, the only issue that i have so far is with youtube the videos goes frozen once in a while :S i guess if for the 264 codec
[Raspberry Pi Original Development] Homeye:
So i checked and i can turn on the notification slide on some apps, but not all. Not a big issue. But the strange thing is, that after i started to install some apps and updates, the built-in Files app disappeared from the right side app vault and the option to pin it in the favourites too. I can open it from the settings but it's not convinient. Tried to uninstall some apps and updates, but still not showing.
[Raspberry Pi Original Development] KonstaT:
1. You can create a custom .kl file for any input device (https://source.android.com/docs/core/interaction/input/key-layout-files).

2. Could be either, impossible to say without seeing any logs (logcat?).

Yeah, that's normal that Magisk prompts a reboot but I haven't heard anyone else having any issues. Impossible to say what went wrong without seeing any logs (logcat?).

YouTube has mostly switched to using VP9/AV1 these days for which Raspberry Pi has no hardware codecs in any case. Some third party YouTube apps e.g. SkyTube have option to use legacy formats so you can use this to test H.264 hardware decoding as well.

Some GApps packages replace the default launcher with Google's Android TV launcher. This only displays native Android TV (i.e. leanback UI) apps in the app tray.
[Raspberry Pi Original Development] Homeye:
Can I download the LOS launcher from somewhere to change it?
[Raspberry Pi Original Development] MisterEcks:
Hi, can you also share with me please?
[Raspberry Pi Original Development] Homeye:
For me too please :)
[Raspberry Pi Original Development] Bh1rk0ff:
Hi, guys, I have problem with my build,I installed android tv on my rpi4, now the problem is that I want to use it on my tv but it doesnt boot, it shows thee bootloader and than black screen, tried it on my monitor it works flawlessly, tried some settings that i found on the net but no luck, if someone can help that would be nice.
[Raspberry Pi Original Development] Bh1rk0ff:
Also forgot to mention that kodi works with no problem
[Raspberry Pi Original Development] KonstaT:
Well, it's included in the build by default. If you want the GApps package not to replace it, you would need to modify the GApps package.

Please follow the instructions in the relevant FAQ section instead of some random stuff on the internet. :)
[Raspberry Pi Original Development] jadac43182:
Thx for your exciting work!

I had some issues when play some h264 videos.

The system video player will show black while the audio play well.

When I use third-part app players. It cannot use hardware decoding. Then I turn to software decoding. The software decoding cannot well handle it (with some frame drops).

Any ideas or fix? Thx for your attention.

Here is the mkv video: (cannot upload a mkv, I add to a zip)
[Raspberry Pi Original Development] wildsharkg:
Have someone tried family link? i'm stuck in activating it.

Thanks in advance
[Raspberry Pi Original Development] jeff862:
Cannot play video 1080 p resolution.. video laggy esp. mkv ... and 4k video any solution yet?
[Raspberry Pi Original Development] jadac43182:
In my test, most of 1080p h265 h264 videos have supported in hardware decode without frame drop (a part of h264 have issues like my post in #115 and seems .rmvb cannot play). 4k 2160 h265 can use in hardware decode but with poor performance.

And in newpip.apk the youtube 1080p@60 with MPEG-4 work fine.
[Raspberry Pi Original Development] KonstaT:
None of the available H.264 decoders (v4l2_codec2 hardware, FFmpeg hardware/software, Android software) support H.264 High 10 profile this video uses.

As always, you would need to be a lot more precise than "cannot play". Matroska (mkv) is a container, not a codec.

Raspberry Pi hardware is rated at 1080p60 for H.264 dec, 1080p30 for H.264 enc, and 4k60 for H.265 dec. That's it for available hw video decoders/encoders.

Thanks for testing 4k H.265. I don't even have a 4k display for this to be useful. It seems that the H.265 decoder performs worse with HEVC Main 10 profile (10-bit) than HEVC Main profile (8-bit). Most of the 4k test clips I've found are 10-bit.

Android doesn't support RealMedia formats in general (is this even relevant these days?). Some additional support for extra media types could have been added with FFmpeg but I chose not to (https://github.com/raspberry-vanill...mmit/287a29b9c976a42cafd9e76f80dcd16c504a0083) as it would also require additional media extractor which complicates things quite a bit.
[Raspberry Pi Original Development] doombuger:
My RP4b boots and works great w magisk, gapps etc. And overall I love it!

However I came across a bug where after about an hour or so of music playback via 3.5mm the audio gets lost/ cuts out system wide (no heptic sounds). switching the audio output to "HDMI0" in the pi settings doesn't seem to help (no sound through tv) nor does switching back to 3.5mm. it Happens pretty often and is only fixed by a reboot.

Also after reboots the WIFI will take a while to reconnect, it fails a whole lot before having any success if any, and sometimes will also require another reboot. Any advice/fixes?

A shortcut to access the pi settings in the notification toggles or a shortcut In The drawer would be pretty useful.
[Raspberry Pi Original Development] jadac43182:
I also across the sound bug once when I play a video.
[Raspberry Pi Original Development] jadac43182:
Thx for your quick replay. Here is my struggle. I want to play the sample h264 high 10 1080p video in software decode. But seems LOS20 cannot handle it even in software decode. I used the LOS19.1 which can handle it in software mode. Any possible fix? Thank you so much.

In LOS20 I try many third-players include: VLC/justplayer/mx-player/mpv/nplayer. They all cannot handle it smoothly in software decode. And in LOS19.1 nplayer can handle it smoothly in software decode.

Perhaps there are some performance bugs in software decoding mode in LOS20？

Another question is how to enable the DLAN/AirDrop/ChromeCast? Any Ideas?

Any the VNC seems not have sounds, how to enable it? Thx!!!

(By the way, I tested the DS4 controller connection is fine and even the touch board supported. (sounds not supported).

And I also tested the RDP client by Microsoft. It also works fine for clip sound and typing (a little slow but acceptable).

It is amazing!

:)
[Raspberry Pi Original Development] Dominic9811:
Hey there i have an Issue regarding performance with this rom. I flashed los20 coming from los 18 and now the whole system feels very slow like it's not utilizing all of the Performance the Pi 4(8g) has. Is there a way to improve system responsiveness?
[Raspberry Pi Original Development] jadac43182:
I am from LOS19.1 and not notice this. Do you overclock? or the tf card reason?
[Raspberry Pi Original Development] Dominic9811:
I am using los 19.1 now, it runs A LOT better than 18.1 or 20. No overclock, shouldn't be necessary.
[Raspberry Pi Original Development] jadac43182:
I turn to LOS20 for the H265, And I retest it, seems the animation of LOS20 and gestures indeed have some lagging.
[Raspberry Pi Original Development] KonstaT:
Logcat on the audio issue with 3.5mm jack? Don't think I've received any reports of this before. HDMI audio has been troublesome on builds with Linux kernel >=5.10 (i.e. Android 12 and above) but that should be fixed as well if/when there are new releases (https://github.com/raspberry-vanilla/android_device_brcm_rpi4/pull/1).

Generally speaking wifi on Pi 4 seems to be pretty sensitive and it easily affects network performance if you're using e.g. a very crowded wifi channel. Switching the channel from your router might help.

There's no plans to add any shortcuts to the Pi Settings but there's probably tons of third party apps that can do this one way or another. E.g. from the command line:

am start -n com.konstakang.settings.device/com.konstakang.settings.device.RaspberryPreferenceActivity

Interesting if it works on LineageOS 19 as AFAICT the system decoders don't advertise support for H.264 High 10 profile there either.

I'm not too familiar with DLAN/AirDrop. Wifi p2p (i.e. wifi direct) that screen mirroring uses is not supported. There is some issue with the Pi's wifi driver but I haven't gotten around to investigate. You should be able to cast to an actual Chromecast device if you've installed GApps/Google Home like from any other Android device. Not the other way around, though.

Isn't VNC just a pixel based protocol? Remote desktop solutions probably use something else for audio (if supported).

There shouldn't be any major difference in performance between these Android version. Android 13 has slightly worse graphics performance (due to always requesting color transform) but OTOH it should e.g. launch apps faster thanks to multi-gen LRU support added in 5.15 kernel. Probably other things matter such as storage speed (e.g. if you've used different sdcard/USB device for the installation) or clean installation without GApps vs. bloated with your installed apps & GApps.
[Raspberry Pi Original Development] Dominic9811:
I tried all versions without gapps and I'm using an samsung 128gb EVO Select SD Card with 130GB/s read speed. I did not install anything i just tested 18.1, 19 and 20 and for some reason 19 feels like 70% more responsive.
[Raspberry Pi Original Development] jadac43182:
I back to 19.1, this problem gone. If there are some big progress like h265 support or else improve. Eager to sync in 19.1. 19.1 is faster and with more playback ability (in my test) and with less app compatibility issues。Thank you for all your outstanding work!
[Raspberry Pi Original Development] beastbrain:
which version of gapps is currently working for latest build? I tried MindTheGapps-13.0.0-arm64-ATV-20230207_193420 amd I get black screen but I can move the mouse cursor, any tips? the rom build is arm64 right?
[Raspberry Pi Original Development] KonstaT:
Current MindTheGapps Android TV releases are broken for the Pi at least. Correct place to report this would be https://gitlab.com/MindTheGapps/vendor_gapps_tv.

For Android 12 the older working releases can be found here: https://androidfilehost.com/?w=files&flid=335898

For Android 13 you need to modify the update-binary inside the GApps package. There's instructions and modified package posted on the comments on my site.

http://disq.us/p/2t0b2zv

http://disq.us/p/2sztoq7

http://disq.us/p/2tc6tot

Edit. MindTheGapps have been fixed, use the latest packages.
[Raspberry Pi Original Development] beastbrain:
it doesn't seem to work for me, do I have to flash them together before system boots first time?

I can use A12, I don't mind, is this version working? MindTheGapps-12.1.0-arm64-ATV-20220912_160414.zip
[Raspberry Pi Original Development] KonstaT:
It doesn't matter and you need to perform factory reset when installing GApps in any case. Just start with a clean installation if you've installed some broken GApps package before (or wipe system partition in TWRP and flash Android OTA package).

Yes, IIRC that's the last Android 12 one that works.
[Raspberry Pi Original Development] beastbrain:
ok somehow I cannot make it work with gapps,

I tried latest 19.1 with gapps of september and august 2022, still system crashes right on boot, then I get LOS wizard and after that android tv never boots and everything stops working etc.

i tried wipe system and flash ota, then flash MindTheGapps-12.1.0-arm64-ATV-20220912_160414 or MindTheGapps-12.1.0-arm64-ATV-20220831_210959, then factory reset, same problem.

I am gonna try again on A13 with factory reset on the modified gapp
[Raspberry Pi Original Development] aclinical:
@beastbrain the mind the GApps package is broken, you need to use the package that Splash provided in the comments section of @KonstaT's website. Take a look around page 3 or 4 of this thread for more details.
[Raspberry Pi Original Development] bharat.pareek1991:
I installed ATV 13 as well as 12. It boots fine but when I install gapps > factory reset > reboot to system

I end up with a blank screen with green wallpaper, I can adjust the volume, see the mouse arrow moving but nothing else is possible.

Need some help here please.

NVM found that the gapps are broken. :/
[Raspberry Pi Original Development] beastbrain:
can you provide which package, I cannot find it, any url? is there like a certain combination of A12 or A13 with gapps that works? I am getting blank screen with A13 and crashes on A12.
[Raspberry Pi Original Development] beastbrain:
I managed to get A13 AOSP to work with basic gapps,

another issue I have is Bluetooth crashing when I try to pair a device
[Raspberry Pi Original Development] KonstaT:
Please read the FAQ on how to install GApps and follow the instructions provided there. Make sure you've selected the right GApps package for the build. You can't install Android TV GApps on the regular tablet UI build or vice versa.

I already linked you the working packages for Android 12/13 few posts up.

Edit. MindTheGapps have been fixed, use the latest packages.

Android 13 switched to new gabeldorsche bluetooth stack and there's reports of issues with BLE devices. LIneageOS 20 builds have the exact same issue. If this is too much of an issues for you, you can use Android 12 builds where this is working.
[Raspberry Pi Original Development] KonstaT:
New builds.

LineageOS 20 (Android 13)

for Raspberry Pi 4

konstakang.com

LineageOS 20 Android TV (Android 13)

for Raspberry Pi 4

konstakang.com

Android 13 QPR2

HDMI audio improvements

implement audio HAL that uses alsa directly to get rid off using alsa loopback for HDMI audio (thanks to nename0)

update alsa-lib and alsa-utils to v1.2.8

update to libcamera master/v0.0.4

fix camcorder (i.e. recording videos) with Pi camera modules

add support for Pi camera module v3 (untested)

use USB audio input for camcorder videos with the built-in camera application

update to FFmpeg 5.1.3

update to Mesa 22.3.7

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

Android security patch level: 5 March 2023 (merged)
[Raspberry Pi Original Development] Homeye:
Thanks for the wok! I'll test the performance later.

However, the Google Play Store app disappeared after the update. Do i need to reflash the gapps zip or just download an apk for it?
[Raspberry Pi Original Development] KonstaT:
It shouldn't disappear anywhere or require reflashing. Most GApps packages have backup script that preserves GApps during OTA updates (at least the one linked in the FAQ does).
[Raspberry Pi Original Development] Homeye:
Well, i used the "fixed" gapps zip for the tv version of your rom. Yesterday i flashed the update and your magisk zip. The play store is not in the app list. There's this "panel" where you can see the "get more apps" and "get more games" buttons. Only the games is present now and when i click on it, the google play games app is shows an error. I'll try to downloand and flash the gapps zip again today after work.
[Raspberry Pi Original Development] KonstaT:
Well, I don't know what "fixed" package you've used but copying the backup script was also broken until it was fixed pretty recently (https://gitlab.com/MindTheGapps/vendor_gapps_tv/-/commit/763e0a6e0e40e90e373f841d2a73d66a5d1ddc5b).

There are new MindTheGapps Android TV releases yesterday (20230321) that are now working on the Pi 4 as well so use the latest package.
[Raspberry Pi Original Development] quiOt:
Anyone was able to pair a PS4 controller over Bluetooth with LineageOS 20.0 ? Mine hangs on pairing.. Is this related with the new gabeldorsche bluetooth stack ?
[Raspberry Pi Original Development] KonstaT:
Something with the bluetooth stack introduced in Android 13 certainly doesn't play nice with Pi bluetooth firmware. As commented on the AOSP13 topic (https://xdaforums.com/t/dev-rom-aosp-android-13-for-raspberry-pi-4-b.4481977/page-5#post-88301805) there's a new bluetooth firmware available. It seems to fix connecting BLE devices in Android 13 but overall bluetooth seems more unstable than with the older firmware that is included in this build by default.
[Raspberry Pi Original Development] quiOt:
Thanks @KonstaT!
[Raspberry Pi Original Development] Homeye:
The fixed package the one linked here or in your website's comments with the fixed install script :)

So, I was able to test the latest mindthagapps before work today morning. Here are the results:

Play Store is back. There was a notification that said I need to sign back in. I was able to update apps.

Google Play Movies and Games crashed when I tried to open them. Force close, clear cache and data, still crashing. I had to uninstall them and redownload from the store. Now they are working.

Live Channels app is the same, but after the redownload it was still crashing at the "choose source" window. After a reboot it's working angain but it see 2 GPMovies source, one of them shows an error like "no source from this app", the other is working.

GBoard looks okay, it shows the keyboard.

I don't have any other app from Google just like tv setup, etc. I'm using SmartTubeNext instead of Youtube, so I wasn't able to test if any other google apps has the same error.

Spotify is working.

Right now, it looks fine. The double source in Live Channels is bothering me just a little, but it's fine. I'll wait for the next OTA update to test if the gapps will work after the update or not. Regardless of the result, I'll reinstall everything from scratch.
[Raspberry Pi Original Development] KonstaT:
If you've booted without GApps in between, you need to do a factory reset in any case.

There's no need to wait any new update to test this. You can just flash the OTA package of the latest build over and over again. But preserving the GApps does work with the latest MindTheGapps Android TV package.
[Raspberry Pi Original Development] adioph:
still unable to pair with bluetooth controller using the latest package... :-(
[Raspberry Pi Original Development] adioph:
already copied the two files in /vendor/firmware/brcm as instructed
[Raspberry Pi Original Development] Homeye:
I almost forgot, that i had an img file of the sd card with every app configured (rpi likes to corrupt sd cards). So i used my backup, flashed the ota update + gapps + magisk zip (i guess i need to reflash magisk after every update yes?). With these steps, no crashes.

An other thing: i'm thinking about to change my sd card to a faster one, but i'm not sure about the specs nowadays. Like i remember in the past there was a thing class 10 card, etc. What are your suggestions? Also, which is the better? A fast sd card, or a small and fast usb 3.0 drive to boot?
[Raspberry Pi Original Development] KonstaT:
Logcat? Could still be for numerous reasons and there's not much point in guessing. There's e.g. been some previous reports of issues with pairing bluetooth remotes on Android TV after installing GApps (e.g. https://github.com/opengapps/opengapps/issues/915#issuecomment-1236377741).

There's a list under 'How to install' on what is/is not backed up and restored during flashing OTAs. Yes, Magisk needs to be always reinstalled on my builds. GApps are preserved on LineageOS (but not on my AOSP builds).

At least class 10 sdcard is recommended. Storage speed does matter. Decent SSD with USB 3.0 adapter is probably quite a bit faster, regular USB thumb drives might not be. I personally just stick one of my sdcards to USB 3.0 card reader if I need to test/develop something related to USB boot so I wouldn't really know. There's of course various third party apps to benchmark I/O speed if you're interested.
[Raspberry Pi Original Development] Spielmops:
LineageOS 20 and cameras:​

the new Rasdpberry cameramodul 3 is not working! No camera recognized!​

What I did:

- start Raspi 4 with Raspbian and make sure the camera was working, that means it's correct connected.

- update LOS to the latest version from March

- start LOS and start Opencamera

Result: no camera found ...