yashsingh1/xdaforums huggingface dataset:
[Shield Android TV Android Development] dcarvil:
I have a 2019 Shield running Android TV SW version 8.2.2(32.6.509.0). It is rooted, with blocked OTAs and blocked ads. I have a launcher that does not display any recommendations. I have a pi-hole DNS server that blocks a lot of queries (about 2000 per day) to app-measurement.com, google-analytics.com, and amazon.com.

I am very happy with this setup, except for all the queries generated that are blocked by pi-hole. Would installing LineageOS prevent these queries from being generated? Also, would I encounter any problems with Plex if I moved to LineageOS? I have both a Plex server and a Plex client on this box, and Plex is my main application.

TIA for any information.
[Shield Android TV Android Development] zecabra:
@Steel01

it was a while since i last updated my Lineage Tab version, today i had some free time to do the update, but I found out that with the update I lost the ability to click and drag with the air mouse in the browser, Google has removed this ability in Chrome and WebView, but in Firefox based browsers it is still possible. I tried to revert to an older version of Lineage but all the ones available for download already have this change, I can't find a place to download even older versions, out of curiosity I installed the Lineage Tv version to see if the problem also existed, but in this version it works fine.

Is there any place where I can download older versions of lineage tab? if not, is there any way for me to revert this change in my system?
[Shield Android TV Android Development] jfromeo:
No love for Shield 2019 non-pro (tube)?

I see it excluded from LOS compatibility (2015/2015 pro/2017/2019 pro).

Is there any hope, apart from soldering an USB port?

Thanks.
[Shield Android TV Android Development] FOLOL2011:
Hello guys,

Did someone manage to do this ?

Mixed extenal SSD adoptable and removable storage ( sm partition disk:8,0 mixed XX ) ?​
[Shield Android TV Android Development] darkknight7:
@pepenador were you able to resolve the disney+ issue? I just noticed this today on my 2019 pro
[Shield Android TV Android Development] :
I installed the Lineage 18.1 on my Nvidia Shield 2017, It is much better than the stock firmware. However, I am unable to enter the recent application menu. I tried the double home button, I connected physical keyboards and tried all the buttons, didn't work. Did any one experience that? Is there any way to access the recent apps menu?
[Shield Android TV Android Development] FOLOL2011:
thank you

Another option is to use Button Mapper to run the root commands ( I use the win button remapped)

MacDroid is much more high level soft of course, with so many possibilities
[Shield Android TV Android Development] awibabau:
What's the best version of lineage for a 2019 shield pro and what is this gamma problem all about, can you share pics? thanks ;)
[Shield Android TV Android Development] mrhamed:
@awibabau I tested v17 and It isn't usable and it has many bugs.

Can anybody share some experience about v18 on 2019 device please?! report any bugs?

I had an issue: I turned on the NSTV while the TV (LG 4k) is off, it's not full screen!

View attachment 5541627

Is the issue fixed in the LOS v18 release? Can anybody test it please?
[Shield Android TV Android Development] cordial.note:
Not a bug, just a question about others' experience w/LineageOS and Plex.

Does anyone use Plex and have audio passthrough working in LineageOS? It works for me via Shield Experience, but not on LineageOS.

--

LineageOS version: 18.1

LineageOS Download url: https://mirrorbits.lineageos.org/fu...neage-18.1-20221020-nightly-foster-signed.zip

Gapps version: http://downloads.codefi.re/jdcteam/...MindTheGapps-11.0.0-arm64-20220217_100228.zip

Shield TV: 2015 Non-Pro

* Unlocked bootloader

* Installed lineage recovery img

* Installed lineageos

* Installed mindthegapps

* Fist boot into lineageos

* Initial setup -- look at the clean, fresh, unbloated OS 🎉

* Installed plex

* Configured audio passthrough via HDMI in Plex

* Play 4K movie with Atmos sound -- receiver shows "multi-in"; audio is being transcoded to Opus 7.1

--

* Reverted to stock (9.0.0 seems to be the only download)

* Locked bootloader

* First boot into stock rom

* Initial setup -- so much crap/ads everywhere 😭

* Upgraded to latest shield experience

* Installed plex

* Configured audio passthrough via HDMI in Plex

