![r1_rtc_hw连接.jpg](/%E4%BD%95%E6%B5%A9%E9%92%A7/r1_rtc_hw%E8%BF%9E%E6%8E%A5.jpg)
¶ Android命令行窗口
如果要在Android系统里面使用shell命令,需要通过ADB进入Android的命令行窗口。ADB的使用教程请参考 adb调试 一章。通过adb打开Android系统命令行后。
adb root
adb shell
- 查看当前系统时间
data
- 设置当前系统时间
date --set='2023-10-25 15:17:42'
- 将系统时间保存到RTC
hwclock --systohc
- 查看时间是否保存到RTC
hwclock --show
- 断电两三分钟看系统时间
data