yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] erdosain9:
EDIT: I BUY NEW BLUETOOTH CONTROLLER AND IS WORKING ALL FINE!!!

Ok, SixAxis app is an app for connect ps3 controllers (the only i know).

With "having problems..." im saying that i cant connect the controller, i dont see it to pair it.

i put a complete logcat here.

Upload files for free - file.txt - ufile.io

Download file.txt for free from ufile.io instantly, no signup required and no popup ads

ufile.io

(in this example i try to pair with the option in configuration of the Android (nothing happens), also try to see what happens when connecting through USB, and there is recognized and i can move, use it, with SixAxis app (nothing happens, the app say "Could not set HCI raw mode"))

So through USB works, through Bluetooth i dont see the device.

Thanks!

EDIT: I BUY NEW BLUETOOTH CONTROLLER AND IS WORKING ALL FINE!!!

Thanks!
[Raspberry Pi Original Development] erdosain9:
Forget the last message,

I BUY NEW BLUETOOTH CONTROLLER AND IS WORKING ALL FINE!!!

Thanks!
[Raspberry Pi Original Development] KonstaT:
Yes, it was a wrong move as my LineageOS 20 builds already support Widevine L3 without any add-ons. Installing something intended for Android 14 won't work for Android 13 of course.

You can install the provided LineageOS 20 OTA package to restore working system without loosing your installed apps/data.
[Raspberry Pi Original Development] wojtekojtek:
I know it's been a while, but today I've bought new hdmi cable (with internet, idk what this means) just to replace default raspberry pi hdmi cable. It was buggy. So I flashed it on 32gb sd card, booted it and now I'm in first setup. I didn't make any changes in files. It just worked. I don't know why.

edit: the bugged hdmi cable was working with TV, but sometimes screen was blinking. Now I passed first setup, and it's working fine.

2nd edit:

default resolution is 1920x1080. My display is 1024x600, but there is only 1024x768. I've changed it using rpi settings to 1024x768 and the screen was stretched, so I changed it to 1024x600 in resolution.txt. But rpi showed nothing on screen.

I'm trying to fix it using your links (to disqus comments)

3rd edit:

Everything is working. Thank you!
[Raspberry Pi Original Development] semola_:
Hello,

I installed LineageOs 20 (android 13) version for TV on the raspberry pi 4 B and I'm having some problems playing video content when using some apps.

The logcat report the following errors related to ExoPlayer (I wasn't sure if this was the right place to post the question actually).

01-02 18:20:15.019 E/MediaCodecVideoRenderer( 1864): Video codec error
01-02 18:20:15.019 E/MediaCodecVideoRenderer( 1864): android.media.MediaCodec$CodecException: Error 0xffffffe0
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): Playback error
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(2, null, null, video/avc, avc1.4D4029, 2793078, null, [1280, 720, -1.0], [-1, -1]), format_supported=YES
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:566)
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): at android.os.Handler.dispatchMessage(Handler.java:102)
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): at android.os.Looper.loopOnce(Looper.java:201)
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): at android.os.Looper.loop(Looper.java:288)
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): at android.os.HandlerThread.run(HandlerThread.java:67)
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): Caused by: com.google.android.exoplayer2.video.MediaCodecVideoDecoderException: Decoder failed: c2.ffmpeg.h264.decoder
01-02 18:20:15.020 E/ExoPlayerImplInternal( 1864): at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.createDecoderException(MediaCodecVideoRenderer.java:1590)

I'm attaching the extended logcat.

Thanks in advance!
[Raspberry Pi Original Development] KonstaT:
What have you selected as the video decoding option from Raspberry Pi settings? This is not the default option at least. This build has four different H.264 decoders (v4l2_codec2 hw, ffmpeg v4l2m2m hw, ffmpeg sw, android sw) so the performance can vary depending on what you've selected.
[Raspberry Pi Original Development] semola_:
When I started noticing the issue it was set on the first option in the list: ffmpeg sw dec ffmpeg h.265 hw dec, v4l2_codec2 h.264 hw dec/enc.

Then I change to the next option in the list: ffmpeg sw dec, ffmpeg h.264/265 hw dec, v4l2_codec2 h.264 hw enc.

Nothing changed. Is there something recommended ?

Anyway, following https://github.com/google/ExoPlayer/issues/10285 it should be something that is app related.

