yashsingh1/xdaforums huggingface dataset:
[Shield Android TV Android Development] rootfan:
[MENTION=4414580]bum2kev[/MENTION], [MENTION=9912813]imoldchen[/MENTION], and anyone else who's interested, here's something to try that should fix the 2017 shield USB issue, if it boots. It's a Magisk zip that replaces the installed kernel with my modified version. The magisk installer is set to preserve dm-verity and this kernel should disable dm-verity, so hopefully it'll work on the 2017 shield. You can install it with this twrp I put together: https://drive.google.com/open?id=1BCfXg9pUpFm_3sPXp_nEwBlkNU9nelkg Make sure you're on a stock boot.img before flashing the kernel. Let me know if it boots and be prepared to restore your shield (just the boot.img) if it doesn't :)

The attached file is only for 7.2.3
[Shield Android TV Android Development] Sdkfreak:
Tried it on my Shield 2017 version and I can confirm that it works. Shield booted up fine and the USB ports are now working! Thank you for the work you have done! :)
[Shield Android TV Android Development] pop4xda:
My shield 2017 (16gb) is still on fw 7.1.0 with working trwp and magisk rooted already.

Since I don't have PC around to do fastboot method, is it possible to upgrade to pie and root it with this guide by using only exiting trwp. If so, how?

Thanks.
[Shield Android TV Android Development] mLgz0rn:
fastboot flash boot ShieldOC_Test.img

You are booting to the image, you need to flash it.

Edit:

Nvm, I misunderstood
[Shield Android TV Android Development] SkOrPn:
I'm sure you done this already but I will mention it anyway. Go into magisk manager, click on the hamburger menu top left, click on superuser and make sure Shield Tools has superuser permission. Do you remember granting Shield Tools superuser permission when you first launched it?
[Shield Android TV Android Development] mLgz0rn:
Magisk grants super user access automatically on my device.

And I wouldn't be able to set the clock speeds if it wasnt.

It dosnt reset completely it goes from 2.2 to 2.0.

The gpu however completely resets.
[Shield Android TV Android Development] SkOrPn:
Ah, so a very unique and new issue we have not seen yet. Interesting
[Shield Android TV Android Development] mLgz0rn:
Yeah, I think it can be isolated to 2017 only.

Since apparently it is a bit different :p.

Same thing as there was issues with the fan profile.

https://xdaforums.com/showpost.php?p=80607183&postcount=120
[Shield Android TV Android Development] oldpoem:
Flashed 1.4 over stable 1.3.1 ketnel and got constant reboot need to reflashed 1.3.1 to get back usable shield. Seem like unstable ram overclocking profile.

Get in shield tools and app forced close when select ram overclock menu. Uninstalled Shield tools and not sure if I ever want to try to find solution with 1.4 again.

Shield TV 2015 (16GB)
[Shield Android TV Android Development] cubandanger05:
Working great on Shield TV 2017, running 8.0.0
[Shield Android TV Android Development] rootfan:
[MENTION=9688438]DumbKing@letthemeatspam[/MENTION], to help fix the issue, you're going to have to do this. Fastboot boot ShieldOC_Test.img like you previously did and wait until the device boots up. Then follow the instructions to boot the twrp I provided. When your device is in twrp run the following instructions

adb shell "cat /sys/fs/pstore/dmesg-ramoops-0 > /sdcard/Download/shield_debug.txt"
adb pull /sdcard/Download/shield_debug.txt
adb reboot

Post the shield_debug.txt file you pulled. In general, this is the guide to follow if your device doesn't boot up and you want to help me fix it. [MENTION=7186920]mLgz0rn[/MENTION], have you tried the fastboot flashable kernel I posted? If so, does it work for you?
[Shield Android TV Android Development] mLgz0rn:
Which one?

