• We are moving to xdaforums.com!

    Posts made between now and when the migration is complete will not be carried over.
    You will be automatically redirected once the migration is complete.

[ROM] [OFFICIAL] LineageOS for the Shield Android TV

Search This thread

Royal.Bengal

Senior Member
Nov 23, 2007
77
1
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..
 

Steel01

Recognized Developer
Dec 14, 2008
1,357
2,904
Random Android crashes most of the times during using Kodi.
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.
 

Royal.Bengal

Senior Member
Nov 23, 2007
77
1
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.
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.
 

FOLOL2011

Senior Member
Jan 24, 2013
76
7
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
 
Last edited:
  • Like
Reactions: mr.wrinw

Royal.Bengal

Senior Member
Nov 23, 2007
77
1
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 )
Thanks for a detailed report, just for curiosity: Where did you get a full Android version?
 
Does anyone use a mouse with this where the right mouse button does something, and which mouse.
Lol looking back this is such a stupid post, unknown to me at the time, the right mouse button brings up context menu's in apps, there are big changes in Android 11 compared to 7 which the Minix box runs, I was unaware of at the time.
I bought a Logitech M650 mouse which has a couple of extra buttons, they go forward and back in web browsers and one button goes back in apps like clicking the triangle.

I am really liking this tab version, thanks to those that made it possible.
 
Last edited:
  • Like
Reactions: FOLOL2011

Royal.Bengal

Senior Member
Nov 23, 2007
77
1
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?
Reporting back: I installed your latest build on my Shield 2017, nice UI but unfortunately similar OS crashes like 18.1 versions. The only stable ROM ever for my need (mostly Kodi) is the TAB version of 18.1. Any chance for getting one TAB version of your builds? I would be very likely to test and report back..
Well done and thanks in advance..
 

Steel01

Recognized Developer
Dec 14, 2008
1,357
2,904
Reporting back: I installed your latest build on my Shield 2017, nice UI but unfortunately similar OS crashes like 18.1 versions. The only stable ROM ever for my need (mostly Kodi) is the TAB version of 18.1. Any chance for getting one TAB version of your builds? I would be very likely to test and report back..
Well done and thanks in advance..
I merged the change I talked about last week. The next official 18.1 build will roll on the 14th. Hopefully that will fix your problem and you'll be able to use the 18.1 atv release. Nolens 19.1 builds will also have this whenever the next release builds.
 

Royal.Bengal

Senior Member
Nov 23, 2007
77
1
I merged the change I talked about last week. The next official 18.1 build will roll on the 14th. Hopefully that will fix your problem and you'll be able to use the 18.1 atv release. Nolens 19.1 builds will also have this whenever the next release builds.
Thanks a lot, I'll hold on to that release and wait until next update..
Any chance for the bluetooth remote bug to be fixed as well?
Keep up this good work
 

Royal.Bengal

Senior Member
Nov 23, 2007
77
1
Downloaded "lineage-18.1-20230514-nightly-foster-signed.zip", recovery and boot. Clean install with deleted partitions data/cache, even system to be sure. Unfortunately two reboots yesterday, noticed that both times during browsing files in Kodi - Youtube addon. Thought just to report back. Any idea why it happened as it did always before even you merging new patch? Patch that you thought might help. The tab version is stable and solid as rock, but lack off HDMI CCE and a few slow-/ slaggish...
Thanks in advance..
 

Royal.Bengal

Senior Member
Nov 23, 2007
77
1
Downloaded "lineage-18.1-20230514-nightly-foster-signed.zip", recovery and boot. Clean install with deleted partitions data/cache, even system to be sure. Unfortunately two reboots yesterday, noticed that both times during browsing files in Kodi - Youtube addon. Thought just to report back. Any idea why it happened as it did always before even you merging new patch? Patch that you thought might help. The tab version is stable and solid as rock, but lack off HDMI CCE and a few slow-/ slaggish...
Thanks in advance..
Forgot to mention MindTheGapps if it's any valuable information!
 

CurbThePain

Senior Member
What firmware are we all running on? I cant get the current two foster_tab builds to boot on 9.1.1, 9.1, or 9.0 (dev or normal recovery image). I use the 2019 pro (mdarcy) model. Am I missing something? Or are current builds just incompatible with the 2019 pro model?
 

npjohnson

