yashsingh1/xdaforums huggingface dataset:
[Shield Android TV General] strelokcyka:
install busybox and use this to either launch or add to your home screen https://play.google.com/store/apps/details?id=dxidev.sideload.channel.launcher&hl=en_AU

There are other sideload apps too fyi
[Shield Android TV General] strelokcyka:
Followed 'part' of your guide however got stuck, after installing the image and booting into Android, developer settings were already enabled but contained a message saying they were not available for current user -- WIFI was also unable to connect even tho I followed your instruction about the cables before launching into Shield 7.2.3.

So I decided to go back for the time being which also got me stuck in a bootloop however this is fixed, so I connected ethernet whilst in 7.2.3 and updated the system using the OTA app to 8.0, this invoked a infinite loop of the android circles boot logo, so I did manual fastboot mode entry and used boot recovery kernel and did Factory Reset from there, and this allowed me to setup 8.0 and get back to where I was before hitting the roadblock with your guide.

Hopefully my experience can help you tweak your guide, or maybe I'm just unlucky.

Edit: I should emphasize, the main roadblock was being unable to get adb to function since no developer settings even tho it was enabled [clicking build says already developer] which meant no usb debugging enabled.
[Shield Android TV General] allidea:
This happened to me too. Just do factory reset - you can do it from settings too and flash stock recovery image. Then developer options should be accessible again.
[Shield Android TV General] bccsergio:
Have you done a "Factory Data Reset" (step 12) in your device prior to flashing "nv-recovery-image-shield-atv-7.2.3-dev_rooted.zip"?? Because Factory Data Reset will for sure clean your device and you will not have Developer Options after that (you will have to re-enable it - step 15 - actually, you will have to setup your device from scratch, adding google account, adding wifi... you can't Factory Reset and have things already there after that, it just doesn't make sense)... I really don't see where to tweak my steps, I have done this 4 or 5 times now, following the same steps, and I always got the same successful result... My shield running Android Experience 7.2.3 with full root...
[Shield Android TV General] allidea:
Yes, I got a "blank" aka factory setup device afterwards meaning you have to set it up from scratch and enable developer options again. But this is a really simple thing to do and at least developer options should become accessible again. Without them enabled there is no adb/flashboot. Maybe there is an easier/better way to do it but I'm not aware of it.

I personally didn't mind factory resetting it as anyone trying any action(s) regarding flashing anything onto device should expect it.

But since even a non rooted device can be backed up using adb at least user apps can be restored afterwards.

I personally avoid using WiFi and have Ethernet connection so one step less to mess with.
[Shield Android TV General] strelokcyka:
Tweaks suggested:

Going over what I did I was thinking about it and tried it out,

Factory Reset needs to come after installing the OS from Nvidia, once that is done, reboot and will load into normal first time setup wizard.

Then following rest of guide as follows

side-note - I was not required to reinstall magiskmanager toward the last step as it was installed, and I verified it as rooted after the reboot following flashing the patched boot image.

Hopefully this clears things up 'guide wise'. Thanks for the help in downgrading.
[Shield Android TV General] bccsergio:
Glad it worked out for you, but for me, in my Shield, I always did the factory reset before flashing "nv-recovery-image-shield-atv-7.2.3-dev_rooted.zip" and never had any problems. But if anyone has the same issue you had, they could try it out to Factory reset after, not a big issue...

Now we keep waiting for root in Pie...
[Shield Android TV General] allidea:
Thanks. I'll try it.

BTW: I've asked about installing TWRP on 7.2.3 - and found this post - https://xdaforums.com/showpost.php?p=80110657&postcount=18 - not the latest version of TWRP, but was reported to be working - will try it and report back - might as well try the overclocked kernel as well.
[Shield Android TV General] mLgz0rn:
Could also just keep an eye on the official twrp thread for the shield tv :).

https://xdaforums.com/shield-tv/dev...android-tv-t3510456/post78815047#post78815047
[Shield Android TV General] rootfan:
Shield Experience 8.0 Magisk Root

Hello everyone. I've created a working magisk installer for shield TV on SE 8.0 / Pie. It's in my kernel overclock thread in the dev section. I don't have a 2017 shield, so I can't guarantee it'll work on it, but I'd certainly be glad to get some feedback. For the moment, I'd recommend that only more experienced users try it out in case anything goes wrong. You'll find a functional twrp for SE 8.0 in my thread as well :)
[Shield Android TV General] xabier-bo:
You mean this one?