I don't have any issues with the kernel, but with shield tools resetting set overclocks.
[Shield Android TV Android Development] rootfan:
The one in this post https://xdaforums.com/showpost.php?p=80764243&postcount=175. You can fastboot boot it to see if it works. It mounts the partitions differently from previous versions and I'm not sure yet if it works on any Shield TVs other than the hard drive model.
[Shield Android TV Android Development] cubandanger05:
Not that it made a difference, or perhaps it did, but is anyone mounting system in recovery before flashing? I did.
[Shield Android TV Android Development] DumbKing@letthemeatspam:
Ok I'll do that. It's ok that the device hangs on Nvidia shield image and then reboots though?

Also how do I run the device in TWRP without mouse? That's ok too?
[Shield Android TV Android Development] rootfan:
Yes, it's alright that the device hangs. A log will be saved that'll hopefully say why it hangs and that's what you're getting in recovery. Since you're just using adb you won't need a mouse.

Edit:

[MENTION=9688438]DumbKing@letthemeatspam[/MENTION], here's a new boot.img to try. [MENTION=7186920]mLgz0rn[/MENTION] provided the log file. This image only has root and is based on updated nvidia kernel sources for 8.0.1. Let me know if it works :good:
[Shield Android TV Android Development] mLgz0rn:
It did not work.

Got to the nvidia logo and then it rebooted.

Edit:

I attached the log
[Shield Android TV Android Development] DumbKing@letthemeatspam:
Awesome. Can I still use this if I only have 8.0 installed? 8.0.1 hasn't been pushed to my system yet

as soon as I hear back I'll try fastbooting to it and then installing it permanently ASAP
[Shield Android TV Android Development] mLgz0rn:
Are you on the hotfix image by any chance?

If so the last hotfix image is the same build as 8.0.1.

But if you are on the latest hotfix image and want 8.0.1 you can download and flash the 8.0.0 recovery image for your device and you should receive the 8.0.1 update after you flash this.
[Shield Android TV Android Development] psycopowerr:
It was in version 8.0.1. I was only able to install the kernel on developer version 8.0.0. Boot hangs on version 8.0.1. Now everything is working on version 8.0.0.
[Shield Android TV Android Development] DumbKing@letthemeatspam:
I am not, I am on 8.0.0 developer image and I haven't received the 8.0.1 update yet (probably because I'm on the dev image?)
[Shield Android TV Android Development] mLgz0rn:
Yeah that would be why
[Shield Android TV Android Development] kyvaith:
[MENTION=4180946]rootfan[/MENTION] Could you tell us the steps to compile a kernel and build zip for flashing like the one you attached? I would like to add DVB support to it. Thanks.

---------- Post added at 02:52 PM ---------- Previous post was at 02:51 PM ----------

