yashsingh1/xdaforums huggingface dataset:
[Shield Tablet General] tenFootPedal:
nice. Thanks for the feedback.

I haven't been down the play store road, but I would start by installing the tvstock gapps package without removing gsfcore (maybe others?) and don't run the debloat zip after you do so.
[Shield Tablet General] brandonlee96:
the tv gapps dont even have google play within the zip so we have too figure out how to install the android tv google play store on this mod we will be all set to go. i have all the system files from the stock nvidia shield tv on my pc trying to swap files to see what i can mimic. but the shield games for the nvidia shield tv works perfectly on this mod.im also trying to see if i can install the stock shield tv firmware on the shield k1. i can get the boot,recovery,system img's to flash successfully but it taking forever to boot. so it seems it dont work but i will keep trying.
[Shield Tablet General] gokhujee:
So u can install stock Android shield TV games on this mod aye
[Shield Tablet General] brandonlee96:
also this mod works with the 5.1.1 OTA and the 6.0.1 OTA. and the lastest firmware but its a little buggy for me. aslo is there any way to make a uninstaller.zip for this mod. im also still having a hard time to get google play store installed
[Shield Tablet General] phuzznut:
It would be so great if someone could pack this all up into a flashable ROM. That's something out of my abilities, could someone pretty please make it happen?
[Shield Tablet General] tenFootPedal:
If this were an aosp-based build, I would do it. But since its stock, I didn't feel comfortable doing it. There are some things I should probably do to take some of the steps out and make it easier though.

[MENTION=5847037]brandonlee96[/MENTION], since this deletes a number of stock apks, I'd need to pack them up to put them back to make an uninstaller, which I don't want to do for the same reasons as above. You can do what I do and just make a twrp backup of stock to go back to.
[Shield Tablet General] tenFootPedal:
[MENTION=5847037]brandonlee96[/MENTION] Here's your play store problem. TubeSky is missing when tvstock runs on a tablet device. So you need to change this line in your build.prop

ro.build.characteristics=tablet

to this

ro.build.characteristics=tv

before flashing tvstock.

After that, make sure you delete SetupWraith, because it will perpetually crash and restart on boot. I haven't tested it any further than that.
[Shield Tablet General] brandonlee96:
im doing that right now! i will let you know the results.
[Shield Tablet General] tenFootPedal:
Apparently play store will auto update itself to the intended device's version. Getting the leanback (TubeSky) version to stay likely involves spoofing your device as an android tv to the play store (via build.prop and/or other means). I don't think I want to devote any more time to play store for now, when apks can be pulled from another device or via Raccoon.
[Shield Tablet General] brandonlee96:
i have the google play working thank you. i just wondering is there anyway we can beef up this mod? btw the recommendations does work it just didn't load up at this time!
[Shield Tablet General] tenFootPedal:
How did you make it stop auto-updating/replacing the vending package?

What did you have in mind?
[Shield Tablet General] LiamAtkins90:
Hi, great thread! Will defenitly be trying this out in the next couple days... but i have a few questions. .

Does GFN work?

Does the system UI mimic ATV? Like the settings menu etc..?

Can we tell the battery level when unplugged?

Also, regarding build.prop edits to mimic the ShieldTV, i haven't changed build.prop to mimic anything in like 4 years haha! so I'm a little rusty, can you kindly show me what lines need changing to successfully spoof the STV?

Also, may be worth adding the Playstore is now working to the OP and credit [MENTION=5847037]brandonlee96[/MENTION] haha :P

Great work guys! This looks amazing.
[Shield Tablet General] x-nivek:
Ca we have this in multirom aside with a Nougat rom?
[Shield Tablet General] Steel01:
Is there much interest in an ATV build for the tablet? I've made ATV builds for the portable which works due to the built in controller. Didn't think it would be as useful here. But if there is interest, I can whip up lineage builds pretty easy. Only real problem is getting tvstock gapps running, I can't track down the bug and none of the framework devs have atv. Side loaded stuff works great, though.
[Shield Tablet General] tenFootPedal:
Some things do and some things don't. For instance, the settings menu is stock tablet, but permission prompts and background apps are tv.

Personally I never unplug mine, but you could tug the notification menu down with the gamepad thumbstick.

That's a good idea. Once I understand what he did and can replicate/automate it, i'll post zips and credit.

*gasp* now we've arrived :)

