cmd或shell如何执行adb shell之后的命令
2016-11-30 本文已影响0人
卡农Lucas
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"