https://xdaforums.com/shield-tv/development/kernel-overclock-kernel-2-22-ghz-t3943079

thks!
[Shield Android TV General] Roamin64:
Thanks for your efforts , but sadly this didn't work for my shield 2017 16gb. TWRP does indeed work , but flashing your magisk_shieldtv_pie.zip will make my device always reboot straight to bootloader. Once there, if I press multiple times the "Continue" option , it will eventually freeze on a green "continue booting" text. Also after pressing continue a few times, without freezing , seemed to have broken fastboot at that point. Once unplugged and plugged back , I could simply use nvidia's recovery image to "flash-all" and within a minute my shield is back to how it was before I flashed the zip. I have tried twice , first time wiping dalvik cache , the second without bothering. I did copy the recovery log from TWRP right after installing it the 2nd time, not sure if it could help. It seems to have numerous mentions of busybox , I've never installed busybox before on this device (I don't think) but what I used root for (adblock and sixaxis bluetooth controller) worked fine before this damn shield forced updated itself.

I'm willing to test more things or collect more logs if you need, just tell me what to do.
[Shield Android TV General] rootfan:
Thanks for the feedback. Have you tried fastboot booting the twrp I provided, as in running "fastboot boot twrp-3.3.1-0-shieldtv-pie.img"? If so, does that work?
[Shield Android TV General] Roamin64:
Oops, I thought I was clearer than this. Yes , I did "fastboot boot twrp-3.3.1-0-shieldtv-pie.img" and it does work. It's using your TWRP that I tried to install magisk. The recovery.txt also came from TWRP.

Let me know if you have anything else to try.
[Shield Android TV General] rootfan:
Give this zip a try.
[Shield Android TV General] Roamin64:
rootfan! You , are a very clever man. Not sure how much effort it was on your part , but thanks to you I now have my Shield 2017 rooted once more! All I had to do was to grab the twrp-3.3.1-0-shieldtv-pie.img from your thread, and the magisk_shieldtv_pie_test.zip that you just posted. I guess it also installs magisk manager ? I already had the latest manager installed , so not sure if it was a pre-requisite.

Copied magisk_shieldtv_pie_test.zip to root of my Shield

adb reboot bootloader

fastboot boot twrp-3.3.1-0-shieldtv-pie.img

With a mouse :

Install in TWRP

select the magisk_shieldtv_pie_test.zip

Reboot.

Homepage turned black twice briefly with icons refreshing on screen, then all returned normal.

Sixaxis controller now works and X-plore shows me the inside of the root folder :D

From the about menu in my Shield :

Model Number : P2897

Version : 9

Android Security Patch level : July 5 2019

Kernel Version : 4.9.140-gd1d87e27b7a2-dirty

#10 Thu Sept 5 16:05:52 MDT 2019

Build : PPR1.180610.011.4086637_1604.6430

Shield Android TV SW Version : 8.0.0(32.5.205.42)

You made me very, very happy. Thank you so much rootfan.

---------- Post added at 08:40 PM ---------- Previous post was at 07:59 PM ----------

Now how do I prevent my shield from ever updating again without my consent? Anything at root level I could do to make sure it can't ever happen?
[Shield Android TV General] cubandanger05:
Find "tegraOTA", and freeze it with your favorite app freezer.

Edit: the app to freeze is "System upgrade". The apk itself is in /vendor/priv-app/TegraOTA/TegraOTA.apk
[Shield Android TV General] cubandanger05:
I can confirm that this new test zip works for the 2017 16gb model.

I did have to install the magisk apk manually. For some reason, flashing the zip did not install the APK itself.
[Shield Android TV General] Roamin64:
Thanks for the info/edit .. I looked an hour ago for tegraOTA in Titanium Backup but couldn't find it. Came back just now to see your edit. System Upgrade 2.1.0 is now frozen. Much appreciated to both of you!
[Shield Android TV General] mLgz0rn:
this works!

thanks alot [MENTION=4180946]rootfan[/MENTION]
[Shield Android TV General] whiteak:
Also confirming that I got Magisk installed on my 2017 Darcy model. Thanks.
[Shield Android TV General] TheLoonyRebel:
I'm assuming this root solution works on the straight Pie itself on the 2017 model and not the pulled developer version?
[Shield Android TV General] whiteak:
Yes, I've only ever used the Stock versions when rooting.
[Shield Android TV General] rorm2010:
Hi can any one please explain the instructions and which file we need to root the version 8.0 ??
[Shield Android TV General] Roamin64:
Follow the guide in the first post in order to unlock your bootloader. (Steps A to D, In step A you only need to do points 1 and 2 ). When you reach step E , do this instead :

