Change key to
<key id="61524">RunScript(/storage/reboot_to_android.py)</key>
and then copy file reboot_to_android.py
to /storage
.
https://mega.nz/file/rQhUxIyQ#off71ZEZCmdpKwBvH8WVmQ00DCQ2gs6HM4pY4ePtM8E
You can do this manually or type this commands in ssh session
cd /tmp
megadl https://mega.nz/file/rQhUxIyQ#off71ZEZCmdpKwBvH8WVmQ00DCQ2gs6HM4pY4ePtM8E
mv reboot_to_android.py /storage/reboot_to_android.py
Reboot and check if works. If not enable kodi debug log and check inside for any errors.
If editing file /storage/.kodi/userdata/keymaps/keyboard.xml
then XBMC.RunScript
must be used.
File reboot_to_android.py:
#!/usr/bin/python
import subprocess
subprocess.call(["/usr/sbin/rebootfromnand"], shell=True)
subprocess.call(["/usr/sbin/reboot"], shell=True)