yashsingh1/xdaforums huggingface dataset:
[Shield Android TV Android Development] Kladderadatsch:
You can install LineageOS on the 2015, 2017 or the 2019 version.

I personally do not use the Playstore. But there are plenty of alternatives to install apps without restrictions on the Shield. E.g. Aurora Store, Aptoide or via adb.

You just have to keep in mind that many apps are not optimized for AndroidTV. In this case you need a mouse and keyboard to control them optimally. Or you can try the tab version of LineageOS.
[Shield Android TV Android Development] Not_Rich:
You guys are awesome.

One last question I have a basic PlayStation controller could I use that, the instructions for installing Lineage mentions the official shield controller.
[Shield Android TV Android Development] Steel01:
A playstation controller likely will not work for controlling the bootloader or recovery. I've not tested to know for certain it does not work, however. Nvidia's docs only mention the shield controllers and a keyboard as supported in the bootloader.

Playstation controllers should work on Lineage atv normally, however. A DS3 will work wired, (pairing a ds3 for wireless is painful, no matter where you use it). A DS4 works wirelessly, I've used that for steam in home streaming recently. I don't have keylayouts for DS5, nor do I have one to test with. So that would probably pair, but the button mapping would be wrong. For the tablet/mobile Lineage target, I don't think the ps keymappings are installed, so they probably won't work right. I should probably figure out how to add those.
[Shield Android TV Android Development] maathimself:
I have tried to install this on 2017 shield. I am able to boot but after reboot the remote is disconnected. Also, when I connect the keyboard and mouse and try to go into settings to pair the remote again, every settings option takes me to the wireless networks page. I have tried reinstalling, wiping system partition and reinstalling, flash twrp and reinstalled. I was able to disable wireless, reboot then when I assigned a name for the device I was able to navigate to the other settings option but after reenabling wireless and rebooting I was no longer able to get settings back. Any ideas? Let me know if you need any details from me.
[Shield Android TV Android Development] Steel01:
Unfortunately, this is a known issue with pepper, the 2017 remote. I have not been able to figure out why it does this. Other remotes, such as the triangle 2019 remote do not have this problem.

This keyboard thing is not something I've heard before, though. Has anyone else seen something like that? Pretty sure others have used a keyboard recently and not had such trouble. Not certain what difference could cause this. I will note that atv is not designed to work with a mouse, keyboard only would work better.
[Shield Android TV Android Development] Not_Rich:
The instructions for booting recovery mention this

With the device powered off, plug the included Shield controller into the USB-A port on the back of the device. Next, hold the A button and B button while plugging the device into power, continue until a menu is displayed. Tap the Y button until “Boot recovery kernel” is selected. Now, press the A button to select this option.

Has anyone found a way of using a regular wired keyboard instead of the official controller, sorry I am very new to this
[Shield Android TV Android Development] dcarvil:
Yes, I was able to do it using a regular keyboard. I used a wireless keyboard, but wired should also work. As I recall, you just use the A and B keys on the keyboard. It was a year ago, so I don't remember the details. The timing is tricky, and it took many attempts to get it to work. There are instructions somewhere on the nVidia site. Sorry, I don't remember where I found them.

I may be remembering it wrong, but I think it worked only when the shield had been powered off. Another way to get into recovery mode is "adb reboot recovery".
[Shield Android TV Android Development] Steel01:
NVIDIA Support

nvidia.custhelp.com

This is the official instructions from nvidia for accessing the fastboot menu. Per this, yes keyboard does work.
[Shield Android TV Android Development] FigliDiGP:
Steel01: Another big thank for your work. All is working fine for me.

Or more simple, you have the advanced reboot menu who offer the possibility.

I use USB keyboard all the time. For 17.1, 18.1 and i don't have any problem. Except the layout we can't change (for azerty in my case).
[Shield Android TV Android Development] fonicmaxxim:
Thank you for this, easy to install and seems to work great thus far (and way smoother than stock!).

I got two questions:

1) Did someone figure out how to change the layout for USB keyboards? There seems to be no menu option for that.

2) Is there a way to use the infrared sender of the NVIDIA Shield TV Pro 2019 remote? On stock, I was able to use IR to control my old Sony receiver.
[Shield Android TV Android Development] sgcko7:
Hello all,

I have LineageOS on my Nvidia Shield TV 2017. So far almost all is working better then expecting. Just two minor issues.