Grab the latest Magisk Manager from here : https://github.com/topjohnwu/Magisk/releases/

Install the apk (you will need to have unknown sources enabled to install the apk)

With developper options enabled (Original guide step C , point 1) you can now use ADB to boot the twrp located in rootfan's thread. The link is in the second paragraph here

Also download the file magisk_shieldtv_pie_r2.zip from the attached files of his post.

Copy the twrp-3.3.1-0-shieldtv-pie.img to the folder containing adb and fastboot. (In my pc it was installed to C:\Program Files (x86)\Minimal ADB and Fastboot)

Copy the file magisk_shieldtv_pie_r2.zip to the root folder of your shield

Type: adb reboot bootloader

Once rebooted to bootloader type: fastboot boot twrp-3.3.1-0-shieldtv-pie.img

The shield will now boot into TWRP. You will need a mouse at this point.

With the mouse click Install, choose the magisk_shieldtv_pie_r2.zip and swipe to install it.

Press reboot and you are done.

You will need to install something like "sideload launcher" from the play store in order to see the app Magisk Manager on your shield.
[Shield Android TV General] allidea:
Just a small addon for newbies (like me) ... regarding TWRP and it asking to keep system read only or to allow modifications - you can keep system as read only (since you just temporarily installed TWRP if you used fastboot boot ... command) .
[Shield Android TV General] cubandanger05:
Correct. I upgraded to pie the "standard" way, then rooted.
[Shield Android TV General] rorm2010:
I alrady have unlock bootloader and root on my 2017 16gb 7.2.3
[Shield Android TV General] cubandanger05:
OK, your next steps should be:

-let shield upgrade to pie

-enable USB debugging again

-boot into bootloader

-boot the twrp pie img using fastboot command

-flash the magisk test zip

-reboot system

-Sideload and install magisk apk manually if needed

-profit
[Shield Android TV General] bccsergio:
WOW! Full root on Pie with dm-verity enabled, on Shield TV 2017 16GB! 100% working! You're awesome man! That's just perfect!
[Shield Android TV General] elliwigy:
wow, howd i miss this haha.. ill b glad to test as well :) thx for the support!
[Shield Android TV General] rorm2010:
You are legend thank u
[Shield Android TV General] rorm2010:
hi again where i can found the twrp-3.3.1-0-shieldtv-pie.img ???

sry i found it thanks
[Shield Android TV General] vanzan:
I got this done but boy did I make hard work of it! I put the zip file in the Download folder of my adopted storage however I couldn't find it with adb shell in TWRP (didn't have a free port for a mouse). I wonder does adopted storage not show up in TWRP? Don't know how you guys used a mouse for TWRP when the adopted storage is in one port and male to male debugging usb is in the other port. OTG Cable perhaps?

Eventually I ejected the adopted storage, put in my mouse, booted TWRP, did an adb push on the zip file and installed it in TWRP. Deleted the zip, removed the mouse and replaced the adopted storage USB and then rebooted.

Probably the most ridiculously inefficient way to do it....now to somehow freeze the update thing (Titanium Backup?).
[Shield Android TV General] oldpoem:
Easiest way is put zip file in /InternalStorage and it would show up in TWRP. No need to mess up with adoptive storage at all. Also I don't think you need to worry about losing root when update. Unless nvidia make changes to boot image this rootfan method would works for newer android 9 version. It probably won't work when Android 10 released though (doubt we will ever see that hits shield anytime soon.)
[Shield Android TV General] DumbKing@letthemeatspam:
New images are up, anyone try to install these on top of an already rooted 7.2.3? Does someone have the steps?

https://www.nvidia.com/en-us/geforce/forums/shield-tv/9/307650/800-dev-image-no-root/
[Shield Android TV General] mLgz0rn:
Just follow step F from the first post without using a patched boot.
[Shield Android TV General] DumbKing@letthemeatspam:
thanks, for some reason on my mac the process bugged out and I stopped at "sh flash-all.sh" and froze on

fastboot flash staging blob

Now I can only boot into recovery by pressing a+b on controller because normal boot stops at nvidia logo and hangs.

