yashsingh1/xdaforums huggingface dataset:
[Shield Android TV Android Development] laharl_22:
How to fix bootloader error on latest?

---------- Post added at 04:56 PM ---------- Previous post was at 04:30 PM ----------

Does i need to flash mm stock ?i need a answer quuckly i have no longtime for this today thanks
[Shield Android TV Android Development] laharl_22:
I have flashed 6.2 expérience bootloader no unable to boot in what can i do?

---------- Post added at 06:18 PM ---------- Previous post was at 06:03 PM ----------

I have NVIDIA logo but not access to bootloader or os what i do?
[Shield Android TV Android Development] Steel01:
So, a few things came together wrong today. For people on the original emmc model or the pro model, everything should work fine. Maybe a popup to ignore on boot, but functionally fine. It will refuse to install period on the new emmc model (darcy).

The main problem is that I didn't pull together an update to twrp early enough. I switched to using the vendor partition and didn't push the update for recovery near soon enough. Now I'm waiting on them to finish a mass build to get that released. This is only really a problem for darcy because some scripts won't be able to access the vendor partition and set stuff up for darcy. By default I set everything up for the first gen devices.

The secondary problem is that I didn't realize that darcy uses a different bootloader string than foster_e/foster_e_hdd. So, even if the device has the correct bootloader, the assert won't recognize it. I'm already testing the fix for that.

Hopefully by next week, all the little pieces will have fallen into place and stuff will go back to 'just working'.
[Shield Android TV Android Development] laharl_22:
I tried flash 6.2 bootloader on my TV 16 go Darcy now i have the message lock the bootloader and NVIDIA logo but unable to boot fastboot my shield is dead?
[Shield Android TV Android Development] Steel01:
Oh no, it's far from dead. As long as the display still comes up, you can still reload it. You do have to figure out how to get into fastboot, though. Requires a controller or a USB keyboard, however. I don't have the link handy, but nvidia has a FAQ page on it. The website nvidia shield zone also outlines how to do so.

Unfortunately, you'll likely have to wait until next week for the updated build to get it running lineage completely correctly. Though, if you're on the 6.2 bootloader, the build from last week should work well enough as well.
[Shield Android TV Android Development] laharl_22:
I have really no access to bootloader tested with keyboard and shield controller what can i do?
[Shield Android TV Android Development] JesseK:
Not using LineageOS (yet) - but I must say I am impressed with [MENTION=1416222]Steel01[/MENTION] and his/her interactivity with the community here. I'm mainly after a rom which I can remove the crap I don't need. Plex, Netflix, etc. I'm on a 16gb Shield, so obviously space is of the essence, especially when running Kodi/MrMC with a large library.

Hope to join you soon.
[Shield Android TV Android Development] Steel01:
Kodi is one of my main use cases as well, so I can say it works well in Lineage. I would recommend waiting until after the current mess is sorted out before trying to install, though. Need a new twrp release and some internal Lineage stuff to get updated. I'm hopeful for getting that all done this week, but as always, that may not go smoothly. I'll post back here once it's all in place.
[Shield Android TV Android Development] JesseK:
Pretty much what I was doing. The wife wouldn't like the change from 8.x back to 7.x. Gotta keep things consistent to say the least.

Thanks for your work and more importantly your time, in any case.
[Shield Android TV Android Development] laharl_22:
How access bootloader without a and b button? It doesnt work for me now
[Shield Android TV Android Development] Steel01:
AFAIK, that's the only way. Using one of the controllers or a keyboard. I haven't personally done the latter, but I have used both the older and newer model controllers on my darcy to get to fastboot. One thing to note, you do have to make sure the controller is somewhat charged before trying. If the battery is completely dead, it won't work. (Which seems bogus to me, since it's plugged in... But it is what it is)
[Shield Android TV Android Development] Steel01:
Well... 0/2 for stuff I needed for foster this last week. Still no new twrp or updates to the internal lineage things. I did push in the fix for darcy refusing to update period, though. But if anyone does so, they'll get broken widevine. Back to hoping stuff gets done this week.
[Shield Android TV Android Development] roblav96:
Your efforts are greatly appreciated either way =]
[Shield Android TV Android Development] Steel01:
Fun times. P source is out already. And I've already got foster booting it. As normal, it's going to take a while to get all the Lineage stuff in order for a real release, but when that happens, foster will be part of the initial release.

