// 这里主要注意下面的GMT+08:00 有时候会少 或者多8 小时!!!
process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("setprop persist.sys.timezone GMT+08:00\n");
os.writeBytes("/system/bin/date -s " + datetime + "\n");
os.writeBytes("clock -w\n");
os.writeBytes("exit\n");
os.flush();
设置android系统时间
最新推荐文章于 2022-08-12 16:02:43 发布