Personally, ATV on this device just seemed natural, between the wireless controller and HDMI out. As for whether there's a lot interest, I can't say yet.

I started with a Lineage build, and it did work well in CM12 and post-HDMI-audio-fix Lineage with tvstock gapps. There are a couple of things that I still prefer stock for, unfortunately. If Lineage had granular HDMI audio control (as opposed to on/off) and HDMI-CEC, I'd be all over it.
[Shield Tablet General] LiamAtkins90:
[MENTION=8115855]tenFootPedal[/MENTION] thanks for your response bro. Will flash soon, the urge is too great lol
[Shield Tablet General] LiamAtkins90:
[MENTION=5847037]brandonlee96[/MENTION] mind uploading the app of shield games please bud? And maybe a guide to how you got the Google Play store running? Thanks.
[Shield Tablet General] brandonlee96:
Sorry about the long wait you guys......

here is the nvidia games to the stock NVIDIA SHEILD ANDROID TV........

http://www.mediafire.com/file/y17kc4510xo1o0d/TegraZone_Next.apk

just install as user app

Guide in how to get google play to work with the help of [MENTION=8115855]tenFootPedal[/MENTION]

Step 1. Ensure you are rooted with root explorer, text editor, an TWRP recovery

Step 2. folow this post from [MENTION=8115855]tenFootPedal[/MENTION]

https://xdaforums.com/showpost.php?p=71535165&postcount=15

Step 3. then go to TWRP recovery and flash the stock tv gapps

Step 4. once the gapps are done installing go to mount check system

Step 5. go into file manager in TWRP and find and delete (SETUPWRATH) [MENTION=8115855]tenFootPedal[/MENTION] folder from the system/app or system/priv-app

then reboot and wait for it for Google play to appear once it does you download and install the latest nvidia game from the google play store.

it may take awhile for the google play to appear!

also remember that we can use the ps4 controller via bluetooth without root

[MENTION=8115855]tenFootPedal[/MENTION] is there any way we can edit the stock 16gb ROM for the nvidia shield tv to work on the shield k1 tablet?

https://developer.nvidia.com/gameworksdownload#?search=SHIELD%20ANDROID%20TV%20Recovery&tx=$additional,shield
[Shield Tablet General] LiamAtkins90:
I installed the Nvidia games app, thank you, but how long does the Playstore take to appear? Been like 30 minutes and still nothing..

I don't understand, why I'm having issues..
[Shield Tablet General] tenFootPedal:
Thanks, man. I think those steps are more or less what I did, but I always end up with a system that auto-updates the tv vending package to a tablet version. How do you avoid that? Also prior to step 1, have you been through google account/wifi setup?

Having done nvidia aosp builds, I'm thinking the hardware/firmware is different enough between the two products that this won't work. It's probably better to approach each atv feature you'd like to see on an a la carte basis.

Check your /data/app directory. if you have a vending package in there, you're experiencing the same auto update behavior I do.
[Shield Tablet General] brandonlee96:
just give me a little of time. im going to redo my steps and see whats happens. then i will post the steps
[Shield Tablet General] brandonlee96:
i did my steps again and they didn't work sorry about that.

so what i decided to export all my system apps and user apps and zip them up its non flashable just unzip and install the user apps as a user and install all the system apps in /system/app

http://www.mediafire.com/file/apup6yi4b5fg8cx/brandonlee96_apps.zip

if google play is already in system/app or system/priv-app

delete it and copy and paste all the system app folder

then change permissions of the folder to 755 and the apk inside of folder to 644 then reboot

im not sure if it works but can someone please try [MENTION=8115855]tenFootPedal[/MENTION]
[Shield Tablet General] LiamAtkins90:
Any luck on the working Playstore guys?
[Shield Tablet General] LiamAtkins90:
SUCCESSFUL!!

When the Playstore is uninstalled (via /app/data or a system app remover) Google automatically download the Playstore package and install it in the background.

How to get the Playstore working.

Restore stock Nougat or whatever you backed up prior to trying this mod...

Modify the Build.prop file to mimic the Shield TV, modify these lines;

ro.product.model=SHIELD Android TV

ro.product.name=foster_e

ro.product.device=foster

ro.build.characteristics=TV

Install;

• System App Remover

https://play.google.com/store/apps/...ver&pcampaignid=APPU_1_C2LeWP2mJayZgAb41q34Dg

