I am using Android Jetpack Compose to build a little app, and don't seem to be able to run terminal commands.
I have tried the following:
val cmdExample1 = arrayOf("sudo", "apt", "install", "curl")
val cmdExample2 = "sudo apt install curl"
... and the same without sudo.
Runtime.getRuntime().exec(cmdExampleHere)
What I get is the following error;
Cannot run program "apt": error=2, No such file or directory
or, of course
Cannot run program "sudo": error=2, No such file or directory
Now, I know neither sudo nor apt are builtins, but how am I supposed to perform such a simple operation? And most importantly... where can I find documentation on the Android builtin terminal!!