Recognized Developer
What firmware are we all running on? I cant get the current two foster_tab builds to boot on 9.1.1, 9.1, or 9.0 (dev or normal recovery image). I use the 2019 pro (mdarcy) model. Am I missing something? Or are current builds just incompatible with the 2019 pro model?
what process are you using to install? It should just work.

And you don't need to be on any specific firmware, anything 9.0 plus will auto update to 9.1.1 when you install the lineage zip.
 
  • Like
Reactions: urbanman2004

Meitei

Member
Sep 18, 2021
38
15
I wonder what the benefits of rooting this has? I wouldn't use GApps, just MicroG with streaming apps like Prime, Netflix, Disney+ and Newpipe. And could I use Lygisk for rooting?

And does 4K work or is that part of the proprietary upscale?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

    Instructions :
    • Download the latest build and gapps
    • Reboot to recovery
    • Flash the latest build and gapps
    • Reboot
    Downloads :
    Reporting Bugs
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed or Magisk
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /sys/fs/pstore/console_ramoops. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
     
    Did you--
    wipe:
     restore with titanium backup:
    reboot after having the issue:
    
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

    XDA:DevDB Information
    LineageOS for the Shield Android TV, ROM for the nVidia Shield Android TV

    Contributors
    Steel01
    Source Code: https://github.com/LineageOS/android_device_nvidia_foster

    ROM OS Version: 11.0 R
    ROM Kernel: Linux 4.9.x

    Version Information
    Status:
    Stable
    Current Stable Version: 18.1

    Created 2017-07-06
    Last Updated 2023-07-20
    9
    So, working on pulling in the updates from the stock oreo release. Finally getting a few things to work that either haven't for a while or never did in the first place.

    1. Geforce Now is working again, like the login screen actually displays something again. (and on a side note, I'm liking some things I'm seeing) Right now, I'm having to hack a piece of it due to the shield hub app not fully supporting Android 8.1. I've contacted Nvidia and am hopeful they will release proper support in the Hub app so I won't have to actually push said hack official.
    2. Did someone say 4K? Second only to support for the original wireless controllers, this has bugged me for a while. Well, this wait is finally over. With the blobs from Oreo, 4k finally 'just works'. No weird broken stuff anymore. Now, switching between a 1080p and 4k display without wiping seems to do odd scaling atm, but at least it's not completely broken like previous releases were.
    3. So, this isn't complete yet, not by a long shot. And who know if once I do get it working whether it'll be suitable for official builds. But that thing I mentioned last point? Support for the wifi-direct controllers? Yeah, Nvidia actually released some of the major pieces that were missing for that. I'm fairly close to making it work, but haven't quite got all the pieces together yet. Once I get all the rest of the stuff stable and pushed up for official builds, I'm going to dive back into this and hopefully *finally* crack this nut.

    So yeah, I'm working on cleaning this all up and doing stability tests. I'm hoping to finish clean up this weekend and spend the next week sanity testing with intentions to release for builds a week from Monday. 'Course, life (tm) can always happen, but things are looking fairly up for this device. Look forward to further updates.
    9
    Work has started on foster/mdarcy 18.1. It's running fairly well. Waiting on the next Linux4Tegra major release to hopefully give usable git history for pieces of the kernel. That should be out later this month. Sepolicy also needs some *major* work, I'm starting that today. Once 18.1 is in good shape, the plan is still to shift to working on 19.0, polish it up, and ship that. It's not going to ship in the next couple weeks, but I sincerely hope that it won't take more than two months. But as always, #stuffcanhappen.

    TL;DR: work is still ongoing.
    7
    Been a while since I posted here, so small info dump update.

    Nvidia has officially released Pie as Shield Experience 8.0.0. The recovery images are available, but no source yet. I've done some analysis of the recovery images and things look fairly positive. The new graphics stack is in better shape than the one from 7.2.x, though I still haven't got it to boot to launcher yet. Once the source release is out, I'll be able to finish importing everything and hopefully a lot of the stuff I've worked on over the last year will 'just work'. But I have no indication of how long it's going to take to get said source release.
    6
    So, Stock Oreo is getting a staggered rollout. Once I get my hands on a copy (haven't been able to get an ota link yet and recovery images and aosp code isn't out yet), I'll start work on it. Initial report is that twrp doesn't boot on the new bootloader, so this is gonna be a fun transition. Queue the troubles with shieldtablet M all over again. ><