• A File Manager

(with Leanback support, ES, MiX-plorer etc)

** Make sure you have the Sideload Launcher apk on your SD card.. **

Open the System App Remover and remove the Play Store app, this will make the app re-download, but you will be required to sign back in. Don't sign in. Just leave it.

#

Download all attached files in the post and flash in the order [MENTION=8115855]tenFootPedal[/MENTION] says in the first post.

#

Boot back up, and go into the file manager you installed, because it has Leanback support it *should* show up in the Leanback Launcher.

Open the File Manager, install the Sideload Launcher.

Open the Sideload Launcher, open the System App Remover apk.

Find the Google Play apk, click it, then click remove.

This will delete the package, when it removes it, it will automatically download the correct package, that we want, because we are emulating the Shield TV, via the build.prop file.

It now *should* be showing up in the Leanback Launcher, but when opening, will show connection errors, to fix this go into settings, find the Playstore and clear the apks data, afterwards, find Play Services apk, and clear that apks data also.

Now go back to home screen, and open the Google Play app, you should now be fine to download, search for apps, etc...

Hope this helps.
[Shield Tablet General] tenFootPedal:
Thanks Liam, I'll see if I can condense all of this to one googe play and one non-google-play zip.
[Shield Tablet General] LiamAtkins90:
Is this thread dead? Here is an update;

I managed with the help of an XDA member here to get the​ bottom row of icons to be visible, the settings, controller, WiFi, and power off icons, all work except the settings icon, but settings can be accessed via the pull down of the statusbar.

I also managed to get the pop up menu to show up when holding the home button, so we can screenshot, screen record, stream to twitch, activate the mic whilst streaming and the camera (the camera is redundant though, as we'll most likely have the device plugged into the TV with this setup) another thing is we managed to get Netflix working by adding ShieldTV specific code to the build.prop...
[Shield Tablet General] DiogoSilva48:
I want to do with mine but I haven't unlocked bootloader yet, can I use Multirom with nougat ROM ?? In the future I really would like a tutorial to get working like yours.
[Shield Tablet General] tenFootPedal:
Nope, still here. I just haven't had any opportunity to make any updates. I will probably get to the play store script soon after I get back from vacation. It's just, as I said before, not a super high priority for me since I don't use it that way.
[Shield Tablet General] ThauExodus:
Here is my package for TV Settings, I have a LTE EU version with system version 5.0 (so not the latest 5.1).

This is a modified build.prop which sets everything for TV support (including netflix)

https://drive.google.com/open?id=0B3a32W25shYFdERaWTJHZ2hqRGM

This is the actual TV Settings, but in order to use this, we are making our system less secure and have to disable the signature verification of the system.

https://drive.google.com/open?id=0B3a32W25shYFYVhENE55NWRLN1E

But since the TV Settings is from a real Shield TV it is signed with different keys. The fix included in the file above fixes this, BUT selinux is not so excited about that, so we have to set it to permissive.

This file is supposed to be a flashable zip, but for some reason the installation script is broken and I don't know how to fix this, so you have to place the files inside this zip by hand and set the correct permission, otherwise you will get some nice force closes.

https://drive.google.com/open?id=0B3a32W25shYFNVZiWGZTZ3hDRFk

here is a working flashable zip, provided by [MENTION=5458363]LiamAtkins90[/MENTION]

https://drive.google.com/file/d/0ByIKEmoQi-hpd0NRa25HTDFwWU0/view?usp=drivesdk

Root is needed!

Maybe someonce can figure out, why it is not possible to add a google account after flashing the TV gapps. I think some assets are missing, but I don't know how to figure this out and fix it... I hope someone can help.
[Shield Tablet General] LiamAtkins90:
To add to [MENTION=3005789]ThauExodus[/MENTION] excellent work, here is a flashbale zip which I use, to set Selinux to Permissive on boot..

https://drive.google.com/file/d/0ByIKEmoQi-hpd0NRa25HTDFwWU0/view?usp=drivesdk
[Shield Tablet General] boswelja:
So I just tried this on my tab, on first boot, the wifi, and pair buttons worked from leanback, after rebooting again, I get settings FC, Google play games FC, and Netflix fails to open (only the TV app, the regular Android app works fine from sideload launcher)

EDIT: also can't use Android TV remote app to control it
[Shield Tablet General] LiamAtkins90:
Google play games is a known issue, you have to download an earlier build from apk mirror,

I recommend

http://www.apkmirror.com/apk/google...ames-3-7-24-3051774-836-android-apk-download/

You need to uninstall Google Play Games data out of system/priv-app then uninstall it from settings then install the one above^

As for the Settings force close, are you accessing it from the Leanback Launcher? This is also a known issue, you need to access it via the statusbar pull down or via Sideload Launcher.

And you need to add some code to the build.prop to get Netflix (the TV app) to open.

Edit: a Bluetooth remote is preferred to navigate. I use the Amazon fire stick remote to navigate and the 2017 Sheild controller to game.
[Shield Tablet General] boswelja:
I'll try the Google play games workaround later

I can access the full settings app from the status bar, but the leanback wifi button stopped working after a reboot.

What do I need to add to the build prop for Netflix? I'm pretty sure I changed all the props needed to get this working
[Shield Tablet General] DiogoSilva48:
Is there someone planing to do a full tutorial? I'm really really interested in this...
[Shield Tablet General] LiamAtkins90:
Here is mine with included files

EDIT: Updated link with files and better instructions.

https://drive.google.com/file/d/0ByIKEmoQi-hpZGJhVHpSVGcyZUE/view?usp=drivesdk
[Shield Tablet General] DiogoSilva48:
Thanks bro.
[Shield Tablet General] LiamAtkins90:
Had to update link sorry bro

New link is up ?
[Shield Tablet General] Steel01:
People are still interested in this? Guess now that I've got Lineage working well on the shield android tv I can run an atv build for the tablet. The only thing that shouldn't work out of the box is pairing the old controllers. That and Netflix atv, but that's a dumb limitation on the Netflix side. I'll see if I can get to this over the weekend.
[Shield Tablet General] LiamAtkins90:
The only thing that needs fixing on my side is the Tvsettings bro... If you could fix that for us... You can package the work into a ROM and should hopefully be great :) or if you want to go your own route for it then fair enough :) would be nice getting a proper working AndroidTV build for the tablet.... This little hack is like 80% there though :) just needs little tweaking. ;)
[Shield Tablet General] Steel01:
Well, that wasn't too bad. Had to abuse console mode to get hdmi primary to work as expected. But other than that, works just like the shield android tv. The patch used is here. Everything else is stock upstream Lineage. Tested using the addon su zip and opengapps tvstock.

