yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] Meitei:
Really? I thought that was built-in? Or only with libreelec? With raspberry pi os you have or had to install it.

So like a million addons... hm... I would love to only have one thing. One downside with libreelec is if say Prime or Inividious (YT frontend), you are out of luck, no browser as a backup or something similar.

Great thanks.

Update no Netflix: Cannot login, says I have the wrong password. Although I double and triple checked.

Update on Disney+: It crashed at first, but then worked. Navigation for changing language or subs is clunky or not responding at all. Uses chinese as default for both. Trying to click on the timeline of a video sometimes works, sometimes crashes the video.

Btw tried to install Kodi on fdroid but it failed, will sideload it later.
[Raspberry Pi Original Development] ethical_haquer:
Mistake
[Raspberry Pi Original Development] Meitei:
Prime didn't really work much either.

I'll either go with libreelec or raspberry pi os.

I learnt a lot in the last few days, thanks for the help. I am pretty sure I'll learn some more when going for either of those other options as well.

I attached another log, just in case it might help to fix this in the future.
[Raspberry Pi Original Development] KonstaT:
Pretty sure no one can keep track of you setup at this point any more. :) On few topics that were raised.

Using any dual-HDMI display setup will naturally decrease graphics and overall system performance. Using 4k display resolution (against all advice) will decrease graphics and overall system performance even more. It's possible that just adding 'hdmi_enable_4kp60=1' to /boot/config.txt will kill any secondary display (https://www.raspberrypi.com/documen...xt.html#hdmi_enable_4kp60-raspberry-pi-4-only). No, your displays don't just stop working unless you've modified something that's relevant.

As for LineageOS in general, for security reasons my builds don't support signature spoofing that is required for MicroG.

I'm pretty sure all the streaming services you've mentioned will require Google Play services to use the Android application (as also discussed before, use the regular mobile versions of the apps as Android TV versions tend to have more restrictions).

Correct GApps package for Android TV releases is linked in the FAQ. No, you can't use regular phone/tablet GApps packages on Android TV (or vice versa).

No, you can't install/update Magisk unless you use a custom installer I've provided (for reasons I've already explained you elsewhere).
[Raspberry Pi Original Development] gcrozatti:
I'm not able to pair my bluetooth remote... Is there something special to do?

Keeps 'paring...' and looping.
[Raspberry Pi Original Development] KonstaT:
Already asked and answered on this topic on several occasions. Please see e.g. https://xdaforums.com/t/dev-rom-uno...aspberry-pi-4-b.4516545/page-11#post-88771067

This will be fixed if/when there's another release as I've just switched to using different bluetooth stack that also works with the newer bluetooth firmware properly.

bluetooth: switch to btlinux · raspberry-vanilla/android_device_brcm_rpi4@18cc1bd

Contribute to raspberry-vanilla/android_device_brcm_rpi4 development by creating an account on GitHub.

github.com

rpi4: update bluetooth firmware · raspberry-vanilla/proprietary_vendor_brcm@47fae05

* https://github.com/RPi-Distro/bluez-firmware/tree/9556b08ace2a1735127894642cc8ea6529c04c90/broadcom * Fixes connecting BLE devices * Don't copy bt firmware as it's built into the kernel f...

github.com
[Raspberry Pi Original Development] gcrozatti:
Got it. Thank you!
[Raspberry Pi Original Development] Meitei:
I mentioned that my FO48U is the monitor where it has to work on, but that isn't set up yet.

The other two are just a working/setup environment I currently have, either for gaming or working.

I didn't make any changes to the config.txt at that point. Maybe some android changes, if at all.

I never said I would be running a dual-HDMI setup.

I coudn't find anything in the FAQ about that or microG in general not working, maybe I missed it? There is no way I am going to install GApps on there. Probably should've gone with the Nvidia Shield instead, at least there is a microG fork, so it should work in theory.

Well when downloading from apkmirror/apkpure I made sure to not get the tablet version but the regular one. Some apps, I think Crunchyroll and Disney+ only offered one version anyways.

Of course I remember this. But I wasn't sure if that only applied to the first installation or included updating as well, that's why I mentioned it again.
[Raspberry Pi Original Development] Meitei:
Btw after rooting with Magisk and with the root explorer app I was able to move the files to the root location. I had to restart once after giving permission, before I could move them.
[Raspberry Pi Original Development] gcrozatti:
Which files?
[Raspberry Pi Original Development] Meitei:
Those files.
[Raspberry Pi Original Development] KonstaT:
Well to be fair, you did mention three different displays and using different HDMI ports on the Pi so who knows. Exactly why I commented that no one can keep track of your setup. :)