1. When connected to any bluetooth audio devices like bluetooth headphones or speaker there is sound shuttering. This was not an issue with OG Android. Anyone else have this issue? Any way to solve this? PS: Controllers are working fine.

2. Due to Android 11 my emulator PPSSP - PSP cannot access storage. I have on another android TV running android 11 SlimboxOS but there ppsspp was able to access storage. Any ideas how to solve?

My shield TV main purpose is media consumption Kodi, Netflix, Youtube, *****ute etc. So solving that annoying sound issue would be great. Thanks in advance.
[Shield Android TV Android Development] Kladderadatsch:
I also had problems with Bluetooth. However, only with one box. After a Bluetooth update to version 1.1 in LineageOS last year, they were gone. The sound no longer stuttered.

To access your memory you need the `addon-docsui-18.1-signed.zip`.

You have to search in the previous posts. @Steel01 has linked it. Then install this .zip with twrp.
[Shield Android TV Android Development] sgcko7:
So this addon-docsui-18.1-signed.zip should fix the issue?
[Shield Android TV Android Development] sgcko7:
Addon is working. Now I can access my storage. Great!!!
[Shield Android TV Android Development] Not_Rich:
Just got my 2017 Shield, which gapps package should I use, arm64? android 11 since 11.1 is not on their website.

Assume it's just "adb sideload open_gapps-arm64-11.0-pico-20220215.zip" after you have flashed the rom itself.
[Shield Android TV Android Development] Steel01:
Redirecting…

The lineage foster builds are arm64, yes.
[Shield Android TV Android Development] Not_Rich:
This is awesome, there is one minor issue, the right mouse button on the old Minix U9 was assigned the back function, like clicking the triangle on the navigation bar. Is there any way of doing this on this rom maybe an app will do it.
[Shield Android TV Android Development] brick00444:
Have you tried button remapper?
[Shield Android TV Android Development] Zacharybinx34:
Does this work with streaming apps at 4k?

Disney +, Netflix, Amazon Prime, etc.,
[Shield Android TV Android Development] Not_Rich:
Tried it and the right mouse button on my Logitech M185 is not recognized, I plugged in the nvidia controller and the first button I pressed on it was recognized.

Does anyone use a mouse with this where the right mouse button does something, and which mouse.
[Shield Android TV Android Development] AP12345:
Hi I am planning to get a Nvidia shield pro 2019. I want to install lineageos and root it but would like to have all HDR & 4k codecs still supported and use the AI upscaling feature. Is this all possible in one and if not what alternatives are available?
[Shield Android TV Android Development] Steel01:
4K video should work in everything except Netflix. For some reason I still have yet to determine, netflix 4k videos are corrupted, so I have to disable secure hevc (h265) to make netflix fall back to 1080p. Normal hevc plays fine in kodi and otherwise. HDR works as expected.

AI upscaling only works on the 2019 models and only if the bootloader is locked. So that feature would not work on Lineage, even if the plumbing was implemented. Dolby vision has the same restriction.
[Shield Android TV Android Development] AP12345:
And there is no way to hide this unlocked bootloader?
[Shield Android TV Android Development] Steel01:
Not that would be legal to ship in Lineage. And even if you do find one, there's still some plumbing code in the stock Nvidia os that won't be in Lineage for upscaling.
[Shield Android TV Android Development] grumpi1:
Hello

Do i need a nvidia controller to install lineage os on the shield?

What to do if no nvidia controller is available?
[Shield Android TV Android Development] FOLOL2011:
hi

nivia shield 2019 pro : wired USB keyboard

push A+B ( A where its on qwerty kb so A is Q on a azerty kb ) then plug power
[Shield Android TV Android Development] Steel01:
Note to people having disconnect issues with pepper, the 2017 remote: I think this is fixed now. At least, I can no longer reproduce the disconnect. The remote stays connected on screen off, and reconnects on reboot. Thanks to @npjohnson for finding the config option that fixed this. Unfortunately... the monthly build of foster ran last night, so the fix won't be available until next months build.
[Shield Android TV Android Development] .kaputnik.:
Oh, that's awesome :)

Config option you say. Maybe a stupid question, but does the fix require recompilation, or could it be applied to the current build through ADB or something?
[Shield Android TV Android Development] Steel01:
https://review.lineageos.org/c/LineageOS/android_device_nvidia_foster/+/349168