The notes that apply to foster / shield android tv also apply here. Can't pair the old controllers because I'm still missing some framework patches need to make it work. Need to have an input device hard wired first boot, then after the setup wizard, a bluetooth controller can be paired and will work as expected. Netflix atv doesn't work due to the device name whitelist.

I don't expect to build this very often, but if any overt issues come up, please let me know and I'll see if I can look into it.

lineage-14.1-20170708-UNOFFICIAL-shieldtablet-atv.zip
[Shield Tablet General] LiamAtkins90:
Thank you so much man, I'll test this tommorow!

Just a couple questions, do we have the menu overlay of video recording when long press the home button?

Also, what about Shield games? Does that work?

Thanks In advance
[Shield Tablet General] Steel01:
No, I've never tried to get gamecast or shadowcast or whatever the name of it is to work. I've only seen it asked about maybe twice in the whole time I've work on the shield devices. I believe it's tied into the framework as badly as the gamepad mapper is. All the shield exclusive games work, though. Loaded up Borderlands TPS and it ran fine. Well, as fine as a game designed for an X1 runs on a K1 anyways...
[Shield Tablet General] LiamAtkins90:
Tried it, it's nice and more importantly the settings work lol

But a couple things that's making me go back to the previous implementation or hack as it were..

1. The Gamecast as mentioned earlier.

This is a great feature to have included, shame it isn't here.

2. Bluetooth remote lag?

Don't think it's my remote, as it seems to work fine on earlier version.

3. Bottom row of icons are ugly

(and doesn't include the "power" like ATV.)

Nitpicking here, but I use the power option to reboot frequently.. anyway to implement this?
[Shield Tablet General] Steel01:
1. If you're just recording, there's apps out there to do so. Not very good ones, granted, but AFAIK, they work. Haven't looked for ATV support, however, since I don't do recording.

2. Which remote? I used the new shield gamepad, the blocky looking one. It seemed fine to me.

3. It could probably be done. Through a leanbackcustomize app. But there's a reboot option in settings->about. Though, why would you need to reboot so often?
[Shield Tablet General] LiamAtkins90:
Hey man,

I agree there are other options out there, it just more aesthetically pleasing seeing it popup in that Android TV box type thing as oppose to opening an app :)