That said, focus is shifting that direction, so things on 15.1 will slow. Twrp did release its new version earlier this week, so the current Lineage releases will work correctly if you install that first. However, the stuff for automagically installing the correct bootloader is still not in. If you're coming from stock 7.0.x, that's not a problem, only if you're on a older Lineage release or stock 6.x or lower. The latest Lineage builds will refuse to build if it's on the wrong bootloader, so no worries about accidental incompatibilities. If you're on the latest twrp and it installs, everything is good to go. If it complains about the bootloader, unfortunately, you have to go grab a recovery image and manually install the latest bootloader first.
[Shield Android TV Android Development] laharl_22:
This is not possible to boot a corrupted bootloader?
[Shield Android TV Android Development] Luca-91:
Hi Steel01, as usual thank you very much for your work.

I've noticed that the last release fails to install on my foster due to the "unknown bootloader" error. My Shield was running Nougat before LOS. What's the problem? What bootloader should I install exactly (from what recovery image)?

Thanks
[Shield Android TV Android Development] the.D:
I have the same question. Will the latest recovery image provided by Nvidia be sufficient?
[Shield Android TV Android Development] Steel01:
The latest recovery image is correct. As of writing, that is 7.0.2. Download the one for your model and flash the blob.

Alternatively if you don't want to download the entire image from nvidia, I've got them extracted here:

https://gitlab.incom.co/CM-Shield/p.../tree/lineage-15.1/shield/firmware/bootloader

MAKE SURE YOU USE THE CORRECT BLOB FOR YOUR MODEL:

foster_e: original/2015 emmc/16gb model

foster_e_hdd: pro/500gb model (no differences between original and newer releases)

darcy: newer/2017 emmc/16gb model

If you flash the wrong one, your device will permanently brick and can only be fixed through an RMA, which may or may not be honored by nvidia.

Do note that you have to fastboot flash the blob and then let it boot to android before rebooting back to twrp to flash the lineage update.

I'm still trying to get the infrastructure set up where the Lineage install zip will just handle this for everyone, but it's still not done yet.
[Shield Android TV Android Development] Datboi459:
Can you make a custom rom for the shield tv that has multiple app rows, is rooted and is similar to the stock oreo firmware? i will be willing to donate if you can build a custom firmware for me
[Shield Android TV Android Development] Steel01:
Already done? Flash the latest Lineage, addon-su from Lineage, and opengapps tvstock. That's what I use as a dd. Except maybe the multiple favourites row thing, I've never tried to do that.
[Shield Android TV Android Development] Datboi459:
Can you please pm me

---------- Post added at 06:13 PM ---------- Previous post was at 06:03 PM ----------

Can you put some lines of code to enable multiple app rows for favorites?
[Shield Android TV Android Development] Steel01:
The atv launcher is a closed source google component with very little in the way of customization available. I'm doing good to be able to set default favourites the way I do.
[Shield Android TV Android Development] Datboi459:
Do you have any screenshots or videos of the latest lineage OS firmware update?
[Shield Android TV Android Development] Mygod Studio:
Just unlocked my darcy to try out this ROM. Mic seems to be broken. Everything else seems fine except that lots of features are missing from the stock ROM. Reverting to stock for now. Thanks to Steel01 anyway. :)
[Shield Android TV Android Development] roblav96:
Can you please elaborate on what missing features? I'm debating installing lineageos but worried about quirks.
[Shield Android TV Android Development] Mygod Studio:
For me, 4k isn't working. Resolution selection is missing. CEC settings are missing too. Basically you can expect just a very basic Android TV.
[Shield Android TV Android Development] roblav96:
oh snap, no 4k? :eek: Well I'll have to wait till that gets fixed. Thanks mate!
[Shield Android TV Android Development] dollebrekel:
Feature list

Where can I see feature list?

Also are they working on 4K? Because, I have a 4K screen
[Shield Android TV Android Development] peestandingup:
Who even knows since they gloss over this. This ROM is over a year in development & still doesn’t have 4K. So there’s a reason this thread doesn’t see a lot of interest. I’d love to use it BTW, but if I were gonna stick with 1080p, I’d go w a Mi Box or something similar.

I’m sorry, but this is a high end 4K box and what it’s meant to do. Without that it’s pretty worthless. No offense to the developer, but if it were me, I’d get that straight first before I did anything else.
[Shield Android TV Android Development] slutexpress:
Hey Steel01, do you by chance have the last 14.1 LOS ROM update? It seems that Lineage only keeps 5 builds and the last are the 15.1.