* Play 4K movie with Atmos sound -- receiver shows Atmos logo.
[Shield Android TV Android Development] MagicMedlar:
Hi!

First of all, sorry if this sounds stupid but, how can I select "Confirm" in the bootloader mode?

There is no option to navigate, no buttons and wireless controller doesn't work.

Nvidia Shield TV Pro (2019)

Thanks for you time.

EDIT: Ok, I found it.

Plugging an USB keyboard BEFORE entering bootloader mode.

Afterwards, unplugging it and using an USB mouse instead into TWRP recovery.
[Shield Android TV Android Development] gnoober64:
Can someone help? Is it possible to completely switch off bluetooth and wifi with this ROM? I use USB input exclusively and want all wireless communication off, including the remote. Thanks!
[Shield Android TV Android Development] Kantilo:
Hello,

I would be interested in buying an nvidia shield, do we lose dolbi vision, hdr etc, by installing lineageos?
[Shield Android TV Android Development] Steel01:
Okay, I fixed darcy on the official builds. As such, I'll not release a side build, just wait for builds next Tuesday.

Play Movies: I don't use that myself, so I don't often check it. Been hearing reports both hear and on shieldtablet about it, though. I tested earlier and it was working fine. Tested last night and it isn't. Hmmm... I'll see about taking a look at it when I have time.
[Shield Android TV Android Development] ThrillerAtPlay:
Ugh and I had some free time this weekend to try it out. I guess I'll compile it and try to sideload again. If I still have a problem I will try to post the error but the log flashed off the screen before I could copy it down. I am probably doing something dumb.

I should be compiling this anyways. I may need to make modifications to get kodi nightlies to be set as the default launcher.
[Shield Android TV Android Development] ThrillerAtPlay:
Sideload error

Installing zip package '/sideload/package'
Target:NVIDIA/lineage_foster/foster:7.1..2/NJH47F/a0ed692318:userdebug/test-keys
detected filesystem ext4 for /dev/block/APP
count not detect filesystem for /dev/block/UDA assuming ext4
mount: failed to mount /dev/block/UDA at /data:Invalid argument
umount of /data failed; no such volume
Patching system unconditionally...
E1001: Failed to update system image.
E:unknown command [log]
E:unknown command [log]
Updater process ended with ERROR: 7

EDIT: I tried this again with a few different TWRP versions all with the same issue. There was another error I did not notice before. "cannot mount /data and unable to find crypto footer". I am guessing that the nVidia Shield experience is encrypting by default or maybe the oem unlocking. It will not let me wipe data either.

EDIT: I had to wipe using "fastboot -w". Afterwards, I was able to sideload onto darcy and boot into LineageOS. I'll play around with it later.
[Shield Android TV Android Development] ancapgamer:
Forgive me if this is a weird thing to say, but with all the work you're obviously putting into all this, it might be a good idea to open a Patreon (or maybe just post a public cryptocurrency address for donations). I for one would be happy to at least tip you something as a thank-you.
[Shield Android TV Android Development] Steel01:
This has been suggested before. But honestly, I really don't want the donations. The only time I would consider it would be for buying new devices to work on. And Nvidia themselves is actually helping me out there, so no need at all. Thanks for the sentiment, though.
[Shield Android TV Android Development] Steel01:
The build that ran today boots darcy properly. Finishing setting mine up now to go back in my living room as the media center. I'll be keeping it on official, so hopefully I'll catch any problems like this more quickly if it happens again.

Edit: Seems I broke Netflix again, though. :sigh: One of these days...
[Shield Android TV Android Development] ThrillerAtPlay:
Oh good. I thought it was something I did. I removed the Leanback launcher, added XBMCLauncher with Kodi v18 test build. There are some quirks with those but couldn't get Netflix to play (nor Amazon Video but that is likely something else).

I am used to running LineageOS on my phone without gapps, does any one know if the pico gapps package is enough for Netflix as it has a GMS dependency?
[Shield Android TV Android Development] Steel01:
I don't think normal gapps will work properly. This is an ATV build, so you need tvstock from opengapps or the equivilant from elsewhere.

