yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] KonstaT:
What you've done looks just fine.

hdmi_* options shouldn't have effect when KMS driver is used. Setting the resolution relies on the EDID information from your connected display and you can use /boot/resolution.txt to force a resolution from the supported ones. Some have said that they've needed to change these as well but I'm not sure if that's really the case.

USB touchscreens should work without any modifications. Does the touch functionality work on other Linux distros/Android devices in general?

Grab e.g. 'dmesg' output plugging it in to see what kind of device it's recognized as.
[Raspberry Pi Original Development] jweaks:
The Slate was an Android device to begin with. Still works in fact, just can't be updated. That's why I bought the Pi once I knew I could make it go Android. I suspect that the HDMI input doesn't support the touch. I'll try to find the "dmesg" output. Thanks.
[Raspberry Pi Original Development] NTGDeveloper:
Just set it up with Google Apps and I really like it! I was running a Pi 4B with 4GB of RAM. It seems pretty stable overall, and I only really had issues when I set the resolution to 4K and the interface seemed pretty laggy. Other than that, everything seemed good and I even flashed the partition resize zip so that I get my full 32GB SD Card. I did have to set my DPI manually because the default 240dpi was too low for my 50inch TV. Other than that, everything seems to be running smoothly and I set the device up as if it was a real Android TV device and seemed to run pretty well.
[Raspberry Pi Original Development] Alif Ilhan:
Just a question please. How is RPi4 capable of running android 10 and 11 when it doesn't have a vulkan driver present? As I know, android 10 and 11 require to have vulkan support to be able to run it. And can I run android 11 on other devices without vulkan? Please reply
[Raspberry Pi Original Development] KonstaT:
No, it's not in any way technically possible to have touch over HDMI. You'd need to have some separate interface for this e.g. USB. Consult to your devices user manual how to use or is it even supposed to support touch on external devices.

No, Android doesn't require to have Vulkan drivers. I highly doubt OpenGL is going anywhere in future Android versions for quite some years either.
[Raspberry Pi Original Development] NTGDeveloper:
My system is now starting to randomly reboot and turn on my TV, presumably with HDMI-CEC. Any idea of the cause? I don't want to turn CEC off on my TV
[Raspberry Pi Original Development] Alif Ilhan:
Sorry for disturbing you with off topic questions, and this will be the last irrelevant question I will ask you. As you said the above,

Does that mean I will be able to run android 11 on a Mali T720 based device? I will use panfrost mesa for the OpenGL counterpart and if available in the future I, will try to use the Vulkan for this hardware. But at present, no support for vulkan for mali t720. But Panfrost mesa OpenGL is really stable on T720.

I don't need full 64Bit version of Android 32bit will do just fine. But is it possible to run android 11 64bit without vulkan? Should I carry on what I am doing?
[Raspberry Pi Original Development] KonstaT:
Issues running with 4k resolution have been discussed in this thread before and it's certainly not recommended at this point.

Sorry, I couldn't even possibly know without seeing any logs. If you're using 4k resolution, that's probably expected.

Yes, it is possible to run Android 11 64-bit with OpenGL (without Vulkan) and I have no idea where you're even getting that it wouldn't be.
[Raspberry Pi Original Development] NTGDeveloper:
I would be happy to send in some logs. How would I collect logs for you to view? Is there something that I have to do in ADB or install an app?

I also never clarified this, but after I saw the laggy 4K experience, I almost immediately switched back to 1080p.

The only real modifications that I made with my system was flashing the zip provided on your website to expand the data partition, and I also changed the DPI of the screen using "wm density 320" and everything seemed okay after that.
[Raspberry Pi Original Development] Alif Ilhan:
Vulkan 1.1 will be required on all 64-bit devices running Android Q or higher

www.androidpolice.com

Well, this article got me confused. Thanks for your answers, it was really helpful. And the thing is, will the graphics condition on RPi4 will improve anytime? Though the GPU is nothing good, I don't think the GPU is this weak as it shows in Android. And why there is only 32 bit builds of android on RPi 4 and not 64 bit?
[Raspberry Pi Original Development] KonstaT:
Serial console, adb, logging apps whatever suits you. Google search is probably quicker/easier source of information than me explaining it.

I haven't checked Android CDD (https://source.android.com/compatibility/cdd) if this is the case for R but unless you are a chipset/device manufacturer looking to ship Google Play certified devices this is not the kind of requirement you would need to worry about.