[/COLOR [MENTION=4180946]rootfan[/MENTION] Could you tell us the steps to compile a kernel and build zip for flashing like the one you attached? I would like to add DVB support to it. Thanks.
[Shield Android TV Android Development] justiss:
[MENTION=4180946]rootfan[/MENTION] thank you very much for your effort. Your kernel is great. I am really glad that I have overclocked shield now.

I have only one issue. It was described earlier. When my shield 16gb 2017 goes to standby every time maximum cpu freq reduces to 2014500 khz. I tested it cpu z. It is shown 2.2 ghz but on performance governor after going out of sleep shield works on 2.0 ghz
[Shield Android TV Android Development] mLgz0rn:
I have actually also noticed that it happens when you run at stock speed 1.9ghz.

It's like shield tools has 2ghz as the default speed and it just resets to that no matter what.
[Shield Android TV Android Development] rootfan:
[MENTION=7186920]mLgz0rn[/MENTION], see if this Shield Tools fixes the problem.

Edit: [MENTION=10287259]justiss[/MENTION], I attached an updated apk that should fix the new problems :good:
[Shield Android TV Android Development] justiss:
This fixes the problem with cpu overclock but now there is a difference in switching governors. When I switch them they change only after reboot. And ram overclock resets to 1600 after reboot. But this not a big issue.

App is great. Thank you!
[Shield Android TV Android Development] lenana:
I tried installing ShieldOC_Magisk_Test.zip (Which I think is R.1.2...not really sure) on Full android Oreo 7.2.2 by zulu99 and this is the result

1-The device booted

2-Wifi and bluetooth is broken

3-EX kernel manager showed up to 2188 Mhz but was not 'selectable'

4-Shield tools has no UI in full android

Most of the items above were mentioned by the developer but I just had to try, who knew if it would work lol

I hope the developer comes up with a kernel that can be used in full android as Android TV has so many issues. In my case I had random reboots that seemingly could not be fixed even by nvidia, so I left android TV firmware altogether.

Anyways thanks for the effort [MENTION=4180946]rootfan[/MENTION]
[Shield Android TV Android Development] zecabra:
tks, now root is permanent but won't load the modules in magisk, they are listed, correctly installed but nothing and no errors appear, dr-verity and preserve force encryption are unchecked after installing, but no problem for me, the most important it's permanent root
[Shield Android TV Android Development] kyvaith:
[MENTION=4180946]rootfan[/MENTION] I would be grateful for a short instruction how to build kernel for Nvidia Experience 8.0.1. I tried to build kernel from this repo:

repo init -u git://nv-tegra.nvidia.com/manifest/android/binary.git -b rel-30-r3-partner -m tlk/t210.xml

but it doesn't boot (bootloop). I assume this is a version for the older Nvidia Experience. Also tried to download rel-32-r5-partner but there are no necessary modules needed to build anything (like build bionic etc.) How can I build kernel for Nvidia Experience 8.0.1? Please help me.
[Shield Android TV Android Development] trohn_javolta:
Hi [MENTION=4180946]rootfan[/MENTION] Is there any chance you could add NFS support in the kernel? This would be really awesome. This thread suggests it's lacking in original Kernel:

https://xdaforums.com/shield-tv/general/shield-tv-2017-nve-8-0-0-nfs-mounting-t3965848
[Shield Android TV Android Development] lenana:
Just flashed android 8.0.0 and flashed kernel 1.4. I have also installed shield tools 1.22 apk. So far so good everything works well
[Shield Android TV Android Development] rbaskin2009:
When I flash the 8.0.1 developer version and then fastboot to TWRP to install the 1.4 kernel everything seems to work fine, but the Magisk manager app is nowhere to be found. What's the deal with that?

Edit: The deal is that I didn't know about the "show all apps" button in the apps section in settings; just in case someone else runs into the same issue.
[Shield Android TV Android Development] uronito:
With my variant foster_e , rootfan kernel 1.4 dont work (always bootloop, with stock image, with dev image), magisk_shieldtv_pie_r2.zip works. [MENTION=4180946]rootfan[/MENTION] can you compile kernel for foster_e.

Thanks in advance
[Shield Android TV Android Development] rbaskin2009:
Is anyone else failing "ctsprofile" in Magisk? I can't download some apps in the play store (Disney+), likely for this reason. I've tried using the props config module, but my props fingerprint doesn't seem to change after flashing the 1.4 kernel, so I'm not really sure where to go from there.

Edit: So I was flashing Dev 8.0.1, but kept failing CTSProfile after flashing the kernel. I went ahead and did 8.0 consumer, and let it update to 8.0.1 (I know, pretty much what everyone was saying), and it worked great! I was thinking of saving my fingerprint and trying propsconfig again with the dev version of 8.0 (upgraded to 8.0.1), but for now everything's running great, including Shield Tools 2.2 with a significant overclock. Thanks everyone!
[Shield Android TV Android Development] elliwigy:
disney+ doesnt work.. its not in the store.. when i sideload it it opens and force closes immediately..

good thing i only want to watch one show on it lol
[Shield Android TV Android Development] rbaskin2009:
Disney+ is working now (it shows up in the store) after I did the above process in my edit. I also am passing CTSProfile in Magisk, so I believe the two are linked.
[Shield Android TV Android Development] elliwigy:
yea.. i noticed it in the store after i posted lol.. it was being funny at first but now running smooth.. initially i kept getting black screen whenever i went to play something..

dunno if its my debloat, customizations, video settings, my account, or if it just fixed itself but all is good now lol
[Shield Android TV Android Development] mLgz0rn:
There's a known issues list on the Nvidia forum

Which is why you might have experienced issues.

https://www.nvidia.com/en-us/geforce/forums/shield-tv/9/328207/disney-is-now-available-on-shield/
[Shield Android TV Android Development] el7145:
disney+ works fine for me (with this kernel installed), in fact i just updated it in the play store, and watched something :)
[Shield Android TV Android Development] elliwigy:
its workimg great so far and after i sideloaded it it appeared in the store.. i also got a vzw unltd plan so they gave me a year subscription free lol
[Shield Android TV Android Development] elliwigy:
yea.. 4k even works for me lol.. i only got it to watch mandalorian tho lol
[Shield Android TV Android Development] shub:
Hi All

