This app need usb debugging allowed. And after use, and back to the Atv 12, it reset the hdr settings to always hdr.
If you set adaptive/auto hdr, in the next reboot will be reset too.
Thanks, but not usable for me.
Practically made that, what in the adb shell command, reboot update.
The change in HDR adaptive to Always is also there for me by using this option. It shows a different behavior (for me), then when I select “restart” from the Android TV options. It was explained why that could be for me. It happens when I get “upgrading” during bootup, which I don’t get using the normal route.
"You will always get that screen when using “adb reboot update” command .
With normal reboot ,CE is loaded in a different manner ,so that screen won’t show . The problem is that in some configurations (certain USB sticks ,ssd,hdd,etc) ,the normal reboot won’t work and will go to ATV instead of CE,even if the USB storage is connected."
I think there is missunderstanding what this app does and why is needed.
When we have fresh device it can’t boot CE from USB/SD. And you need to run this app or run command over adb. But this is needed only once! Bootloader then recognizes CE medium and always boot from it if present. And Android can still be booted without CE medium present.
The exception is CE option in menu Reboot from eMMC/NAND. When this option is used Android is booted even with CE medium present. But when we reboot from Android CE is again booted because CE medium is present.
The conclusion is this: Don’t use this app to reboot from Android to CE because it is not meant for this purpose. I don’t even understand why would you need special app to reboot Android because Android already has this option build in.
What we would need is app called Reboot to Android but I don’t think there is option in Android to change bootloader parameters.
@vpeter the problem is that with some USB storage devices (sticks,ssd,hdd) ,the “normal” Android reboot is not working ,but it’s completely random and is probably an USB devices initialization issue ,similar to what i saw with RPi4 and USB boot in the past .
Unfortunately this is something that can’t be fixed by CE.
Yeah,he may add that option too ,or if someone use the Adaptive HDR (which probably most users should ,considering that having SDR-> HDR on static images isn’t a good idea ,especially with OLEDs),then he/she could use the shutdown script that i’m using and forget about it,no more Always HDR in ATV .
Does only perform a reboot. CE does setup the environment to boot next time to CE again when before the option “Reboot to NAND/eMMC” was used
This is to reset the environment and to call boot init script aml_autoscript on CE media. This is same like press and hold the reset button on the device. This option should only be used once when environment may is virgin or got reset before by a Android update.
@jamal2367 thank you for this platform specific app!
The name is inspired from the original, old tool. “Reboot to LibreELEC” I guess. So maybe another title can avoid some confusion in future. Like “Setup device for CoreELEC” or something similar.
Or multiple options like “Reboot to CoreELEC” what does really only call reboot and a “Setup CoreELEC” option what does use reboot update.
I did not test the app yet but I am not sure id USB debugging must be enabled by user before?
You only run adb reboot update. Maybe a check if it will work before about permissions could be added? On some devices it’s not possible to use this command as it require sudo.
I will incorporate your suggested changes in the next version.
There will then be 2 buttons.
One for the first boot in CoreELEC and one button for the normal boot.
There will be an explanation for each button so that the user knows what to do.
It is currently done in such a way that USB debugging must first be activated in the developer options. If this is not the case, the app terminates with the message that USB debugging should be activated first.
No sudo is required for the app as a local adb shell is executed. Or are there devices that explicitly need sudo anyway.
The app was originally intended for the Homatics Box.