MicroG not being mentioned anywhere would probably imply something. It's somewhat possible to list things that are supported but utterly impractical to list everything that isn't. However, it should be clearly stated where you got the MicroG in the first place that it requires running an Android distribution that supports signature spoofing (which is generally not the case).

If I understood correctly, your goal was watch various video streaming service in 4k. This is not possible on any OS on the Pi for the same reasons (DRM protection, Pi hardware is only capable of decoding 4k using H.265 codec which is not generally used for something like this). So yes, as I already mentioned before, you have selected the wrong hardware for the purpose.

You don't need Magisk or any app for this. IMO adb is the easiest way:

adb root
adb remount
adb push BCM4345C*.hcd /vendor/firmware/brcm/
[Raspberry Pi Original Development] RealZarazas:
I have a raspberry pi 4 4gb.

I am having a hard time getting this to work on a ssd. I tried using the USB Boot Bootloader you can flash from raspberry pi imager, but it didnt work. When I try to install it on an sd card, it loads fine, then I download mindthegapps to the downloads folder, shut down, connect pin21 to ground, because I cant find the option to boot into recovery from android in the developer options on android 13, flash gapps, do a factory reset, then restart it wont boot anymore, not even the lineage loading screen
[Raspberry Pi Original Development] KonstaT:
Please read the FAQ.

There's a FAQ section on how to boot from an USB device. You need to modify /boot/config.txt for this.

There's FAQ sections on how to enable advanced reboot options (different place on regular tablet UI and Android TV builds) and how to boot to recovery (also different on regular tablet UI and Android TV builds).

There's a FAQ section on how to install GApps. Correct GApps package for the build is linked in the FAQ (different package on regular tablet UI and Android TV builds).
[Raspberry Pi Original Development] amxcs:
Hello,

I'm very happy with everything, I just have one more problem.

If I turn off the TV while YouTube is running and after turning it on there is no sound. Only restart helps.

If I'm on HOME when I turn off and on my TV there is sound when I enter YouTube.
[Raspberry Pi Original Development] KonstaT:
Logcat?

At least you know a workaround i.e. what not to do. :)
[Raspberry Pi Original Development] Ophilon:
Anyone has a download link for TWRP 3.7.0_11-0 for Raspberry Pi 4?

There's no link on this page: https://konstakang.com/devices/rpi4/TWRP/

Tried with Chromium and Firefox, didn't find a download button.

Thanks!
[Raspberry Pi Original Development] ethical_haquer:
What do you need just the TWRP for?
[Raspberry Pi Original Development] Ophilon:
Is it already included in

lineage-20.0-20230505-UNOFFICIAL-KonstaKANG-rpi4-atv.zip

or

lineage-20.0-20230505-UNOFFICIAL-KonstaKANG-rpi4-atv-ota.zip ?
[Raspberry Pi Original Development] ethical_haquer:
According to here:

Also, the OTA build is for flashing in TWRP, after a build is already installed, to update it. If you haven't already flashed one of @KonstaT's LOS 20 builds, use the normal (non-OTA) one.
[Raspberry Pi Original Development] RealZarazas:
I read the FAQ sections for that. So to boot from an SSD I:

1. I take a sd card and flash from the rpi imager under Misc. Utility Images > Bootloader > Boot to USB

2. I put the sd card in pi the screen goes green, done

3. I flash lineageos with the imager on my ssd and edit the /boot/config.txt (comment out dtoverlay=android-sdcard and enable dtoverlay=android-usb)

4. I remove the sd card, insert the SSD and power the pi

The rainbow screen appears, then it gets black and nothing. the ssd keeps blinking, but nothing is happening.

Is it maybe possible that the SSD does not get enough power through the usb port of the raspberry?

Okay I tried another USB-port on my pi and now it seems to work :)