If you're trying the normal Netflix app, it should work to a point. Like, I believe it will fallback to widevine L3 and play at 720x480. The ATV app will fail by just showing a black screen while playing the audio. I'll play with it sometime after Thanksgiving, that's something I personally use, so I've got greater incentive to make it work.
[Shield Android TV Android Development] ThrillerAtPlay:
I was trying to keep the gapps and other proprietary software to a minimum however I know that microg will not work with Netflix and DRM encrypted streaming services require their own apps. I did get Netflix for Android TV from the Yalp store and what you described is what I saw; a black screen with audio playing. When trailers would autoplay, I could hear the audio but the screen would show still adds for other Netflix shows.

I am guessing that the ATV gapps would have the HDMI-CEC settings? I think that is really the only thing I could not find the original nVidia Shield Experience version had.

EDIT: it looks like this is something built into a rom.
[Shield Android TV Android Development] cowbud:
Did I understand correctly that this ROM does not yet support 4k? I definitely couldn't get it to work on my 4k TV so I want to see if I am doing something wrong or we just aren't there yet.
[Shield Android TV Android Development] ThrillerAtPlay:
Did anyone else have difficulty checking/unchecking options in the standard LineageOS SetupWizard? I could only do so after plugging in a usb mouse.
[Shield Android TV Android Development] DJarkIV:
I really need a Darcy build. There doesn't appear to be any other ROM for the 2017 model at this point. I'm really looking forward to trying Linage on the Shield.
[Shield Android TV Android Development] ThrillerAtPlay:
I am running the Foster build from last week on Darcy. This week's build should also work.
[Shield Android TV Android Development] DJarkIV:
That's great news. Did you flash it with TWRP (unofficial) or sideload it?
[Shield Android TV Android Development] ThrillerAtPlay:
Yes. Checkout post #54. Both the official and unofficial should work.
[Shield Android TV Android Development] DJarkIV:
Perfect, I see. I'm not sure I want to fastboot flash TWRP. I may attempt to just fastboot boot TWRP instead keeping stock recovery. I read somewhere people were having trouble reverting to stock system ROM after flashing TWRP and 3rd party ROM. Have you ever successfully reverted to factory images?
[Shield Android TV Android Development] ThrillerAtPlay:
I was not able to flash recovery and have a feeling you can't on darcy (or at least currently). This has me curious to how or even if LineageOS update will work and suspect I will need to do it manually when I do. CORRECTION: Not sure what my issue was before but I can flash TWRP v3.1.1.1 official to recovery and LinageOS updates work perfectly.

Before you do anything, ANYTHING, make a backup. The "how" to make a back up you will need to do some investagating into. To unlock the bootloader and are able to boot into TWRP, you will be forced to do a factory wipe ....which....sucks as you can't use TWRP to do a backup. I flashed the nvidia recovery image which is done using fastboot, there are even helper scripts that simplify it.

If you are hesitant on flashing, I would suggest holding off for now. This is a bit more involved than any phone I have flashed and some functionality like HDMI-CEC is missing not to mention the streaming services are not working and do not have a 4k TV to test that resolution. Also there is a nasty warning when you boot without the bootloader is locked. I bought my shield two weeks ago to consolidate my Roku box and Kodi machine so I have those to fall back on while getting darcy set up the way I want it.
[Shield Android TV Android Development] DJarkIV:
Thanks for the tips. I too just purchased my Darcy. The only app I have on here right now is Kodi so I'm not really worried about making a backup. I did however download the Factory Image from NVIDIA in the event I want to explore a ROM then revert to stock. I'm actually a Pixel/Pixel 2 developer so I'm really used to controlling everything from adb/fastboot commands and also not truly flashing TWRP but just fastbooting to it. Basically I know what you mean about appearing to be harder than the average phone to flash a ROM but I'm comfortable with it. In fact, we also get that nasty warning about the bootloader being unlocked on the Pixel 2 so that's nothing new. I found a pure Android Nougat ROM for Foster/Darcy on another forum. May give that a go until some of the kinks are out of Linage. But the bugs you mentioned aren't too big of a deal to me and completely usable if that's the extent of them.
[Shield Android TV Android Development] Steel01:
Twrp should flash fine on darcy. Works just fine. Though, I suppose technically that's a local build with newer stuff I haven't pushed yet, but official should flash just fine as well. If there's an issue, please post a bug report on the twrp thread.