its been long since i did any custom flashing....

i have the 2017 Sheild and i manage to load twrp and push the magisk_shieldtv_pie_r2...device is rooted and the app is showing in the side-loader

does this confirm i have the correct Kernal or i should be flashing the kernel_r1,4. to gain extra performance?

if so, how do i flash the kernel_r1.4?
[Shield Android TV Android Development] copticwalad:
What do you mean you did 8.0 consumer? Do you mean you downgraded the whole system to 8.0.0 stock again?

I just went from Dev 8.0.0 to 8.0.1 but haven't flashed this kernel yet (which I may be interested in) and also have my CTSProfile fail.

I usually have magiskhide on for google play services / store and other relevant apps and I just tried clearing google play store appdata but still no luck. Anyone have a simple solution to getting safetynet working? I also am not seeing Disney+ in the google play store and while I could try and sideload it, I'd like to get ctsprofile to pass.
[Shield Android TV Android Development] berpru007:
Guide for nubs?

Hey guys I'm extremely new on this. I've rooted Android phones but this seems way more complex. I have a Shield Tv 2015 and I want to overclock mainly to improve Dolphin emulation. Can someone make a guide step by step on how to install this Kernel? How to root 2015 model etc? I'm not sure about it ...

I have a question, will Netflix, Amazon prime and other apps still working fine ? If root doesn't work well can I go back to stock and keep having NVIDIAs OTA Updates???

Thanks to you all :)
[Shield Android TV Android Development] lenana:
How many here are using 8.0.1 developer image? Why is nvidia denying releasing this image? The link is no longer available
[Shield Android TV Android Development] mLgz0rn:
I have not yet seen the 8.0.1 dev image available only the 8.0.0.

Edit:

I just saw your post on the nvidia forum with the video you attached, and indeed it is 8.0.1.

Makes no sense why the poster of the nvidia account on the forum would not just say that it was posted by a mistake and was later pulled.

Something tells me that the person behind that account don't have anything to do with what is being posted on their dev download section, and they have no idea that it might have been there for a short time by a mistake.

Denying it would make no sense.

So probably just wait for a response when they have confirmed that it actually was posted for a short time by a mistake.
[Shield Android TV Android Development] mLgz0rn:
Quick note to this.

For some (me included) flashing twrp will cause a bootloop.

So if he experiences a bootloop after following your awesome guide, this could be the reason why.

Simply flash the stock recovery again and it should boot.

---------- Post added at 16:32 ---------- Previous post was at 16:23 ----------

They responded now that it was posted by a mistake.

About nvshare, do you use an adblocker or vpn or something like that?
[Shield Android TV Android Development] lenana:
About rootfan's twrp recovery: Yes that may cause a bootloop for some, thanks for pointing out that I will edit post and add that line.

