2015-10-28, 18:50
Tried to execute this command to reboot an Android TV Box:
{"jsonrpc":"2.0","id":1,"method":"System.Reboot" }
Got this message:
{"error":{"code":-32100,"message":"Failed to execute method."},"id":1,"jsonrpc":"2.0"}
And the device obviously did not reboot.
The permissions are ok:
{"jsonrpc":"2.0","id":1,"method":"JSONRPC.Permission" }
{"id":1,"jsonrpc":"2.0","result":{"ControlGUI":true,"ControlNotify":true,"ControlPVR":true,"ControlPlayback":true,"ControlPower":true,"ControlSystem":true,"ExecuteAddon":true,"ManageAddon":true,"Navigate":true,"ReadData":true,"RemoveData":true,"UpdateData":true,"WriteFile":true}}
{"jsonrpc":"2.0","id":1,"method":"System.Reboot" }
Got this message:
{"error":{"code":-32100,"message":"Failed to execute method."},"id":1,"jsonrpc":"2.0"}
And the device obviously did not reboot.
The permissions are ok:
{"jsonrpc":"2.0","id":1,"method":"JSONRPC.Permission" }
{"id":1,"jsonrpc":"2.0","result":{"ControlGUI":true,"ControlNotify":true,"ControlPVR":true,"ControlPlayback":true,"ControlPower":true,"ControlSystem":true,"ExecuteAddon":true,"ManageAddon":true,"Navigate":true,"ReadData":true,"RemoveData":true,"UpdateData":true,"WriteFile":true}}