So, here's my current experience on darcy. Kodi works perfectly. PlayStation Vue works as long as root is disabled before running it (only need to flip the toggle in dev settings, so easy enough to switch back and forth). Netflix runs, but video is black (I know I fixed that once, dunno how I broke it back). Bluetooth controllers pair and work fine on boot. Only have a 1080p TV, so any 4k issues don't affect my main use case. So, for the media center I want to use my darcy for, everything except Netflix just works.

And hmmm... It really has been a while since I've run a tablet mode unofficial build. Ought to do that soon, but I've been busy. Might have time Saturday, will have to see.
[Shield Android TV Android Development] crnkoj:
The "old" wifi controllers on foster still don't work properly? The remotes however do if i understand correctly?
[Shield Android TV Android Development] .kaputnik.:
Trying out LOS 18.1 nightly build 20221020 on my Shield TV 2017 (darcy). Everything is great so far, except for the small detail that the remote (the flat model bundled with Shield TV 2017) stops working a short while after first boot. Before that it works perfectly though. Also got an USB keyboard connected, which starts behaving strangely at the same time. The escape button stops working for going back in the settings menus, ctrl+alt+backspace still works though.

When trying to unpair/pair the remote, it'll just stay at "unpairing" indefinitely.

Did the mistake of installing OpenGapps the first try, which contained Googles "new" ad-ridden launcher. Took me another try to realize you had to format the /system partition in addition to doing a factory reset to get rid of the Google stuff. The ads wouldn't load at first boot though, so got enough time in the second installation for the remote problem to reoccur.

So, basically I've reinstalled LOS three times, and the remote has behaved exactly the same way each time. I believe the last installation to be clean LOS, did a factory reset + formatted the system and cache partition from the recovery before installing. Got nothing but LOS and Kodi installed afaik now.

Came from Shield Experience 7.2.3, but let it upgrade to 9.1 and after that 9.1.1 before installing LOS. Figured it would be a good idea to install the latter from a matching Android version. I ran the remote and controller updates bundled with the new SE version before installing LOS, the remote should be on the latest firmware.

I'm far from an expert when it comes to Android stuff, but should be able to figure out how to dump logs etc if necessary.

Any ideas? :)
[Shield Android TV Android Development] awibabau:
And the always HDR problem is still there? And the color bug? Is everything fine on video playing department? Meaning color accuracy and similar stuff like audio passthrough?
[Shield Android TV Android Development] .kaputnik.:
No problems at all with video or audio so far at least. Colors looks the same as with SE 7.2.3. But then again, installed LOS yesterday and only tested a few vids here and there, maybe my statistical basis leaves some to be desired :)

So far, the remote control thing is the only problem I've noticed.
[Shield Android TV Android Development] Steel01:
Answering a few of the recent questions:

HDR in general works. Dolby Vision does not. Dolby is extremely restrictive when it comes to their technologies. Even on shield experience, dolby vision only works if the bootloader is locked. Do note that passthrough audio for dolby atmos and such does work fine, however. It's only local decoding of dolby IPs that does not work.

Regarding the remote disconnecting: I've had some intermittent issues with remotes taking time to reconnect, like after a reboot. I've not had any issues with a remote just outright disconnecting, however. The closest issue I've had is friday (the triangle remote bundled with the 2019 devices) deciding to pair with a different device semi-randomly. That's not an issue unless you're like me and have a dozen shield/tegra devices in the same room, however.

ESC as back: Support for that is queued up to be merged soon. Hopefully it will make it in before the next foster build is done.
[Shield Android TV Android Development] .kaputnik.:
Ah, thanks for addressing this :)

Saw this post now. Would guess it's the same problem I've experienced. Didn't have my USB keyboard plugged when flashing LOS, used the Shield controller to get into the bootloader menu (didn't learn until afterwards that you can use a keyboard for that aswell). I did however plug the keyboard back in when configuring Kodi after each reflash, which could explain why the remote worked for some time before going out of business.