There is 64-bit Android builds for the Pi 4. I haven't released any yet because of the feature set and hardware I've wanted to support so far.
[Raspberry Pi Original Development] Alif Ilhan:
Thanks for the info, I will then keep going on my work
[Raspberry Pi Original Development] NTGDeveloper:
Alright. I'll give it a shot and report back. Thanks!
[Raspberry Pi Original Development] tb2668:
So it seems like the overscan settings work in TWRP but not in Android.
[Raspberry Pi Original Development] cem_ari:
Hi,

I have Sure GPS Evaluation board. I want to keep using as USB GPS. I was using in Windows.

I can see it in devices when i connect it. But can't be fixed. I tried with GPS Test, GPS Fix etc apps.

Should i install something?
[Raspberry Pi Original Development] onukomer:
hi all! is there anyone running raspberry pi with argon one case?

i can't set the cooler, i want to use is like ubuntu mate. how can i install argon's script?
[Raspberry Pi Original Development] KonstaT:
TWRP doesn't use V3D driver and KMS that's used for hw accelerated graphics in Android. hdmi_* options have an effect there (and also if you switch to using SwiftShader software renderer). Overscan options work just fine in Android as well as I just tested this myself.

You can use

su
cat /proc/cmdline

to check margin_left, margin_right, margin_top & margin_bottom values.

Commenting out disable_overscan=1 (or setting disable_overscan=0) will set overscan to 48 (as documented for CEA, https://www.raspberrypi.org/documentation/configuration/config-txt/video.md). overscan_left, overscan_right, overscan_top & overscan_bottom will set additional overscan on top of 0 or 48 depending on if disable_overscan is set.

You can use some system properties to configure the GPS HAL if necessary (https://github.com/lineage-rpi/android_hardware_gps/blob/lineage-17.1/README.md). I've only tested it with my U-Blox 7 and I think it's been reported working with some other U-Blox versions as well.

No, you can't use Argon's scripts on Android - you would need to write your own.

Someone contacted Argon and they reference this (https://github.com/Argon40Tech/Argon-ONE-i2c-Codes). This build also includes i2c-tools so you can enable it as in the document.
[Raspberry Pi Original Development] cem_ari:
I have added two lines to build.prop

ro.kernel.android.gps

ro.kernel.android.gpsttybaud

And tried any variations like changing device name and baud rate but no way.

My USB GPS is CP2102 USB to UART Bridge controller. May be don't have related driver in your ROM?
[Raspberry Pi Original Development] KonstaT:
There is already a line in /system/build.prop to select the device (ro.kernel.android.gps=ttyACM0). This of course needs to match the device your device uses (/dev/ttyACM0 in this case). Check e.g. 'dmesg' output plugging in your device.
[Raspberry Pi Original Development] cem_ari:
I can't see anything about USB GPS device in dmesg output but i see tty, ttyAMAO and ttyS0 with "ls dev". So i wrote ttyAMAO and ttyS0 to ro.kernel.android.gps but hadn't get it work.

Edit: I'm sorry. dmesg gives that new usb device found etc and gives product: CP2102 USB to UART bridge controller but not gives dev name.
[Raspberry Pi Original Development] KonstaT:
ttyAMAO is Pi's bluetooth and ttyS0 Pi's serial (enable_uart=1 in config.txt). Supported USB GPS dongles use ttyACM0.

That device would appear as ttyUSB* but apparently I don't have USB serial drivers built-in to he kernel (https://github.com/lineage-rpi/andr...ch/arm/configs/lineageos_rpi4_defconfig#L4245). You would need to compile the kernel with required drivers enabled (USB_SERIAL & USB_SERIAL_CP210X), set some permissions for /dev/ttyUSB0 in /vendor/ueventd.rc (see GPS section there), and set ro.kernel.android.gps=ttyUSB0. Still no guarantees that it would work even with those modifications.
[Raspberry Pi Original Development] NTGDeveloper:
I can't seem to attach the files, so I will just provide a link to a Google Drive folder that I made with a logcat and a kernel log as well. https://drive.google.com/drive/folders/1Z0obI442ojin6Z_Z_7D8R6I9wROdYHYQ?usp=sharing

I'm probably just going to start from scratch since it may be possible that the partition resizing may have messed something up and the Google Apps may also have something to do with it. But, if I don't have to, then I won't.
[Raspberry Pi Original Development] risant:
will there be support for hardware decoding and encoding be release? wifi stability for lineage 17.1?
[Raspberry Pi Original Development] KonstaT:
Huge logs. What am I supposed to be looking for here? Is there supposed to be a reboot at some point because I can't see it?

Even the new forum seems to have a perfectly working search function. Hw video decoding/encoding has been discussed here more than once already.

I haven't experienced any wifi stability issues so unfortunately I have no idea what you mean by that (logs?).
[Raspberry Pi Original Development] NTGDeveloper:
It probably just means that it's an issue with my Pi or card. I'm probably just going to reflash the image because maybe the partitions ZIP could've messed that up for me if I'm the only one with issues. I'll reply if I have an issue like this again to see if it is possibly a build issue.

I might also just wait for a new build to see if that fixes anything potentially. Thanks for taking a look though :)
[Raspberry Pi Original Development] cem_ari:
Hi. I have ElmScan ELM327 USB. I'm using it for 10 years in my previous Windows based car pc. It is a engine checking device. It's plugged to car OBD2 port and communicates via USB. There is some apps in Play that named Torque, Car Scaner ELM etc as UI.

I can't try with Raspberry Pi now because car installation not completed yet. So i have installed Lineage 17.1 to my Samsung tablet and wil try. This ROM

Do you think it will work? And is that mean it should work in your ROM, if it work in Samsung tablet?

I know that i can buy some cheap bluetooth scan device. But i will use bluetooth as handsfree calls and music etc. Also it's very good to see everything about engine as online.
[Raspberry Pi Original Development] KonstaT:
No, my resize zip is not likely cause anything like this.

General advice it to use proper scard (at least class 10) and power source (3A in case of Pi 4). Updates rarely just somehow magically fix things.

Sorry, no idea. I know people have used some USB dongles for that purpose with similar apps. This is just something that you need to test and see for yourself since you have the hardware.

It working/not working on some device doesn't necessary imply the same for other devices. E.g. kernel is entirely device specific (and if there's some drivers missing, I can do something about that for this build at least). On the specs it's said to support Android so chances should be pretty good.
[Raspberry Pi Original Development] imprezakd:
Hello, for work needs, I have developed an APP, can I use it in digital signage ? in a public place. thanks~
[Raspberry Pi Original Development] KonstaT:
Commercial use is not allowed with the builds that are publicly available. I.e. if you/someone else is making money out of using a copy of this image, then no.
[Raspberry Pi Original Development] KonstaT:
Sensors. :)
[Raspberry Pi Original Development] Anish Nayak:
Hi

