0
try {
Process process = Runtime.getRuntime().exec("/system/xbin/su -c sh");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("/system/xbin/rsync -avzru /data/shareData/ 192.168.84.111:/data/shareData/");
String output=new String();
os.flush();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Log.i("rsync",""+e.getMessage());
}
但沒有給出任何日誌輸出,也沒有rsync的成功。你能給我一些建議嗎?使用rsync的兩個android設備之間的rsync文件