I'm trying to execute some commands from android app:
String[] cmd = {"su","-c","cat /storage/sdcard0/test.dat > /dev/ttyGS1"};
Process process = Runtime.getRuntime().exec(cmd);
process.waitFor();
Nothing happens after executing this but when I the same command works on adb shell without any problem.
su -c cat /storage/sdcard0/test.dat > /dev/ttyGS1
Does anyone know where I can try to find reason for this problem?