Audio stuttering when gapps installed . Any fix . Otherwise everything is simply wonderful
[Raspberry Pi Original Development] Anish Nayak:
Any fix??
[Raspberry Pi Original Development] KonstaT:
Spamming several places (here, my site & sending me private messages) with the same question is not going to get you answers any faster - only quite the opposite! I would also like to remind you that no one here owes you any answers, fixes, or updates.

No, there's no fix that I'm aware of. I haven't been able reproduce such issue and I haven't seen anyone post any appropriate logs (logcat in this case) either...
[Raspberry Pi Original Development] freddy0000:
Sorry if this as already been asked I cant see the search option for this since the new update. Anyway I just wanted to know if you can replace the raspberry pi camera with a USB one or can't this be done
[Raspberry Pi Original Development] KonstaT:
There's a search option in the top bar.

Like it says in the OP official Pi camera modules & UVC USB webcams are supported. It's also listed under 'Issues' that stock camera app is not working but many third party camera apps work. So, it depends on the camera hardware and the camera app. You need to have the USB webcam connected when you boot the device for the Android camera HAL to detect it.
[Raspberry Pi Original Development] jeff862:
Any fix ... no hdmi sound ... you tube apps slow loading
[Raspberry Pi Original Development] KonstaT:
Yes, use a display that reports it supports audio. I've been told that with some displays it helps if you power on the display some time before powering on the Pi.

Sorry, no idea what you even mean with the "you tube apps" thing...
[Raspberry Pi Original Development] jeff862:
Hello .. i used 64gb microsd card for lineage 17.1 but the storage detects only as 8gb .. is this a bug?
[Raspberry Pi Original Development] KonstaT:
Please read the FAQ section where this is discussed.
[Raspberry Pi Original Development] Papek_SVK:
Hi, I can't get working GApps on ATV build. I tried it several times with different Android builds, different GApps version, also tried tvstock and tvmini but every time I quit from recovery mode, the RPI will stay stuck on Lineage boot screen.

