Kodi Community Forum

Full Version: Run Shell Commands
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is any way to run android shell commands or start an intent with args?
Short answer: Yes.

Long answer: ... needs more context
in my case i want do something like "am broacast -a <ACTION_NAME>"
can tell me an addon that do something like that?
What exactly are you trying to do?
i'm developing an app that overwrite kodi's interface. the solutions that i find are sending a broadcast to android app from kodi (this is why wanna know to run shell comands and xbmc.builtin StartAndroidActivity dont work) or comunicate with android app using websockets(only work in devices with root)
On what device does StartAndroidActivity not work?

It's working for me on a rooted Fire TV (as well as before I rooted), unrooted Shield ATV and Fire TV Stick and have yet to find an app that can't be launched this way.
StartAndroidActivity only works with activities, in my case i want communicate with a service