Definitely needs recompiled. It's a build time config define in the bluetooth native code.
[Shield Android TV Android Development] .kaputnik.:
Ah I see, I'll just wait for the next build then. Thanks :)
[Shield Android TV Android Development] grumpi1:
how do i install apk files on LOS?

I copied the apk file to the usb stick, but the apk is not even displayed in the file manager. For test purposes I copied a txt file into the folder, but this is not displayed either. The problem seems to be some security feature.
[Shield Android TV Android Development] .kaputnik.:
I'm always doing it from my laptop over ADB.

There are plenty of tutorials on setting up ADB on the web, if you haven't already. Connect the USB port furthest from the HDMI port to an USB port on the laptop. If your laptop only got USB A ports, you'll need an USB A male to male cable, which is a bit uncommon. I've butchered a couple of old USB cables and soldered one together myself.

You can also use ADB over network if you like.

Once you got the ADB connection set up, install the apk with:

adb install filename.apk

If it's an update to an already installed app, you might have to add the -r switch.
[Shield Android TV Android Development] Steel01:
Followup on the 2017 remote issue. The change I thought was a fix was actually not a fix. Turns out that the remote works fine on the newer 2019 models (mdarcy and sif), but has problems on the older models. So when I was testing on mdarcy, there was no problems. But when I later tested on foster_e_hdd, the remote still has disconnect problems. Which... means I'm back to having no idea whatsoever what the issue is.
[Shield Android TV Android Development] RayfG:
Hi, I successfully installed Lineagoes latest nightly on my Nvidia Shiel 2017

What ever I try, i can not sideload any apk. E. type missmatch blablabla is stated. Looks like something is missing like Google stuff.

But i want to use it without google just with Kodi, if possible.

If you want more infos about the mistakes, i can support it tomorrow. At the moment I am fed up, because I tried to install latest pico gapps on it and now it stuck on boot. I Give it another try tomorrow.

Greetz.
[Shield Android TV Android Development] .kaputnik.:
Oh well, it'll be figured out at some point :) In any case, there are plenty of other working control options until then.

Running LOS without Gapps on a 2017 Shield. Sideloading Kodi 19 through ADB has been working perfectly for me.

No idea where I read it, but iirc Google upped the lowest supported Android version requirements a while ago, which explained why the latest service releases of Kodi 19 weren't available on Play. Kodi 19 supported too old Android versions. This was to be "fixed" in Kodi 20.

If you're trying to sideload Kodi 20, you might want to verify that it really supports Android 11, even though it's not terribly old yet. Also make sure you get the 64-bit version.

As for your problems installing Opengapps, if you still want it, are you sure you got the version for Android 11/ARM64? Tried to help some guy earlier in the thread and made the same mistake. Current releases are LOS 18.1 (Android 11), not LOS 17.1 (Android 10) as the OP might have led you to believe :)

Note by the way that Opengapps will install Google's launcher with ads in the background, which at least in my opinion defeats one of the main advantages of LOS.
[Shield Android TV Android Development] RayfG:
Thank you very much for the quick reply. I gave it a new try seconds ago. I took the recovery and the nightly from the first side of this thread. I have nvidia shield 2017 no ssd . i installed recovery named lineage-18.1-20230214-recovery-foster.img Next i sideloaded lineage-18.1-20230214-nightly-foster-signed.zip. Result after trying to sideload kodi-20.0-Nexus-arm64-v8a.apk i get the message:

E:Signature verification failed.

E:error 21

Installing update

E:Failed to find update binary META-INF/com/google/android/update-binary

Dunno what to do...........
[Shield Android TV Android Development] .kaputnik.:
Found where I read that thing about compatibility:

https://kodi.tv/article/kodi-matrix-19-5-release/

Guess that's your answer. Looks like we're stuck on Kodi 19 for now, unless there's some alternative build, compatibility hack, etc. Haven't looked into it at all. Waited with upgrading on the Shield, since I'm using a central library database and run Libreelec - which is based on Kodi 19 - on a couple of devices.
[Shield Android TV Android Development] RayfG:
hey, mate. thank u very much, but that did not solve my prob here. unfortunately i stuck with the same message on any apk. tried to flash even version 19.0.perhaps i ll try tomorrow again. for now, i am devastated.......
[Shield Android TV Android Development] .kaputnik.:
Yeah, a good night's sleep is never wrong when things go awry :D