Thanks!
[Shield Android TV Android Development] :
Hi,

Can anyone confirm me if MTP working normally between Shield TV and PC ? My cable and drivers works properly, because adb working normally, but when on PC I open Shield Android TV, there is only blank folder, and on Shield TV in Notifications I don't have nothing. Thank you.

Shield TV 16GB - 2017 - Darcy

lineage-15.1-20180820-nightly-foster-signed

open_gapps-arm64-8.1-tvstock-20180825

Magisk-v16.7

twrp-3.2.3-0-foster
[Shield Android TV Android Development] the.D:
https://xdaforums.com/shield-tv/development/rom-lineageos-shield-android-tv-t3632652/post76823739
[Shield Android TV Android Development] :
I looked at the developer settings and there was already selected MTP, so I change to PTP and then back to MTP and finally it works, but thank you for tip.
[Shield Android TV Android Development] Steel01:
What do you mean 4k isn't working? After the recent big update I pushed in, 4k should work just fine. I haven't tested an official build since it went in, but in my local builds, I had YouTube playing media at 4k as expected. Now, the interface will still run at 1080p, but that's what stock does as well. The main problem there is hotswaping displays. Being able to resize the interface on the fly is somewhat painful. I presume that's why Nvidia hardcoded the interface to 1080. But the display should still be 4k with the interface scaling to that.

To answer the complaints about 'glossing over' 4k, that's been discussed in this thread several times already. Prior to the stock Oreo update, the graphics hal used prioritary modifications to the framework to support 4k. Trying to use those on Lineage on a 4k display resulted in extremely broken graphics. There wasn't anything I could do to fix that.
[Shield Android TV Android Development] :
Hello again :),

I want ask you, how can I grant write access to USB key for apps (eg. Total Commander), because in ROM I don't have default app Files (com.android.documentsui) which is required, when you try for first time write to USB. I have gapps for tv instaled and unfortunately there isn't this app too. Then I tryed install from apkmirror this app (version 7 and 8) and app doesn't work when I tryed open it. Any ideas ?

Thank you.
[Shield Android TV Android Development] Mygod Studio:
Hey Steel01, thanks for your reply! I didn't mean to deprecate your work but for whatever reason it just wasn't working on my side. For now I don't have time to try out your ROM again and grab a bug report but maybe sometime in the future.

I did notice the interface scaling issue, in fact not only in Nvidia Shield but also other Android TVs too. I'm curious if you know where exactly in code did this hardcoding happen? :)
[Shield Android TV Android Development] o-l-a-v:
A bit off topic, but I guess users of 3rd party firmware might be able to answer this

After flashing my Shield TV Pro with v7.0.2 boot.img through fastboot, I can't connect to it through USB any more, and therefore not finish the flashing process.

Windows will not recognise the USB device, uninstall (Device Manager) and reinstalling fastboot/adb drivers does not fix it.

Any one experienced the same? Any solutions/ suggestions on how to make the device usable again?

(See my thread here for more details: https://xdaforums.com/showthread.php?t=3834838)
[Shield Android TV Android Development] hapee:
just to be sure

so do I have to run:

fastboot flash boot foster_e_hdd.blob

if I have the shield tv pro?

If I do it I get a:

FAILED (data transfer failure (Protocol error))

Thanks in advance.

Hapee
[Shield Android TV Android Development] taufikthexfader:
Dear Steel,

Any chance or hope to make shield tv treble-able? I know it will be pain in the a$$, but will also make further development easier.
[Shield Android TV Android Development] laharl_22:
How to fix a bricked bootloader ?i have no os and no access to twrp
[Shield Android TV Android Development] Mogster2K:
Do you have another USB cable you can try?
[Shield Android TV Android Development] hapee:
I did manage to bypass that error indeed but I actually still want to know if that command is what is should be:

fastboot flash boot foster_e_hdd.blob
[Shield Android TV Android Development] Mogster2K:
I'm not sure what the files are for the Pro version, but on the 16GB version it's "fastboot flash staging blob" for the bootloader and "fastboot flash boot boot.img" for the boot/kernel image. What are the contents of the flash-all.bat file?
[Shield Android TV Android Development] Steel01:
Assuming the two things below: yes.

1) you've got the blob from my link a page or so ago

2) you have the the pro version

Edit: actually, no. You want:

