修改系统时间
最近有一项目要求修改系统时间
try {
Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("date -s 20150319.024012; \n");
os.writeBytes(lastTime);
} catch (Exception e) {
e.printStackTrace();
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。