Suggest you factory reset and format /system from recovery, do a fresh install of LOS without Gapps, and then try sideloading Kodi 19, once you're back at it tomorrow. Running exactly the same setup; Shield 2017, latest LOS, no Gapps, and Kodi 19. Can't see any reason why it wouldn't work on your system too :)
[Shield Android TV Android Development] Steel01:
kodi 20 works fine on 18.1, fwiw. That error sounds like a corrupted download. A copy of the apk that I've installed over adb has a md5sum of e107960ac91fbcf7f775cfbc641efeaf and a size of 70MB. Double check that the file is valid.
[Shield Android TV Android Development] sgcko7:
Hello, with LOS on my Foster Im facing issue with Bluetooth devices. I'm often using Bluetooth headphones but not usable with this rom. Sound is shuttered, certain devices are not able to pair. Any fix for that? Egerothind else is working just nice.
[Shield Android TV Android Development] grumpi1:
Where can i still get LOS 17.1 mdarcy (shield tv pro 2019)?
[Shield Android TV Android Development] Not_Rich:
I'm really enjoying Lineage on the Shield, I am struggling to get an Apple 1048 keyboard to work any recommendations on this or can someone suggest another.

It wouldn't be as much fun without the occasional issue.
[Shield Android TV Android Development] FigliDiGP:
This repo should be sure. I've checked digest for one, it's be the same than original.
[Shield Android TV Android Development] FOLOL2011:
Thank you but I have this error :

You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe
[Shield Android TV Android Development] FOLOL2011:
Hi guys,

I'd like to change the sound level (ex: 50 %) at startup. What is the config file that contains this parameter please ?
[Shield Android TV Android Development] faralway:
Thanks for sharing
[Shield Android TV Android Development] Zacharybinx34:
I’m thinking of switching from stock os on my shield pro, but I am wondering if Netflix, Disney +, Amazon video, etc, work at HD resolutions.

Also, this comes with the full Google play store, correct?

And what about any bugs/not working features?
[Shield Android TV Android Development] Zacharybinx34:
What is the TAB of Lineage OS? And can’t we just side load the android TV versions of an app?
[Shield Android TV Android Development] Not_Rich:
I don't know about hd resolutions and don't use Disney etc. My shield is connected to a 32" 1080p television, on some YouTube video's there is an option for 2160 resolution, but for me anything over 1080p is pointless.

It comes with Aurora store, playstore needs to be installed when you flash Lineage, I used the phone version, since I have some paid apps. When I installed Lineage, I had no idea what Aurora Store was.

As for bugs, now I have usb support sorted ( see my other post ) not really many problems, I had an issue with a few apps going portrait layout.

But I fixed that mostly in developer option's smallest screen width, changing it to 600 sorted out the apps I use, but doesn't work for every app.

It is the tablet style interface as opposed to the tv one, which is what the stock interface is like.
[Shield Android TV Android Development] Zacharybinx34:
With the TAB one, can you install the full play store?
[Shield Android TV Android Development] Not_Rich:
Yes, I used MindTheGapps-11.0.0-arm64-20220217_100228.zip, phone version

Redirecting…
[Shield Android TV Android Development] Zacharybinx34:
Is it possible to just install the normal play store over the normal Shield tv os?
[Shield Android TV Android Development] Not_Rich:
I have no idea I purchased my Shield 2nd hand and used stock for 1 day before I flashed this rom.
[Shield Android TV Android Development] Big Dumb Object:
You've been rolling out builds of Android 12 for some time now. I realize that these builds are still not ready for regular use, but what exactly is the obstacle for the official release?
[Shield Android TV Android Development] npjohnson:
AFR (adjustable frame rate) is broken.

