How to send a command to the terminal through android app and get the output back? For example, sending \"ls /\" and getting the output to print it in the GUI?
Try this answer there is way to run shell commands on android programmatically https://stackoverflow.com/a/3350332/2425851