(2019-02-20, 12:11)jurialmunkey Wrote: [ -> ] (2019-02-18, 18:30)starkman Wrote: [ -> ]@jurialmunkey
Is there any way for us (or you) to create / add a "Boot to Android" option on the Power Menu, for everyone that uses Eminence 2.0 on CoreElec / LibreElec setups?
The default Kodi (17, 18) skin has that option (on CoreElec).
Would be much appreciated !
Skin Settings > Miscellaneous > Customise shutdown menu
Add an item with the action:
System.ExecWait("/usr/sbin/rebootfromnand")
I have no idea if that works as I don't use Android - looks like a custom LibreElec command. Got it from this thread:
https://forum.kodi.tv/showthread.php?tid=303833
@
jurialmunkey, Is it possible to add two or more consecutive actions within an item ?
As I stated on another post of mine (
https://forum.kodi.tv/showthread.php?tid...pid2825316 ), the action System.ExecWait("/usr/sbin/rebootfromnand") does not by itself reboots to Android / Nand, so we also need to press "reboot" after that.
If I'm getting it right, and judging by these links:
https://github.com/CoreELEC/CoreELEC/blo....patch#L10
https://forum.libreelec.tv/thread/5848-8...?pageNo=58
I have to add another action command after System.ExecWait("/usr/sbin/rebootfromnand"). (maybe I have to add XBMC.Reboot() ? not sure yet )
An alternative way would be to edit the related (to power menu) .xml file to include this code, but I cannot find it withing this path :
Addons\skin.eminence.2
In Estuary the file is called DialogButtonMenu.xml
Any help / idea would be appreciated.
p.s. I'm using CoreElec (a minor fork of LibreElec for AmLogic devices)
EDIT:
Nevermind, I found out what to do. Here it is, in case someone else needs it:
- You cannot add more than one action (two or more consecutive actions) within one item by going to "Skin Settings > Miscellaneous > Customise shutdown menu".
- In skins like Eminence 2, there’s usually no DialogButtonMenu.xml or any other related file to edit that would have the result we want.
You can do what's described here:
https://forum.kodi.tv/showthread.php?tid...pid2500298
In my case these were the steps:
1) Created an "overrides.xml" file with this content:
<?xml version="1.0" encoding="UTF-8"?>
<overrides>
<override action="RebootToAndroid">
<action>System.ExecWait("/usr/sbin/rebootfromnand")</action>
<action>XBMC.Reboot()</action>
</override>
</overrides>
2) Copied it within the "userdata" folder
3) Went to "Skin Settings > Miscellaneous > Customise shutdown menu" and added an item with the label "Reboot to Android" and this action (without the quotes): "RebootToAndroid"
That's it. It seems to work fine.