修改系统时间
更新:HHH   时间:2023-1-7


最近有一项目要求修改系统时间

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();  
 } 

返回移动开发教程...