62,612
社区成员
发帖
与我相关
我的任务
分享
public static void pull(){//手机到android
String cmd="F:\\workbase\\KunPeng_version1.01\\src\\adb.exe pull data/data/com.yarin.android.MyContacts/databases/mycontacts.db F:\\ ";
System.out.println("adb push"+cmd);
Process p;
try {
p = Runtime.getRuntime().exec(cmd);
System.out.println(":::::::::::::::::::::::::::::::::::::::::>>>>>>");
p.waitFor();
Scanner sc = new Scanner(p.getErrorStream());
if(sc.hasNext())
System.out.println(sc.next());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}