I'm at sea for the next two weeks, but will do some experimenting with the keyboard once I'm back home again, to try to confirm if there are any conflicts between the remote and the USB keyboard. Unless of course you haven't already ironed it out by then :)

Got a Nintendo Switch sitting next to the Shield. Will also check if there's some pairing weirdness going on with it, just in case.
[Shield Android TV Android Development] .kaputnik.:
Back home, done some testing.

Simply unplugging the USB keyboard and rebooting the Shield does no difference. The remote is still dead, and can't be unpaired.

There's no pairing going on with the Nintendo Switch as far as I can see.

I've of course updated to the 20221115 build too.

Is it possible somehow to reset the input device configuration only, by deleting some config file or something? Would be nice not having to factory reset the Shield to do further testing.
[Shield Android TV Android Development] slutexpress:
I have a weird issue, where I absolutely cannot flash any recovery or boot into any recovery with this version of my bootloader, it's giving me this error constantly....

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot lineage-15.1-20210

910-UNOFFICIAL-microG-foster-recovery.img

downloading 'boot.img'...

FAILED (data write failure (Unknown error))

finished. total time: 5.001s

My bootloader version when in fastboot on my Nvidia Shield TV foster 2015 15gb is this version:

Version: 24.00.2015.42-t210-9257ab6b

I've tried with different recoveries, official LOS ones, TWRP ones, and then microG versions, nothing flashes/boots and I always get the same FAILED error.
[Shield Android TV Android Development] Adromir:
You are trying to boot the device with a recovery image...
[Shield Android TV Android Development] mrhamed:
You should install ROM with TWRP.

Download TWRP:

For device 2015/2017: https://twrp.me/nvidia/nvidiahshieldandroidtv.html

For device 2019: https://twrp.me/nvidia/nvidiashieldandroidtv2019.html

Install TWRP:

#fastboot flash recovery twrp.img
[Shield Android TV Android Development] brick00444:
Ok, I'm going to try this. I do have a couple questions. In the first post it doesn't say anything about using TWRP but I'm guessing I need it to flash the build and gapps. Is that true? If so, where can I find TWRP for "darcy" or do I use the "foster" TWRP? And lastly what version of gaps is working for everyone? Sorry for the questions but want to make sure this old man does things right haha. Thanks for any help.
[Shield Android TV Android Development] .kaputnik.:
The OP instructions assume you use the LineageOS recovery, which is available next to the rom image in the download links. You can of course use TWRP instead if you want, there's a release thread in the forum.

We'll need to know what model of the Shield TV you have to determine if you need the foster or darcy version.

As for Opengapps, you'd want the tvstock or tvmini version for ARM64/Android 11.0. Note that both versions install Google's nowadays ad-ridden launcher. You'll get the animated Disney+ ads in the home screen that probably led to your decision to try LOS in the first place...

Apparently MindTheGapps doesn't install Google's launcher, haven't tried it myself though. The only thing I'd want from Google apps would be Play Market, but it's easy enough to just sideload the few apps I want over ADB instead.
[Shield Android TV Android Development] brick00444:
Ok, I flash the firmware and can boot no problem but when I flash gapps it goes into a bootloop. I tried flashing the firmware and gapps before rebooting with same results. I've tried the version for android 11 since when I try to flash the android 10 version it errors.
[Shield Android TV Android Development] .kaputnik.:
As a rule of thumb you have to flash Gapps right after LOS, without booting LOS in between. Would guess that's why your system ended up in a boot loop.

Try doing a factory reset and format /system from the recovery, then reinstall LOS and and gapps for ARM64/Android 11.0.
[Shield Android TV Android Development] brick00444:
got it to work after factory reset, format/system. had to use android 11 gapps. Thank you for your help.
[Shield Android TV Android Development] .kaputnik.:
Ah, of course, mixed things up thinking this was LOS 17.1 - the OP says the latest stable version is. The latest releases are 18.1, so yes, you need Gapps for Android 11. Good thing you figured it out yourself :)
[Shield Android TV Android Development] brick00444:
Now I have to figure out why when streaming video it plays for about 5 seconds and then pauses
[Shield Android TV Android Development] gnoober64:
can you advise on whether the LOS rom enables switching off of wifi and Bluetooth? I'd just use USB input.