在引导和每5分钟之后使用这些命令,但是在正常运行时间为8、9小时的、、两台android设备的秒数之间似乎有不同的时间。例:设备1: (Android 6 Marshmallow) 2020-03-10 09:16:33settings put global ntp_server pool.ntp.org
settings put global auto_t
我想在10天后将当前日志(ntp.log)复制到旧的(ntp.log-ntp.log),但这不起作用。该脚本继续写入到一个文件中,并且不旋转。它由cron每5分钟运行一次。import oslogHandler = TimedRotatingFileHandler('/root/ntp/log/ntp.log', w