I noticed that the problem shows up when watching live video from a particular OTT platform (raiplay, an italian service). If instead I try to play on demand content from the same service nothing crashes.
[Raspberry Pi Original Development] KonstaT:
Ok, also note that FFmpeg v4l2m2m H.264 hardware decoder actually performs worse than the FFmpeg software decoder for some reason. Both H.264 software decoders can also keep up with 1080@30 just fine. If you want to use H.264 hardware decoder, use v4l2_codec2 that is the default option.

You also need to reboot your device for the video decoder option to take effect.
[Raspberry Pi Original Development] semola_:
OK, thank you for the answer.
[Raspberry Pi Original Development] semola_:
Hello,

using PINN I have a dual boot (RpiOS and LineageOS 20 ATV (may 2023 build)) on a Raspberry pi 4

I would like to update LineageOS to the latest build (august 2023).

I tried both the suggested method reported below but I get the error message reported in the image attached.

Is it due to the dual boot ? Any suggestions ?
[Raspberry Pi Original Development] KonstaT:
Yes, It's related to PINN. I'm not supporting any multi-boot solutions and unfortunately the versions that PINN offers are not kept up to date.
[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

implement USB gadget HAL

add support for booting from NVME (custom CM4 I/O boards with M.2 slot)

improve audio DAC detection

improve CPU overclocking option (Pi 4B R1.4+ and Pi 400 clocked at 1800MHz by default)

update to TWRP 3.7.0_11-1-KonstaKANG

update to new Raspberry Pi utils (vcgencmd, pinctrl, etc)

update to v4l-utils master/1.25.0

update to alsa-lib/alsa-utils v1.2.10

update to FFmpeg 6.0.1, AOSP dav1d 1.3.0

update to Mesa 23.3.2

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

Android security patch level: 5 January 2024 (merged)
[Raspberry Pi Original Development] deanfourie:
Hi there,

I am trying to get Serial GPS to work with my PI 5. So far I have had no luck, connecting GPS to UART0 outputting NMEA 0183.

Is there anything I can do to get the Serial GPS working?

Also, I don't seem to be having much Luck with the GY511 (LSM303DLHC) Magnetometer. It is enabled in the RPI settings menu.

Any ideas?

Thanks
[Raspberry Pi Original Development] KonstaT:
Discussion for the Raspberry Pi 5 LineageOS 20 is here.

[DEV][ROM][UNOFFICIAL] LineageOS 20 (Android 13) for Raspberry Pi 5

Here’s my build of LineageOS 20 for Raspberry Pi 5. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only. Important! This image includes parts that are licensed under non-commercial license (Creative Commons...

xdaforums.com

I just answered to same/similar questions on my site. There's no need to post this across several places.

LineageOS 20 (Android 13)

for Raspberry Pi 5

disq.us
[Raspberry Pi Original Development] deanfourie:
Sorry, I did not know this forum post existed, and wasn't sure what was more active.

I have 2 more questions for you please.

1. Is there a way to completely disable screen sleep and system sleep, the system and screen needs to run 24/7 unless shutdown?

2. I have installed on a 64gb SD card, however my systems usable storage is only 6gb. Is there any reason or fix for this.

Love your work!

Thanks
[Raspberry Pi Original Development] KonstaT:
UART configuration is slightly different between Pi 4 & Pi 5 so the device (and having the discussion in the right place for that device) matters.

1. Already does this by default.

2. Please read the relevant FAQ section.
[Raspberry Pi Original Development] bam80:
Hi,

any way to add support for RPi's TV HAT (DVB tuner)?

I recall ATV has special support for that kind of stuff..
[Raspberry Pi Original Development] aliabadi97:
Hi,

could you please provide device-tree besides kernel for android 13 to build my version?
[Raspberry Pi Original Development] KonstaT:
I don't have any hardware to develop/test.

You can look into Raspberry Vanilla project if you want to implement support for something like this yourself.

Raspberry Vanilla

AOSP for Raspberry Pi. Raspberry Vanilla has 32 repositories available. Follow their code on GitHub.

github.com

Device specific implementation is available at Raspberry Vanilla project to build AOSP (or something AOSP-based such as LineageOS) for Raspberry PI.

Raspberry Vanilla

AOSP for Raspberry Pi. Raspberry Vanilla has 32 repositories available. Follow their code on GitHub.

github.com
[Raspberry Pi Original Development] Eddy25:
Hi. I'm using a Raspberry Pi4 4GB Have followed your tutorial for Lineage OS20 Android 13 TV version and eveything is working without issues. Now I want to install Netflix with the ability to watch videos in Full HD.

In the playstore i haven't found it. What are the steps to have it installed (Sorry i'm not an expert). Thanks in advance.
[Raspberry Pi Original Development] Eddy25:
Is it enough to download and install the APK ?
[Raspberry Pi Original Development] KonstaT:
Regular mobile version of the Netflix app is reported working. Android TV versions tend to have more restrictions (SafetyNet/Play integrity APIs, etc. IIRC Netflix even requires Android TV device to be specifically whitelisted for their servers).

Yes, you would need to use .apk file to install.

You would be still capped at standard definition playback due to Widevine L3 DRM.
[Raspberry Pi Original Development] Eddy25:
Thanks a lot.
[Raspberry Pi Original Development] blakeinthewoods:
I do not want to install GApps, and I like the included launcher. However, I would like to change the wallpaper and I don't think this is possible with the included launcher. I installed flauncher for this purpose only and, guessing, I disabled 'com.google.android.tvlauncher' after reading the list of devices shown while connected via abd. Flauncher now does come on automatically like I wanted but it is not working properly(compared to before disabling android.tvlauncher). Sorry if this is something very simple, this is my first time with android. Any suggestions?

This is great, thank you. For me, much better than libreelc i have been using on my pi.
[Raspberry Pi Original Development] blakeinthewoods:
It is working now, so that was the correct device to disable. I think what fixed my problem was setting flauncher main activity, simply opening flauncher wasnt enough.

adb shell "pm enable com.sci.hub.tv.launcher/com.sci.hub.tv.launcher.MainActivity"
[Raspberry Pi Original Development] Eddy25:
I am trying to get ADB working with my Pi4B (running LinegeOS 20 Android TV) without success. Have installed ADB on my Windows10 pc and tested it ok with my smartphone (adb devices...). In the description it is said to use the usb c port for adb. in this case how to power the Pi?

I have connected my pi to my pc throught the usb c port without success (adb devices give me : no devices attached);

Of course usb debugging and Rooted debugging are enabled in the pi settings.

any help please.

Edit :Solved. I had to power up the Pi using the GPIO .....
[Raspberry Pi Original Development] Eddy25:
Now i have connected my IR receiver to GPIO18 and enabled the Remote control in the Pi settings (using lineage OS 20). have also tested my remote control using ir-keytable -p all -t and i'm getting the right scancodes of my remote.

I have also prepared my own keymap.txt file but i can't figure out how to install it ?

Is ther a howto or a link to discussion in the forum on how to install the keymap.txt file ?
[Raspberry Pi Original Development] Eddy25:
Got it.

I cleared the old keytable and replaced it with my own rc_keymap.toml file. Also placed the rc_keymap.toml file in the boot directory. My remote control works like a charm. Thanks Konstakang for this wonderful job.
[Raspberry Pi Original Development] crazyg4merz:
@KonstaT thank you for the awesome ROM!

I have a problem where everytime I turn off the TV and turn it back on, the display goes blank and only restarting the Pi fix it. I really don't know what's wrong here. I already set the Power Savings to never turn off screen, turn off all CEC control settings, set the screen to never sleep on Developer Options. I can connect via VNC and SSH just fine when it happens.

I browsed through this forum and see there's nobody with the same problem, but I saw somebody having the same issue as me (but mine is worse because it happens everytime I turn off/on my TV): http://disq.us/p/2xkhz1g

Thanks before!
[Raspberry Pi Original Development] crazyg4merz:
@KonstaT This is the logcat for my problem above, I turned on and off the TV while the Pi is running.

gist:43209ea21bd2a54de1733c9337941283

GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

Thanks before!

UPDATE: I managed to get the smaller logcat, this time it looks like the Pi died, causing the ssh session to close. Hopefully this can give you more hints on what's going on.
[Raspberry Pi Original Development] crazyg4merz:
UPDATE: I managed to fix the screen not waking up problem by having `video=HDMI-A-1: D` in the `/boot/cmdline.txt` file. It forces the kernel to always act like the HDMI is connected to the Pi all the time.

But here comes another problem, which is sometimes the HDMI audio is not working. I'm wondering if I can put a custom EDID from my monitor at `/sys/class/drm/card0-HDMI-A-1/edid` and put it in a some path and boot the kernel with EDID file? Something like `drm.edid_firmware=HDMI-A-1:<path-to-myedid.dat>` @KonstaT .
[Raspberry Pi Original Development] poisonwither:
I've been trying unsuccessfully to make a hifiberry DAC+ work with android on a raspberry pi 4 for some time now. I'm beginning to wonder if I have a bad card. I think I had orignally installed android 12 some time ago and gave up after my initial attempts. I recently installed android 13 and after finally getting connected to google play I am having the same issue as before. I can output audio with the 3.5mm jack only when the DAC is not attached. Once attached the audio apps won't even start streaming, they come up but playback never starts.

The dtoverlay is set to hifiberry-dacplus in my config.txt and when I do a dmesg it appears to get loaded. Does anyone have any idea of another log file that I can look in to see if something is erroring out on me? I generated a bugreport and it doesn't appear to have any other information in it. Searching through the /data and /boot directories have so far not yielded any other infomration.
[Raspberry Pi Original Development] pratyaksh tyagi:
Hey konstaT, Do you know if I can run expressVPN on this build? I am facing issues where as soon as I try to connect VPN it kills the activity and nothing happens, OpenVPN runs fine but **** hits the fan when wireguard is run?

Here are the logs - Logcat
[Raspberry Pi Original Development] Mioj97:
Hi everyone, has anyone tried using a compression algorithm, for example lz4, to compress the kernel? I added the configurations but they do not appear, after the build, in the config.gz file. Does anyone have any idea what the problem is?
[Raspberry Pi Original Development] Augustin.Nodle:
hi buddy , thanks for your hard work , i need help with a gps , can you recomend me a gps to put on rpi4 ??

i want install your android version on rpi4 and attach an gps module (i dont know if i have to install the gps on rpi4 befoure install the android or i can do after or not need to install any program and its just working ) Thanks
[Raspberry Pi Original Development] KonstaT:
TWRP is included in the OS image. It's /boot/ramdisk-recovery.img but I have no idea what you would with that alone.

No, since software decoder keeps up with 1080p H.265 videos just fine as well. I haven't tested 4k videos since I don't have 4k display either. Impossible to say without seeing any logs. Logcat?

As stated under 'Working' in the OP, external USB modules such as U-Blox 7 and similar serial GPS modules are supported. You need to have the USB GPS dongle connected when you boot to Android for the Android GPS HAL to detect it.
[Raspberry Pi Original Development] nomadman:
anyone know how much of an improvement when installed on Pi4 4gb with argon one v2 and Argon ONE M.2 NVME Expansion Board with 128gb NVME SSD? Does the setting have the option to control the Argon One v2 fan?
[Raspberry Pi Original Development] Augustin.Nodle:
buddy , when i start the rpi4 after some time the red and green led go off , black screen , but if i take sd card out its work , when i enter again and its reading config file its going same , any ideea ? i did not change any settings
[Raspberry Pi Original Development] KonstaT:
Storage speed certainly matters.

Argon case discussed https://xdaforums.com/t/dev-rom-uno...aspberry-pi-4-b.4356891/page-23#post-87633437 and few posts forward.

Why make the same post in several places?

If you have issues with display, please read the FAQ. If you have issues with USB boot, please read the FAQ. No, if you've written the OS image to sdcard it's not going to magically work without any sdcard/OS to boot to begin with. If you're booting from USB, you're not supposed to have any sdcard inserted (as also stated in the FAQ).
[Raspberry Pi Original Development] Moogle:
Sorry I guess I'm not understanding the install instructions well.

So I'd put 'Download lineage-20.0-xxxxxxxx-UNOFFICIAL-KonstaKANG-rpi4-ota.zip' on my micro-sd card and then boot to TWRP from the microsd card but the FAQ doesn't say how that's accomplished on a system that doesn't already have LOS installed.

```A: You can boot to TWRP by selecting Settings -> System -> Reboot -> Recovery after enabling advanced restart options.```

Is this line assuming Raspbian or LOS?

I'm trying to test this out on a system normally running openelec (kodi)
[Raspberry Pi Original Development] KonstaT:
Just flash the OS image (first download link) like you would any other OS on Raspberry Pi (i.e. 'How to install'). This will of course overwrite whatever you have on the sdcard.

Once you have Android installed you can boot to TWRP to install GApps/Magisk/other add-ons/OTA updates (if/when newer builds come available).
[Raspberry Pi Original Development] Augustin.Nodle:
sorry for multiple post , what you mean about boot os , i put the image on sd card with PI imager and one time with Balenaecher .. and its same
[Raspberry Pi Original Development] Moogle:
ah so I think I understand now. So first I would image ```lineage-19.1-20220923-UNOFFICIAL-KonstaKANG-rpi4.zip``` to the SD card. After that I would place the file ```lineage-19.1-20220923-UNOFFICIAL-KonstaKANG-rpi4-ota.zip``` on the sdcard to be used after rebooting into TWRP?
[Raspberry Pi Original Development] KonstaT:
General advice is to use proper sdcard (at least class 10) and power source (3A in case of Pi 4). If you have issues with your display, please read the FAQ.

Sorry, I don't have any better advice to offer with the information you've provided.

No, you don't. :)

Better that you just forget that the OTA package even exists at this point. Just flash the OS image exact the same way you would any other OS on the PI (Pi imager/Etcher/'dd'/whatever) and that's it.
[Raspberry Pi Original Development] Moogle:
got it booted now, mistake was starting with the OTA package intially. Thanks for the patience. I look forward to being able to use Newpipe on my tv now! Skip Silence feature is worth it.
[Raspberry Pi Original Development] Augustin.Nodle:
done , i add this from google ..

# uncomment if you get no picture on HDMI for a default "safe" mode

hdmi_safe=1 #

uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan disable_overscan=1

# uncomment if hdmi display is not detected and composite is being output hdmi_force_hotplug=1

now i have image , but the problem is my mouse its not detected 😅😭
[Raspberry Pi Original Development] vexille:
No matter which version of the GAPPS file I try it errors out stating that it's GAPPS for 12 but OS is 13. How do you actually get this running without GAPPS installed? Is there a sideload process?

**Installing the Tablet GAPPS (13) makes it further but when you try to start it you get another version error...
[Raspberry Pi Original Development] KonstaT:
hdmi_* options in config.txt have no effect with KMS driver that is used with hw accelerated graphics on Android builds. Overscan is already disabled by default so none of these actually make any difference.

USB mouses should work just fine, never even heard anyone having issues with this. General advice is to use proper power source (3A in case of Pi 4) so you can power external devices as well.

I assume you mean the Android TV version. I'm not aware that there is currently any GApps package for Android TV 13. You can't use GApps package for wrong Android version of course. GApps are not part of my releases so this is something you'd need ask/discuss where you generally get your GApps.
[Raspberry Pi Original Development] romucifer:
hello little question maybe stupid does the raspberry with android 13 support touch monitors via usb (touch yes) but is the video stream supported by usb (like a mirror screen)
[Raspberry Pi Original Development] KonstaT:
No, I'm not aware that this would be technically possible with Pi 4's hardware.
[Raspberry Pi Original Development] mohamedbk:
Hi,

Thank you for the port but i have some problems :

- I have 1TB HDD formatted as NTFS, for exemple KODI don't recognize the disk and also other apps don't see the HDD

- when i go to storage in settings and selected the external drive the program closed automatically

Anyone have a solution for that ?
[Raspberry Pi Original Development] KonstaT:
NTFS is a proprietary Windows file system and it's not supported. There's third party apps to mount NTFS drives (paid apps due to licensing).

You need to format your drive to FAT or exFAT file system that are natively supported on Android.
[Raspberry Pi Original Development] mohamedbk:
So in my case wich format do i use for my 1TB HDD ?

I will use it for multimedia , kodi and plex

can you help me choosing the right format ?
[Raspberry Pi Original Development] KonstaT:
Out of these two you'd probably want to use exFAT for a storage device this size. Simple Google search would have been a lot quicker, though. :)
[Raspberry Pi Original Development] mohamedbk:
Dear my friend,

Your build have some problems :

1) you can't format external usb or hdd in setting them storage , you can't use it as external storage , it's just a media drive only .

2) The media servers apps ( kodi , emby , plex media want detect external storage .

That's why i contacted you , i tried to config my rp4 android tv as a media server and it didn't work because of this
[Raspberry Pi Original Development] KonstaT:
Neither of these have anything to do with my build. There is nothing out of the ordinary here to how external storage devices are managed in Android in general. With recent Android versions storage access for apps is limited to the apps' own directory for security reasons.

Apps having limited access to external storage is by design in Android. VLC/Kodi/etc access to external storage has been discussed e.g. https://xdaforums.com/t/dev-rom-uno...raspberry-pi-4-b.4139059/page-5#post-83816985