fastboot flash staging foster_e_hdd.blob
[Shield Android TV Android Development] harkaman:
[MENTION=1416222]Steel01[/MENTION] Is this possible to add this back button mouse function? Will you please add this? or Is that possible to build own build?

thanks a lot.
[Shield Android TV Android Development] harkaman:
Please help me. i am building custom from source, i am facing follwing'.

/home/harkaman/android/lineage/out/build-lineage_foster.ninja is missing, regenerating...

[742/1093] including ./system/sepolicy/Android.mk ...

./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version

[1091/1093] including ./vendor_nvidia/shield/Android.mk ...

build/core/base_rules.mk:238: error: vendor_nvidia/shield/app: MODULE.TARGET.APPS.BlakePairing already defined by vendor/nvidia/shield/app.

14:06:34 ckati failed with: exit status 1

#### failed to build some targets (29 seconds) ####
[Shield Android TV Android Development] Steel01:
You somehow got two copies of the nvidia vendor. Delete the one under vendor_nvidia. The correct path is vendor/nvidia.
[Shield Android TV Android Development] harkaman:
https://ibb.co/eskPjp

ss from my build

---------- Post added at 09:41 PM ---------- Previous post was at 09:37 PM ----------

https://pastebin.com/h4WX3SYy

My build logg
[Shield Android TV Android Development] Steel01:
As the error states, you also need the proprietary google repo from the same place as the nvidia one.
[Shield Android TV Android Development] harkaman:
Got too many error. Can please give me some guide/steps to make clean from downloading source code to build custom rom, thanks
[Shield Android TV Android Development] mattcl:
Hi Steel01,

thank you very much for all your work,

1 question:

Will there be a full Android version coming at any time ?
[Shield Android TV Android Development] Steel01:
A while back, I had tablet style android working alright, but sometime during the Oreo cycle, something broke and I haven't figured out how to make it boot since. Granted, I've not put much time into trying either. Maybe once P is stable I'll look into it again, but for now, I'm not working on it.
[Shield Android TV Android Development] Chris_van_Eijk:
Bootloader not supported

I am trying to flash lineage-15.1-20180917-nightly-foster-signed.zip with TWRP. I get the error that the bootloader is not supported: 24.00.2015.42-t210-4b5a7280.

Supported bootloaders:

24.00.2015.42-t210-39c6cadc

24.00.2015.42-t210-b142fead

24.00.2015.42-t210-ee32486f

Where can I find the correct bootloader to flash?
[Shield Android TV Android Development] fr500:
hey [MENTION=1416222]Steel01[/MENTION] how's it going? :)
[Shield Android TV Android Development] Steel01:
Things are rolling for P, on all variants still. Not ready for release yet, but progress goes on. Got to hunt down some rather important bugs. Like retroarch (and presumably everything else) not being able to access /storage/emulated/0, aka anything useful. And Talos Principle crashing on start. Etc, etc. But feature wise, everything is on par with O afaict.
[Shield Android TV Android Development] fr500:
ah, I was more like saying hi casually but thanks for the status update :)
[Shield Android TV Android Development] o6xcc:
Testing lineage-15.1-20181015-nightly-foster on Shield TV 16Gb 2015

Dear developer, Thank you for the great ROM! :good:

After some time testing emerged some nuances:

1 .The old controller (WiFi) does not work. Whether it is possible to realize its support, as it is done here: videomap.it/forum/viewtopic.php?t=1965

???

2. The extended Reboot-Shutdown-Recovery (enabled by devmenu) button does not work with the controller or remote control, only with the mouse. Can you fix it?

3. Can you assign a shutdown function to a keyboard or gamepad key combination?

4. Can you realize turning off the green backlight when the device go to sleep?

5. Cast function is not working now.

6. LOS installer show 'error 7' but it can fixed by this manual: lineageosdownloads.com/fix-error-7-lineage-os/

8. Can you realize a list of recent applications as it is made in the official firmware? Would like to be able to conveniently manage it with the game controller or remote control.

9. Can you realize a customizable sound volume?

10. Stock LOS keyboard support is only English language. why?)

11. Can you realize the function of mounting the flash drives as well as on the official stock? With notification and unmounting.

Now Total Commander app show me error: App missing! The 'Documents' app is not installed! It need to choose the folder for write permissions. Please contact your device vendor and complain that app 'com.android.documentsui' is missing.

