I am able to execute an adb shell command of type from the terminal:
./adb shell 'sh -c "param1 param2 param3 param4"'
However, when I am trying to run this inside android app using Runtime.exec
the above command gets broken down into different params of the form
[adb, shell, 'sh, -c, "param1, param2, param3, param4"]
However, that is a single input param when ran from shell. How to run this inside the app?
note: param is a kind of path e.g. /a/b/c/