I also tried standard Lineage 17.1 with GApps and it's working without issues.

Device is RPI4 with 4G RAM, no mods, no OC. Using HDMI closer to USB-C, original PSU. Any idea what am I doing wrong?
[Raspberry Pi Original Development] KonstaT:
Usually this happens when you install the wrong gapps package for the build (Android TV gapps to regular Android build or vice versa).

Have you followed the gapps installation instruction in the FAQ? What are the exact names of the files that you've used (both the LineageOS image and gapps package)?

Edit. There was couple of other reports on my site as well so I tested this myself. Latest tvstock gapps are broken again (reported it here https://github.com/opengapps/opengapps/issues/873#issuecomment-748861162). Another user reported that 20201216 version is working so use that for now.

Edit2. It's been fixed and open_gapps-arm-10.0-tvstock-20201222.zip works fine.
[Raspberry Pi Original Development] Papek_SVK:
edit: tried tvstock 20201216 and it's working! thank you

damn I must have been very unlucky, I tried all combinations mentioned below and none of them worked.

---

I have followed instructions step by step. After installation, enabled Root access, local terminal and rebooted to TWRP. In TWRP, install gapps, in wipe menu performed factory reset and restared to system. I'd say there is nothing to screw up.

I tried RPI Imager and balenaEtcher - no difference except balenaEtcher is much faster. Found another microSD card but no difference.

Files I'm using

lineage-17.1-20201121-UNOFFICIAL-KonstaKANG-rpi4-atv.img

open_gapps-arm-10.0-tvstock-20201219.zip

But I have tried combination of older builds, newer gapps and vice versa but no luck

lineage-17.1-20200815-UNOFFICIAL-KonstaKANG-rpi4-atv.img

open_gapps-arm-10.0-tvstock-20200831.zip
[Raspberry Pi Original Development] risant:
any solutions for 3.5 mm audio out no sound... and bluetooth audio distorted.. please help
[Raspberry Pi Original Development] BrandonHortman:
Installed on a 4gb Rpi4, Rpi official touchscreen, 64 GB SanDisk ultra, and Canakit psu (3.5 amp)

Used a waveshare 7in screen and cable to enable swiftshader.

It works, though the wifi is in a strange loop of trying to connect and failing to connect.

It claims that my router that reads 200mbps on my phone, is out of range.

I attempted to use my phone as a Hotspot, it just says failed.

It seems to crash very often also.

Runs good with Linux though ofc.

Thank you very much
[Raspberry Pi Original Development] williamparker:
Thought this wifi issue was a one-off problem with me.

Wifi just seemed to have a mind of its own. It would not connect to my 2 routers or my android phone (all at 2.4 Ghz). If I switched to 5 Ghz on my phone, it did connect.

The routers would connect if the Pi4 board felt like it then for 2 or 3 days no amount of coaxing worked.

I whipped out an ethernet cable and it flew. But was still an inconvenient tether.

So I dug and found that the on-board antenna, on one side of the board was responsible for the whimsical performance.

I decided to use the proverbial poke, put my finger on the 2 capacitors around the antenna, and magically the wifi worked. Did that twice or thrice, and now wifi works every time.

So turned out the finger works wonders - Again! ;-)

But seriously those capacitors are so small and the tracks so tiny, I wouldn't be surprised if things went wrong. Not a very wise choice of components. And judging by this recurrence a quality control issue on Rpi end.

Anyway - as an insurance I have in stock a u.FL (SMD) connector and a SMA to u.FL cable and rubber duck antenna in case the on board setup goes kaput.
[Raspberry Pi Original Development] KonstaT:
Please read the FAQ on how to use 3.5mm jack for audio output.

I can't reproduce any "bluetooth audio distorted". Logs?

Hmm, so which display did you use (official or waveshare)?

You don't need to switch to SwiftShader with HDMI displays (only the official that uses DSI connector). There's some stability issues when using SwiftShader on Android 10 which I never really bothered to look into. If you must use SwiftShader for some reason I'd recommend using LineageOS 16.0 build instead. It uses SwiftShader by default and it's much more stable there.
[Raspberry Pi Original Development] vj4:
Hello,

I'm trying to use your resize script on omni as recommended on the thread and it fails.

Welcome to fdisk (util-linux 2.32.95-1c199).