About Shield forum: Finally they admitted lol. I do have adaway installed, let me see if it is the culprit, thanks in advance.
[Shield Android TV Android Development] lenana:
[MENTION=4180946]rootfan[/MENTION] is it possible to modify the R.1.1 kernel to work in 7.2.2 also? Some people are opting out of pie altogether due to inherent issues from nvidia...like random crashes:( and moving back to full android Oreo 1.10 by zulu99 which is based on 7.2.2. It takes a lot of contemplating before giving up Pie lol only because of your excellent kernel. Flashing your kernel over 7.2.2 will boot but wifi won't work. Is there a workaround to get the wifi up and running? As for shield tools it works in full android using ATV launcher.

I can be a tester if you need one.

Thanks in advance.
[Shield Android TV Android Development] oldpoem:
[MENTION=4180946]rootfan[/MENTION] could you make magisk flashable zip with updated stock kernel for 8.0.2? Or without kernel at all. Just want root on stock 8.0.1 hotfix and with at least keep newer stock kernel.
[Shield Android TV Android Development] mLgz0rn:
Just use the attached magisk_shieldtv_pie_r2.zip from the first post?
[Shield Android TV Android Development] oldpoem:
It will installed magisk AND old kernel from September build. Which is older tha 8.0.1 hotfix kernel Nov. build and some fixes won't be fixed if it is kernel related.
[Shield Android TV Android Development] mLgz0rn:
Fixes are most likely not done to the kernel but the system, the kernel is pretty much the boot.

I don't see any of the fixes posted being kernel related.

Have you tried it? Is the fixes posted not working?
[Shield Android TV Android Development] oldpoem:
I didn't checked out all those fixes. I don't even root it now since last hotfix update. Just give it a thought since flash only official magisk through TWRP cause the shield bootloop. Flash rootfan magisk got stock september kernel. Flash rootfan latest kernel 1.4 got my shield 2015 crash and reboot everytime.

It could be better if there is working magisk flashable zip that don't replace kernel stock kernel.
[Shield Android TV Android Development] lenana:
This kernel is very good, gameplay improvement is noticeable. Good work [MENTION=4180946]rootfan[/MENTION].

[Shield 2017, 500GB Samsung Evo; Developer 8.0.1 image]
[Shield Android TV Android Development] BXM500:
Are you using microSD card in your Shield TV?

I had to remove mine for the kernel to work. Otherwise it will keep rebooting.
[Shield Android TV Android Development] oldpoem:
Yes, 128GB as adoptive storage. Do yours crashed even formatted as normal storage?
[Shield Android TV Android Development] BXM500:
I didn't try as normal storage as that's not any good to me.
[Shield Android TV Android Development] oldpoem:
Seem like 2015 users need to settle with 1.31 for now. I did have kernel panic with stock kernel when using one of my most used iptv though. Need to use rootfan kernel for now.
[Shield Android TV Android Development] Rick1vr6:
Yep. Adoptable storage results in bootloop. I'm back to stock kernel for now. I need the additional storage. Great kernel otherwise
[Shield Android TV Android Development] Ghisy:
Hi!

I'm on the 8.0.0 dev image but I want to update to the 8.0.1 dev update. I got the files from NVidia's website. If I use NVidia's instructions (https://developer.nvidia.com/rdp/assets/HowTo-Flash-Recovery-Image.txt, only the Flashing part), is it going to wipe my device?

I just want to quick update retaining all my apps (I know I will have to root and install TWRP again). Any tips please?

Thanks!
[Shield Android TV Android Development] mLgz0rn:
No.

data will only be wiped if you do so by yourself or if you lock/unlock the bootloader.
[Shield Android TV Android Development] thecoolkid:
I did that, but it just doesn't work. Stays on Nvidia logo and after some time reboots.

I tried dirty 8.0.1, clean 8.0.1 (from recovery image), clean 8.0.0 (format data from recovery) with the OTA to 8.0.1, without the OTA. I'm sorry it just doesn't work. Shield 2015 16 gb.

Also tried removing sdcard and usb drive, but it didn't make a difference...
[Shield Android TV Android Development] Meastersquallx:
Does the last kernel work in SHield tv Pro 500Gb model 8.0.1?
[Shield Android TV Android Development] simonk206:
[MENTION=4180946]rootfan[/MENTION]

Thanks for 1.5 kernel. Seems to work great on Shield 2017 16gb with 8.0.1 dev pie.

Magisk 20108 is the last working one. Latest 20109 don't work anymore. (No root after reboot) It was the same on 1.4. So I don't think it's a fault of your kernel. Hopefully topjohnwu will fix that soon
[Shield Android TV Android Development] simonk206:
I forgot the pictures :D

Thanks again for this great kernel
[Shield Android TV Android Development] cubandanger05:
Obviously, this is not a Netflix support thread, however, anyone having issues with Netflix not wanting to play anything? Already tried uninstalling, logging out, rebooting, etc. Working fine on my fire sticks.
[Shield Android TV Android Development] simonk206:
Hide Netflix with Magisk hide.

Maybe Playstore, Google play services and Google services framework too
[Shield Android TV Android Development] Ghisy:
Thanks, just updated to 8.0.1 using the NVidia's flash-all file and retained all my user apps. Worked like a charm!

Edit: hmmm, struggling to reinstall YouTube Vanced through Magisk. The module installs but can't see the app anywhere. Worked fine before, I don't get it...
[Shield Android TV Android Development] mLgz0rn:
You might need to uninstall the updates from the default YouTube app and disable autoupdates.

But instead I would suggest getting smart youtube tv.

YouTube vanced is not made for android tv.
[Shield Android TV Android Development] Ghisy:
Yeah, I already tried that :/

I have it too and that's what I've been using last night. I know Vanced isn't made for TV but somehow I like it better. YouTube TV has a weird interface...
[Shield Android TV Android Development] cehaka:
Excellent

Thank you so much, now SHIELD TV is a perfect device for me. I really needed some time to get the right way for my 2017 16GB device, but finally it is just awesome and time for a while to freeze OTA...

Deepest respect and thanks to you, [MENTION=4180946]rootfan[/MENTION] and everybody else involved! I am far away to be an android expert....

:good:

Maybe interesting: I began at 7.2.2 stock, shield updating itself to 8.0.0 and then 8.0.1., still stock. Booting into twrp-3.3.1-0-shieldtv-pie.img recovery and flashing magisk_shieldtv_pie_test.zip was successfull. Flashing Kernel 1_5 not. After (!) that adoptable storage is working fine too.
[Shield Android TV Android Development] lenana:
I can confirm this kernel works well (from 1.4 and shield tools 1.22) on full android (Lineage OS) pie by zulu99. Shield tools is accessible using ATV launcher or you can create a shortcut for it using the 'create shortcut' app for any other launcher. Keep up the good work [MENTION=4180946]rootfan[/MENTION]

Shield pro 2017 with 500gb ssd swap.
[Shield Android TV Android Development] BXM500:
Is the microsd mounting issue fixed in the latest kernel release?
[Shield Android TV Android Development] oldpoem:
It's fixed. I'm using kernel 1.5 with 2015 Shield and 128G micro sd adoptive storage.
[Shield Android TV Android Development] BXM500:
Thank you and I can confirm now it's working. Thank you [MENTION=4180946]rootfan[/MENTION]
[Shield Android TV Android Development] Giraff3:
Unable to get it to boot unfortunately (Shield 2017, 16 gb). TWRP installs fine, same with the kernel without any errors but just bootloops at the Nvidia logo on startup. Tried 8.0.1 dev and regular as well.
[Shield Android TV Android Development] pop4xda:
Me too with kernel 1.4. But I do not try the lastest kernel 1.5 yet.

Thanks for report this. Is there any way to fix this bootloops?
[Shield Android TV Android Development] snake218:
Would this kernel work with full android oreo from Zulu99? Or there are plans for an oreo version? Thanks