I switch OS into Windows 10 but I can't get fastboot to detect nvidia shield I think because I didn't authorize this computer in android setting? any help is appreciated thank you
[Shield Android TV General] elliwigy:
u have latest fastboot from google? i install mine to path so it works everywhere.. u dont need to authorize anything.. also make sure u have latest drivers installed..

if ur just updating u should just be able to fastboot boot or flash the twrp img and boot into it then maybe reflash the magisk zip just in case..

if ur pc cant recognize it then its almost certainly pc side or bad cable or something
[Shield Android TV General] corbs24:
So if i am on Stock 8.0 right now on Shield (2017)...I would have to download the 7.2.3 DEV OS image file and downgrade to that version or do i have to be on stock 7.2.3 and then use 7.2.3 DEV OS?....So i am assuming the difference between both Regular Nvidia Image OS and the DEV OS is Regular is when i want to go back to stock and the Dev OS is when i want to be rooted?.....Just want to make sure so i won;t mess anything up....Thanks

a) Stock 8.0 > downgrade to Stock 7.2.3 > install Dev Os 7.2.3

or

b) Stock 8.0 > downgrade to DEV OS 7.2.3
[Shield Android TV General] cubandanger05:
c) Stock 8.0 can be rooted just fine without the dev image. Read a few posts back.
[Shield Android TV General] corbs24:
Awesome job :good::good:, i will look into that.. I wasn't too sure with that on whether you had to be previous root for that to work but now i know from you that i don't have to be... thank you for your response :)
[Shield Android TV General] Ghisy:
Hi guys,

I'm wondering how to update to Pie using the NVidia dev image without wiping my device. Any guide out there to keep root and user apps?

Thanks!
[Shield Android TV General] mLgz0rn:
If your bootloader is unlocked you won't lose anything.

However, if it's not, there is no way to keep your data, since unlocking the bootloader wipes your device.
[Shield Android TV General] Ghisy:
My bootloader is unlocked.

I wonder if it's better to OTA update to Pie (then root again) or flash the dev image from a PC then root.
[Shield Android TV General] cubandanger05:
No need to flash dev image. It's been reported that the regular pie image can be rooted. See previous posts.
[Shield Android TV General] frriction:
I have 8.0, when I got unlock boot loader warning message screen continue button is out of screen, pressing A on controller does not do any thing.

How do i unlock boot loader?
[Shield Android TV General] Roamin64:
Are you referring to the yellow text message that appears when the device powers up ? If so , that message is actually telling you that the bootloader is unlocked and you shouldn't press anything. I'm not in front of my shield right now , but I believe it asks to press A to pause the booting process (I'll verify this in a few hours and update this post).

Otherwise , once you are in Fastboot mode , you simply need to go to the "unlock bootloader" option , activate this option and accept the warning that says it will erase everything on the device.

If you are on 8.0, don't follow the guide from this post (specially don't use the files posted in here) or you will semi-brick your device. You should use rootfan's files to root 8.0 (this includes the custom twrp he's posted , and the magisk installer). Also , if any guides tell you to write "fastboot FLASH boot.img" you should replace it with "fastboot BOOT boot.img" at least the very first time. If it properly boots your boot.img , then you could flash it. Flashing the boot.img from this thread will semi-brick a 8.0 nvidia shield. Here's rootfan's thread , twrp is posted on his google drive (the very first line of his post as a link to it).

Overall steps are :

Unlock bootloader (from fastboot mode).

boot twrp-3.3.1-0-shieldtv-pie.img from rootfan's google drive

install magisk_shieldtv_pie_r2.zip (needs a mouse inside twrp)

Reboot, you're rooted.

**********THIS IS FOR 8.0 or 8.0.1
[Shield Android TV General] frriction:
In fast boot mode after selecting unlock bootloader there is warning message about warranty there I can not continue. Option to “continue” at the end of message is out of screen and pressing “A” does not do anything.

Thank you heads up about 8.0.
[Shield Android TV General] frriction:
[MENTION=4761314]Roamin64[/MENTION] I was able to unlock bootloader but when I boot twrp my tv does not show anything. few flash of logo and nothing.

