1
Process p = Runtime.getRuntime().exec(cmd);
PrintWriter p = new PrintWriter(p.getInputStream());
p.println("dir /c /d");
2
adb shell <cmd.txt
3
adb shell "am ba"
Process p = Runtime.getRuntime().exec(cmd);
PrintWriter p = new PrintWriter(p.getInputStream());
p.println("dir /c /d");
adb shell <cmd.txt
adb shell "am ba"