As for the remote lag, I also have the newest shield controller and you're correct, it's responsive and fast, but I also have another device, a keyboard/touchpad hybrid which connects through Bluetooth, this is the device that lags, no idea why.

I didn't mean reboot I meant sleep, sorry man. My bad there.. but it's basically located under the power icon on the bottom row.

The way we had it previous was perfect in my opinion... Only thing missing was the Settings not opening in Leanback style...

Everything else was great, like Gamecast, Playstore, even managed to retain some tablet functionality like the stylus working and opening the menu when ejected etc.. when used portably lol

This project is great bro, and I think will go on to beat the previous effort of bringing Android TV to the Shield Tab..

Just thought you'd continue the previous work, was surprised lol
[Shield Tablet General] Steel01:
I don't do stock remasters. Everything I do is built from source as much as possible. *shrugs* I just threw it out as another option. The same thing that's available on the shield android tv.

The tv settings problem is probably due to the attempted mashup of android tv and normal android. It just doesn't work well that way. I had some issues doing my initial android tv work where packages from both systems were installed and were conflicting. I had wanted to do a convertible system for the portable and maybe the tablet (like normal android when mobile, but atv when plugged into hdmi), but I'm not seeing how that would be feasible. Get one or the other. Guess a possibility would be to use multirom to boot both.
[Shield Tablet General] wiQbold:
Hi all.

any chance to get it systemless? (made one for my own with your files and leanback from aptoide but settings geht random FCs)

is there a Settings.apk for 5.2 Update? or could i made some myself?
[Shield Tablet General] ThauExodus:
I got the ROM working, even with kind if Netflix support. It required a small build.prop modification, but I have to figure out how much of the modifications is exactly needed. I mean Netflix is starting and I'm able to login and start playing something, but the picture is black and there is only audio.

And I noticed there is no screen settings inside the settings, so I'm not able to calibrate my screen.

I hope you can get the old controller working soon, because I only have this one and using a wired one with otg adapter is kind of annoying ☺️

When using the shield TV settings, there is a shortcut on the right of the wifi shortcut icon to the controller settings and to hibernate or reboot the device.

Edit: here is a screen of the settings shortcut
[Shield Tablet General] tenFootPedal:
Thanks! Will give this a try.
[Shield Tablet General] LiamAtkins90:
I'm having a couple issues with the LOS builds guys,

Bluetooth remote comes unresponsive after a reboot...

Leaving the tablet useless..

(This is now fixed temporarily)

Also as I have a cover covering the screen and after its boots to the OS, the screen blacks out?? Any way to disable proximity sensor?

(Going to manually edit a file to hopefully disable it)

Anyone else see these two issues.. ?

Edit: GeForce Now doesn't seem to work, same with Gamestream.. there isn't any tabs at the bottom of the Nvidia games app, where there is usually GFN, Gamestream settings to adjust resolution and bandwidth etc..
[Shield Tablet General] LiamAtkins90:
Deleted
[Shield Tablet General] tenFootPedal:
[MENTION=1416222]Steel01[/MENTION] I spent some time with your lineage atv build yesterday. First off, I am absolutely motivated to get a LineageOS build to the point I would consider ready and appreciate your help. My wishlist is more or less the same since you fixed HDMI audio.

If you have any hints you could provide on those two items, I would very much appreciate it. Having those two items eliminates two remotes and makes the gamepad the sole input device!

That brings me to my final wishlist item, with which I would actually like to experiment: Native OS support for the shield controller using a kernel patched with ozwpan.
[Shield Tablet General] Steel01:
Granular audio is something I haven't quite figured it yet. I thought it was working on satv, so I figured it would work here, but I didn't check. CEC I'm told works on satv as well, but I don't have any devices to test with. Oh... But I think I know why it would be different here, there's a prop missing.

Wireless controller support is more complicated than that. The ozwpan driver is in the kernel, same as stock. But the user space isn't there, need some framework code from nvidia that they still haven't released. But pairing from the CLI should work. Just not user friendly at all, the p2p network even gets taken down on disconnect. So... One day, we'll get something working, just still isn't yet.