Changes will remain in memory only, until you decide to write them.

Be careful before using the write command.

Command (m for help): Partition number (1-4, default 4):

Partition 4 has been deleted.

Command (m for help): Partition type

p primary (3 primary, 0 extended, 1 free)

e extended (container for logical partitions)

Select (default e):

Selected partition 4

First sector (262146-500118191, default 5046195): Last sector, +sectors or +size{K,M,G,T,P} (5046195-500118191, default 500118191):

Created a new partition 4 of type 'Linux' and of size 236.1 GiB.

Command (m for help): To create more partitions, first replace a primary with an extended partition.

Command (m for help): The partition table has been altered.

Failed to remove partition 4 from system: Resource busy

Failed to add partition 4 to system: Resource busy

The kernel still uses the old partitions. The new table will be used at the next reboot.

Syncing disks.

495071997

61883995

resize2fs 1.44.4 (18-Aug-2018)

resize2fs: No space left on device While checking for on-line resizing support

Filesystem at /dev/block/sda4 is mounted on /sdcard; on-line resizing required

old_desc_blocks = 1, new_desc_blocks = 30

1

Any tips on how I can fix this? I think its due to the disk size
[Raspberry Pi Original Development] jaba_cz:
Can be composite video (CVBS) at AV jack enabled?
[Raspberry Pi Original Development] KonstaT:
I wouldn't recommend using it with anything else than what it was meant for. At least you're entirely on your own if you do.

It fails long before that. Maybe the data partition was not even unmounted for some reason or because of issues with encryption as I've read it's broken in Omni's TWRP?

I think it's been reported that it works with SwiftShader.

As for hw accelerated graphics, I'm currently skipping the composite video connector so there's no way to even test anything without recompiling hwcomposer (Pi 3 had issue with this). Pi 4 no longer enables the composite video by default (you need to enable it with config.txt params) so I could bring it back if someone want to test something. I have no plans to do any work on this. I don't think I even have any hardware I could use to test. Also no idea if composite video is even supported with KMS driver used with hw accelerated graphics in this build.
[Raspberry Pi Original Development] jaba_cz:
I will get a try. I want to use it with old car display which can read CVBS or RGB. So accelerated graphics is not the priority.
[Raspberry Pi Original Development] jaba_cz:
So far - got analog RGB @480p using HDMI -> VGA adapter, which should be OK for the car screen.

Now .... when I try installing MagicSK zip, the TWRP complains about not mounting /system.

For the reason I have in mind, I definitely need root to modify system.

Any hint to get MagicSK or SuperSU flashed?

thanks

:)
[Raspberry Pi Original Development] KonstaT:
Please read the FAQ on how to enable root access.
[Raspberry Pi Original Development] cnico7:
Hi,

I installed this AndroidTV on my Pi 4 and it works successfully.You did a good job, thank you.

I am facing a problem with Prime Video : the app installs correctly but runs nothing with an error message when a video is played.

Is it normal ? Do you have any workaround for this or a plan to have it work ?

Or is it related to my setup ? How can I diagnose it ?
[Raspberry Pi Original Development] KonstaT:
I don't have a subscription to Amazon Prime Video so there's been no reason for me to look into this. Raspberry Pi is not an Android device to begin with so it's never been certified to run Android. Many secure apps (banking, streaming protected video content, etc) rely on various checkd to decide whether device is to be 'trusted' (e.g. Google's SafetyNet API). There's nothing I can or want to do about this (i.e. spoof these checks).

Amazon Prime Video has been reported working by users and I've also seen some YouTube videos where's its running. You'll likely need to sideload a different version of the app. Some working versions are mentioned e.g. in this post (http://disq.us/p/2918wiv).
[Raspberry Pi Original Development] TheRedDeveloper:
I "accidentally" Spoiler content hidden. turned on 'Simulate Secondary Screen' and now I am stuck on the secondary screen... I need to somehow boot into safe mode to turn it off, how do I get into safe mode without using the UI? If there would be a way to get into Recovery without the UI, I could boot into safe mode from there. The only way I found to actually boot from my keyboard i found is by turning of the Power use another Operating System Spoiler content hidden. shutdown Spoiler content hidden. from there, press Fn + F10 to boot my Pi400, but if I hold Fn + (F5 -> F5 = Power) + (F1 -> F11 = VolumeUp) + (F2 -> F12 = VolumeDown) whilst doing so, nothing happens, it will just boot normally...