ps. sorry for my english)
[Shield Android TV Android Development] banderos101:
Hi steel

Firstly, thanks s much for the work you`ve done for the shield family devices, especially for keeping at it with the loops you`ve had to jump through to get some things to work.

Im hesitant to put more on your plate here by asking, whether you made any progress with, if i read a post you made somewhere correctly, progress with the x1 chip root exploit, or whether that ended up in a dead end.

My situation is a previously unlocked bootloader, but busted micro usb, so no fastboot, which means no fastboot flashing custom roms/recovery/root. I figure my last hope is a root exploit that might allow me to use twrp app or a recovery flash app(root), to flash twrp and everything that comes with it after that.

Probably a very specific problem that you probably have enough on your plate or are to busy to spend time on, although knowing that its not possible through your tests would be good to know aswell.
[Shield Android TV Android Development] Azzcri:
Hi there,

Ive run into a problem while flashing lineage os on my nsatv 16gb 2017.

While installing the rom, ive got an error message.

…..

Warning: No file_contexts

This package supports bootloader (s): 24.00.2015.42-t210-39c6cadc, 24.00.2015.42-t210-b142fead, 24.00.2015.42-t210-ee32486f; this device has bootloader 24.00.2015.42-t210-9ad9891e.

Updater process ended with ERROR: 7

Error installing zip file `/sdcard/lineage-15.1-20181022-nightly-foster-signed.zip`

Updating partition details…

…done

I tried the followed twrp versions :

3.2.1-0

3.2.1-1

3.2.3-0

codename foster

thanks for advice

cheers

:)
[Shield Android TV Android Development] o6xcc:
this link: lineageosdownloads.com/fix-error-7-lineage-os
[Shield Android TV Android Development] Mogster2K:
Sounds like you need to update your stock ROM before installing this one.
[Shield Android TV Android Development] Azzcri:
The link posted above worked.

Problem solved

Thanks
[Shield Android TV Android Development] Steel01:
So, note to anyone that's hacked the install script to install Lineage: you're going to run into problems. From video distortion to crypto errors, so on so forth. If the bootloader doesn't match what the kernel expects, any number of things can go wrong. I've even seen wifi fail to connect.

On that note... The infrastructure pieces finally came together this weekend. Starting with Mondays builds, official Lineage releases will have the bootloader updates integrated. So, instead of throwing the 'incompatible bootloader' error, it will install the appropriate one as needed and carry on. Do note this only applies to the commercial variants foster_e, foster_e_hdd, and darcy. For the others including jetson_tx1, I cannot include the bootloaders for various reasons.
[Shield Android TV Android Development] @muja@:
Thanks mate,god to know,cheers.
[Shield Android TV Android Development] ahoslc:
What bugs are left?
[Shield Android TV Android Development] gambaaa:
Could anyone tell me what's the difference between this and the OREO update form nvidia shield tv. What's the advantage on LineageOS
[Shield Android TV Android Development] talkativetech:
Hi, I'm should be getting my shield TV 2017 in the mail soon. Does lineage os work pretty well? I'm literally only using two apps Plex and YouTube. Now I do understand cuz lineage blocks google services. I will not have access the app store and YouTube. That's fine the two questions I'm needing to ask.

What kind of options do I have for getting Plex for Android TV? Or other applications? Right now I'm using Aurora Store for all of my apps. Since all of my Android devices are using lineage os.

Does YouTube Vanced or someone else have a port for android TV? I really need this Cuz to be honest, I hate the browser versions!
[Shield Android TV Android Development] unibomber:
Is the ldac bluetooth codecs enabled in this? Or however that works??
[Shield Android TV Android Development] Steel01:
[MENTION=8865678]talkativetech[/MENTION] Erm... What? Lineage works just fine with google services. Just install an atv gapps pack from somewhere like opengapps. I use youtube fairly often. And kodi and netflix. Not a plex person myself, but think I've heard reports of it running fine.

[MENTION=1164979]unibomber[/MENTION] I've done very little with bluetooth directly. But I'm fairly certain that Lineage will support whatever stock does. All I can say for certain though is that I've use the razer hammerhead bt earbuds on these builds. Beyond that, I've not tested.

https://review.lineageos.org/#/c/LineageOS/android_packages_apps_TvSettings/+/234313/

Some people will be happy to see this change. Hoping to have it in for builds tonight. Maybe sometime I'll take a shot at advanced reboot too, but not yet.