To activate advanced restart I had to search for "Power menu items" and at the bottom I could activate it. Under system > buttons its not possible for me
[Raspberry Pi Original Development] Ophilon:
Thank you! I'm just a lil retarded xD
[Raspberry Pi Original Development] ethical_haquer:
Phh. No problem! :)
[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 QPR3

switch to btlinux bluetooth stack

update bluetooth firmware to fix connecting BLE devices

convert light and health HALs to AIDL

update to Mesa 23.1.5

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

Android security patch level: 5 August 2023 (merged)
[Raspberry Pi Original Development] AlberoneRamos:
Great job, that ROM is running smoothly here! Any news on running TV versions of streaming apps on this ROM? I'm able to use the regular app versions, but it's not as good to use as the TV versions ;-;
[Raspberry Pi Original Development] ethical_haquer:
I'm still looking for a way to do just that, use the Android TV of apps with success. :ROFLMAO: In my case I'm trying to use the Android TV version of Prime Video and Hulu. You can my post here for what I've tried so far. Eventually I hope to find a solution. What apps are you trying to use?
[Raspberry Pi Original Development] AlberoneRamos:
Did everything you mentioned there 😅 . I also ran DRM Info on Android TV to check Widevine status, and it seems that it's working properly. Someone also mentioned Netflix whitelists devices for them to work w/ Android TV, so I'd say we won't see it working on ATVPi anytime soon. I'm out of ideas here
[Raspberry Pi Original Development] Zephael:
I wanted to pair Xiaomi Mi Box S remote to the PI4 using lineage-20.0-20230814-UNOFFICIAL-KonstaKANG-rpi4-atv, but the PI4 could not pair with it.

Mobile phone detected the remote, and was able to pair.

Can somebody please help me?
[Raspberry Pi Original Development] ethical_haquer:
I'm probably just going to start a new thread asking about it, because yeah, I really don't know what else to try.
[Raspberry Pi Original Development] lazareth123:
Am I being dumb but I how do I add apps to this?
[Raspberry Pi Original Development] ethical_haquer:
You can side-load APKs that you download. I honestly don't remember if this ROM comes with a browser, but either download Aurora Store (open-source Play Store replacement) with the browser if it comes with one, or download the Aurora Store APK on a computer and use a USB drive to move it over to the Pi. Then you can install any other APKs through Aurora Store on the Pi. Let me know if you have any questions! :)
[Raspberry Pi Original Development] lazareth123:
You're a star!

Got aurora store on it and getting all the apps on it thanks bud!
[Raspberry Pi Original Development] lazareth123:
@KonstaT thank you BTW loving this it's been a life saver getting plex on my pi4 using this!
[Raspberry Pi Original Development] thebestofall007:
Hello konstaT, I am having trouble getting your newest build to boot on my rpi4 8gb. It's stuck on the boot animation, and the same happens with the aosp build. I am using a generic (waveshare?) 5" dsi display where to get it to work I have to edit the dtoverlay=vc4-kms-v3d line to read dtoverlay=vc4-fkms-v3d, otherwise the screen stays blank. Would editing that line in that manner cause the build to not boot? Your twrp boots and touch works with this display, though. I have used this hardware setup on an OMNIrom 13 build and it boots fine with touch working and all.

I have also tried booting from a USB drive instead of SD, no go.

Also, how do I get the logs? I ask because the pi doesn't show when I run adb devices whilst connected to usb on my computer while the boot animation is running.
[Raspberry Pi Original Development] thebestofall007:
update: i got it to work by adding the line "display_auto_detect=1" to config.txt and changing "dtoverlay=vc4-fkms-v3d" back to "dtoverlay=vc4-kms-v3d" (that was causing it to not boot), as well as deleting /boot/resolution.txt. I found out about the display_auto_detect=1 line by comparing the config.txt's from omnirom and lineage and omnirom had that line, whereas lineage didn't. The same applied with his aosp build.
[Raspberry Pi Original Development] ethical_haquer:
Hello @KonstaT!

I was wondering if there was any possibility of using KernelSU on these builds. TIA.

EDIT: This question was answered here on GitHub.
[Raspberry Pi Original Development] amxcs:
After 1 month of suffering I am done with xiaomi mi stick 4k
[Raspberry Pi Original Development] KonstaT:
From the Play Store if you've decided to install optional GApps add-on (please read the FAQ).

Or you can sideload apps from .apk files using the built-in file manager or 'adb install', etc. You can of course also sideload any alternative app store (Aurora, F-Droid, Amazon, etc).

It's actually quite surprising that it even boots to the bootanimation with FKMS (this didn't previously work but I haven't even tested in years). It's actually HDMI-CEC HAL that prevents it from booting further as CEC device nodes are not present with FMKS.

As some of the generic/Waveshare DSI displays are compatible with the official Raspberry 7" DSI display, the easy solution would be to read the FAQ i.e. enable the option in Settings -> System -> Raspberry Pi settings -> Touchscreen. This would also mean that you have the display and touchscreen working in TWRP which you don't if you modify the configs manually.
[Raspberry Pi Original Development] ethical_haquer:
So, I just found out that the Hulu Android TV app runs just fine without rooting, GAPPS, or anything. It even plays the videos! However, I've noticed that there are issues with video decoding and encoding.

Below is a chart I made showing what happens with different configurations:

App	Option #1	Option #2 (NOTE: Audio was off when tested)	Option #3	Option #4	Option #5
Hulu Android TV	Throbbing after few seconds, sound continues, more throbbing.	Throbbing after few seconds, slightly more delayed than #1.	Plays few seconds, throbs few seconds, plays some more, than restarts video.	Weird pixelation issues.	Weird pixelation issues.
Prime Video	Plays, stops, loading symbol, video catches up to audio, stops, loading symbol, black screen, audio plays the whole time.	Plays few seconds, throbs, loading symbol, restarts video, and then repeats.	No issues.	Not tested.	No issues.

Table key:

Option #1:

FFmpeg software decoding, FFmpeg H.265 hardware decoding, v4I2_codec2 H.264 hardware decoding/encoding.

Option #2:

FFmpeg software decoding, FFmpeg H.264/H.265 hardware decoding, v4I2_codec2 H.264 hardware encoding.

Option #3:

FFmpeg software decoding, FFmpeg H.265 hardware decoding, v4I2_codec2 H.264 hardware encoding.

Option #4:

FFmpeg software decoding, Android software encoding.

Option #5:

Android software decoding/encoding.

Prime Video was the normal (non-ATV) app.

The same video was used in all the Hulu tests, and a different video was used for all of the Prime Video tests.

Also be aware that I tested Prime Video with an old black and white video, so that could be the reason why they are so different. However, the purpose wasn't to see which app did better, but to show how the video decoding and encoding makes it near impossible to watch anything.

@KonstaT, would logs be helpful in this situation? If so, how would I get them? TIA.
[Raspberry Pi Original Development] KonstaT:
Well, that's what logs are for. You would use 'logcat' exactly the same as any other Android device. ADB can be used over network or on the USB-C (you need powered USB-C hub or 5V on the GPIO). There's also third party apps for the purpose. On Raspberry Pi you can also serial console adapter for shell access.

You need to reboot your device for the video decoding/encoding option to take effect.

Video decoding performance depends on the codec the video uses. Pi 4's hardware is capable of hw video decoding H.264/H.265 codecs and that's also what my Android builds support. I don't know about these streaming services but e.g. YouTube has mostly switched to using AV1/VP9 these days so software decoding is used in those cases.

If you wanted to test video encoding performance, you would create a video e.g. by recording a screen capture or recording with the camcorder. Pi hardware only support H.264 hw video encoding that is also what is supported on my Android builds.
[Raspberry Pi Original Development] jeff862:
is it possible to connect rpi4b lineage 20 to a touch portable monitor..will touch, rotate vertical, horizontal work? iam going to use it as a piano note sheets reader ...please help
[Raspberry Pi Original Development] KonstaT:
Yes, it's possible to use USB touchscreens (i.e. HDMI is used for display interface and USB for touch interface).

There's option to rotate the display in Settings -> System -> Raspberry Pi settings.
[Raspberry Pi Original Development] jeff862:
Do i need a vnc software to connect the rpi4b lineage 20 to portable monitor? Or it connect to USB port of the touchscreen portable monitor natively thru setting of the lineage 20? Thanks

Do i need a vnc software to connect the rpi4b lineage 20 to portable monitor? Or it connect to USB port of the touchscreen portable monitor natively thru setting of the lineage 20? Thanks
[Raspberry Pi Original Development] KonstaT:
Please read your display's manual if you're unsure on how to connect it. In all likelihood you'll connect it with an HDMI cable like any other display _and_ USB cable if you want to use the touch functionality.

This has nothing to do with VNC of course.
[Raspberry Pi Original Development] effectivexero:
Hi, KonstaT, I've managed to successfully install the Android TV variant on my Pi with a 1080p display and MindTheGAPPS, and I wanted to make you aware of, or ask about a solution to an issue with scaling of elements on the home screen. I adjusted text scaling to see if that would fix anything, but it didn't.

How it should look:

How mine looks:

What can be done about this?
[Raspberry Pi Original Development] KonstaT:
My builds set the display density based on screen resolution. To disable this, you would need edit /vendor/build.prop and remove/comment out 'ro.sf.auto_lcd_density=true'. After this, to change the density you would adjust the value of 'ro.sf.lcd_density' property (also in /vendor/build.prop).

Or you can just use 'wm density xxx' on command line.
[Raspberry Pi Original Development] effectivexero:
Alrighty then, will do. Thank you very much.
[Raspberry Pi Original Development] effectivexero:
What unit is the wm density command using? PPI? PPI-squared? DPI? And how would I find that for my specific display? It's a Vizio E321VL, 32" class. Official specifications say it has a max resolution of 1366X768 but it's at 1080p resolution right now, according to the TV itself.
[Raspberry Pi Original Development] KonstaT:
DPI. It's set to 240 by default so try something else. 320? 160?
[Raspberry Pi Original Development] OzOneOz:
Hi KonstaT.

I'm using Pi 4 With Lineage OS 20 as a replacement for a phone in a vehicle to run Android Auto. Is there a way I can safely shutdown the Lineage OS using purely the RPi4 GPIO pins as a headless device. The regular power button only seems to bring up the power menu, which I won't be able to see when the Pi has no screen. I would like to be able to safely shutdown Lineage OS before I cut the power in order to prevent drain on the vehicle battery. Powering back up is not a problem as I can just turn on the power supply via a relay with the vehicle ignition.
[Raspberry Pi Original Development] ethical_haquer:
As the OP states:

From the FAQ:

"

Q: How to create a DIY hardware power button?

A: You can send power button events by connecting GPIO21 to ground.

You can enable the feature by using a settings option found in Settings -> System -> Raspberry Pi settings -> Power button."
[Raspberry Pi Original Development] OzOneOz:
I had already tried that, but it only brings up the power menu or turns the screen off. Yes you can shutdown from the power menu by using the UI, but I am running without a screen so I need a way to shutdown/power off the device without having to interact with the screen.
[Raspberry Pi Original Development] KonstaT:
There's an old script for direct GPIO shutdown.

[DEV][ROM][UNOFFICIAL] LineageOS 17.1 (Android 10) for Raspberry Pi 4 B

Here’s my build of LineageOS 17.1 for Raspberry Pi 4 Model B and Pi 400. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only. Pi 4 model with at least 2GB of RAM is required to run this build. Important! This...

xdaforums.com

That flashable zip won't work with the new TWRP version that is included in the latest builds. I've also since moved init.d scripts from system partition to vendor (/vendor/etc/init.d/). You can still extract the script from the zip and push it manually.

adb root
adb remount
adb push 30gpioshutdown /vendor/etc/init.d/

or

su
mount -o rw,remount /vendor
cp path/to/30gpioshutdown /vendor/etc/init.d/
chmod 755 /vendor/etc/init.d/30gpioshutdown
chown root:shell /vendor/etc/init.d/30gpioshutdown
[Raspberry Pi Original Development] OzOneOz:
I had found that script and tried it, but I put it in the wrong place. This did the trick.

Thanks for the help!
[Raspberry Pi Original Development] testbenutzer2:
Hallo, installed the latest build and it works without Problems ( for me). I'd Like to know if there is any dvb-s2 USB reciver that works with your build. Got one that works with Android Tv 10 & 11 Nokia Streaming Box but at the moment im running 13. Maybe i will test an older build later.
[Raspberry Pi Original Development] KonstaT:
There's no built-in support for any TV tuner hardware. I don't have any hardware to develop/test.

AFAIK there's some third party Android apps to support some specific TV tuner USB dongles.
[Raspberry Pi Original Development] testbenutzer2:
Ok thanks for your reply.
[Raspberry Pi Original Development] erdosain9:
HI.

Im having problems with a PS3 bluetooth controller.

I found that you say:

I download the drivers but cant find the directory, this is what i have inside /vendor

What i could try?

Where i need to copy the BCM4345 files?

Thanks

(Thanks for your work!)

EDIT: Im using SIXAXIS APP and geting this logs:
[Raspberry Pi Original Development] KonstaT:
Not relevant with the latest build. I've switched to entirely different bluetooth stack in 20230814 build (as mentioned in the changelog).

Logcat? Impossible to say what is the issue without seeing appropriate logs.
[Raspberry Pi Original Development] erdosain9:
Thanks

i edit the post and put a logcat. I need to put more?
[Raspberry Pi Original Development] KonstaT:
You would need to start by describing the issue as "having problems with a PS3 bluetooth controller" really quite doesn't.

There's nothing bluetooth related in the logcat snippet and I have no idea what "SIXAXIS APP" is or how it relates to anything.