And there is currently no way to turn it off so anyone with an AFR set up would be unable to watch the vast majority of content
[Shield Android TV Android Development] Big Dumb Object:
Auto Frame Rate is the most valuable enhancement for TV boxes in the Android 12. How ironic it becomes the main problem here.
[Shield Android TV Android Development] npjohnson:
I know right lol
[Shield Android TV Android Development] Royal.Bengal:
Have to share my experience with 2017 model. Until I installed the tab version, my Shield was unusable! Tired different official versions, LineageOS builds through two years time. Even several tips and tricks, and all possible settings. My main reason now days with Shield is to use it with Kodi. Random Android crashes most of the times during using Kodi. But now after installing the Tablet version everything just changed. Able to use Kodi for days and weeks. Sometimes a few Kodi crashes but only the app not the whole OS! Kodi crashes are probably caused of the addons I use. What can be the difference between all this available Android versions for this box? Just one bug still there: the bluetooth remote..
[Shield Android TV Android Development] Steel01:
Hmm, I think you might be the first person to report this here. I've had instability on my darcy (2017 satv) for a while, but since no one else ever reported issues, I suspected my unit had hardware damage. But it'll randomly reboot in the middle of videos. Mostly in kodi, but every once in a while in smarttube tv or youtube tv. I recently got a bit more info into what the issue might be, but I'm wary of merging the change. I'm wanting to put a while into testing that it doesn't cause worse problems. But maybe if I do decide it's safe and merge the change, it would solve your problem as well.
[Shield Android TV Android Development] Royal.Bengal:
Thanks for your response. Are there any documented differences between the two variants? Haven't used that long but the TAB version seems a bit sluggish than the AndroidTV version and a bit slower WiFi (same AC access point, same distance and position)! Are the kernels (boot.img) same for the both?

I would me more than happy to test if any patches are available for the Android TV version.

Thanks in advance.
[Shield Android TV Android Development] FOLOL2011:
Hi

This is what I did in order to get decent perf on my NSTV 2019 pro :

- Lineageos Full android (not ATV, TAB LineageOS17_mdarcy_tab ) + MindTheGapps + Magisk ( or Magisk Delta)

- tweaked the "io sched" to deadline and decrease buffer to 256 with 3c toolbox at bootstart (3c tb a must to manage/kill apps on this Low-Memory device ), vm.swappiness to 60, cpu gov to performance

- use rotation control pro to fix landscape for all apps

- magisk (root), f-froid (great apps provider) , newpipe sponsorblock, aurora store (to replace G playstore) , adaway (block ads, malware with hosts file) , youtube revanced + inotia00 microG ,

- use appManager ( MuntashirAkon github version, really great app, contribute if you can) to Disable/Freeze all com.android.google.X apps, google playstore, goo play services, G services framework, G partner, G market feedback etc.... google bloatware ...

- Use only MuntashirAkon appManager to manage apk installaton ( the standard packageinstaller is very bad and can fill root fs quickly, check space in /data/user_de/0/com.android.packageinstaller/no_backup/ )

- AFwall+ firewall to block outbound connections

- Kiwi browser + ublock origin + violentmonkey ( or Bromite or Vivaldi Brower )

- Lucky Patcher ( Disable apk signature)

- Titanium backup

- RootExplorer, Solid Explorer, X plore

- Termux ( from f-droid )

- BS Player Pro, XPlayer video player, MX Player

- Kodi

- touchpad for big phone tab

- autostarts ( from f-droid )

I didn't try foster_tab

WIFI is stable, 3 apps in background is OK ( Free RAM around 1.6 GB for apps, YT or a browser can take 300-600 MB )

BTW : I tried to extend the internal storage with good ultra fast certified Sandisk USB key and I had a very bad experience : instable, freeze, maybe you'd find a good/working solution

So now I use a big SSD disk as a Removable USB storage

BTW2 : app swapper root to add swapfile 700 MB (priority 32767 by default so first) on internal storage, then vm.swappiness to 10. ( Leaving swap on internal, maybe better on external fast usb key ? )

Edit file in /vendor/etc/fstab_*darcy to lower zram0 from 512 to 256M (priority -1 by default so last) so more ram for apps, relying first on swap, second zram.

Finally after testing, the best for my device is to disable zram ( comment the line in fstab_xxxx ) or no swap (I don't use swapper) . No zram, no swap :) so more memory, less IO/CPU load and more internal storage
[Shield Android TV Android Development] Royal.Bengal:
Thanks for a detailed report, just for curiosity: Where did you get a full Android version?
[Shield Android TV Android Development] FOLOL2011:
Hi Royal.Bengal

I downloaded from https://wiki.lineageos.org/devices/mdarcy_tab/

it's Los 17 but now, it seems not available anymore

so use Los 18 : https://wiki.lineageos.org/devices/foster_tab/
[Shield Android TV Android Development] Royal.Bengal:
Thanks, I'll look into that..

Update: your link goes to the tab version I already been using..