2012年11月15日

摘要: String[] CMD = new String[3];CMD[0] ="/system/bin/sh"; CMD[1] = "-c";CMD[2] = "busybox cat /sys/test";Process proc = Runtime.getRuntime().exec(CMD); //执行linux命令DataInputStream dis =new DataInputStream(proc.getInputStream()); //返回之后命令后的数据String result = dis.readLine(); 阅读全文
posted @ 2012-11-15 14:31 Binarys 阅读(162) 评论(0) 推荐(0)

导航