Does this thing have issue with 4k tv?
[Shield Android TV General] Roamin64:
Sorry , my current setup doesn't allow me to test TWRP on 4k. I have a 4k TV , but the shield and the tv are very far from my pc , and when I plug the shield to the PC I use another monitor that is 1080p only. I have had no issues with 1080p. I forgot to post the url of rootfan's thread. Can you confirm that the TWRP you are trying is the one from rootfan's thread ? I think its the only TWRP that works on 8.0 and above. Just in case here is the link to the thread that I forgot to give you . https://xdaforums.com/shield-tv/development/kernel-overclock-kernel-2-22-ghz-t3943079 . If i unplug my shield and reboot it , when the "Your device software can't be checked for corruption. Please lock the bootloader." message appears, the resolution on my tv changes to 1080p. A quick search shows that older TWRP did not properly work in 4k , and needed 1080p to display anything. Do you have a 1080p monitor you can try ? If you're using rootfan's twrp , then that's definitely the first thing I would try.
[Shield Android TV General] elliwigy:
latest twrp and os version works fine on my 4k tv.. dunno if there are other variables orissues that could cause varying experiences.. to get the best info i suggest looking in the actual twrp thread since if there are reported issues this is where they would b posted
[Shield Android TV General] frriction:
HDMI cable was at fault, it can do 60hz but for some reason it was not able to show twrp screen.

thank you for help.
[Shield Android TV General] cHECKjAM:
Hi,

I have two 2017 16gb shield. One I rooted etc. from a few months ago but didnt touch since then.

Its "Version" 8.0.0 and "Shield Android TV SW Version" 7.2.3

I dont remember almost anything I did with this shield only that its rooted. So this one probably needs total remake. It has been on a VLAN without internet. I think it is running the nvidia dev image.

What are my steps to put this on the latest version with root and magisk, twrp etc..?

The other shield is a brand new unrooted. I guess I just connect it to the internet and through the GUI download the latest version. Then follow The instructions couple posts back?

Any way to get all this sorted without logging in to a google account?

Im so noob with these stuff..
[Shield Android TV General] aricemax:
At first step A and then number 4....

my current original version in the device is the latest one witch i guess is 8.01. can i just grab any version i want? like version 8.0 from the develooper page?
[Shield Android TV General] cHECKjAM:
Holy **** dude.. I ****ed up... big time..

Look I need your help. i completed all the steps then decided I wanted to flash TWRP instead of just boot.. But I made a mistake and flash boot TWRP instead of flash recovery..

Not of course bootloop and chaos. I found myself back in to fastboot menu.

Have downloaded the stock Nvidia shield TV recovery OS 8.0

How can I flash it and make it all stock again so I can retry the entire process?

Thanks!
[Shield Android TV General] Roamin64:
If you have downloaded the correct recovery image from Nvidia, simply extract the files in the "minimal adb and fastboot" folder. Boot the shield into fastboot then simply type "flash-all" and it will flash the proper files to recover your device.
[Shield Android TV General] mLgz0rn:
Or just fastboot flash recovery recovery.img

Note that if you do flash twrp, you might end up with a bootloop also.

I'm not able to flash twrp on my device..
[Shield Android TV General] cHECKjAM:
What is recovery.img ? The original recovery img for the shield? If so where do I find it?

What I downloaded from nvidia is: nv-recovery-image-shield-atv-2017-8.0.0.zip

Ahh the recovery.img was in there... I see

So Its not recommended to flash TWRP just to boot it when needed?
[Shield Android TV General] cubandanger05:
Right.
[Shield Android TV General] Roamin64:
Unless you plan to use TWRP often , I don't see a reason to actually flash it. The idea is to at least try to boot it once , and if it doesn't fail , then you can flash it with your mind at ease knowing it booted properly. Flashing it without confirming it can boot is taking a chance. Hope you're good to go now.
[Shield Android TV General] cubandanger05:
I would agree if it worked for everyone. For example, I can only boot it. When I flash it, it doesn't boot.
[Shield Android TV General] Roamin64:
I am no Android expert at all, but I was under the impression that this was impossible ? Maybe someone who knows more could explain how this can be? I'll take your word for it, thanks for the info. I'll keep suggesting to use "boot" instead of "flash" since it will always be safer.
[Shield Android TV General] cubandanger05:
Yea, I've been rooting and flashing since the days of cyanogenmod 3, now known as LineageOS. The shield never boots after flashing the TWRP recovery in question.
[Shield Android TV General] mLgz0rn:
I think it's some of the "protection" added in pie.

I can't flash it either.

So I guess when you try to boot, and it detects it's not the stock recovery you will be sent into a bootloop.