Development board is connected to the first through the ADB, the ADB Shell state using the log adb shell command.
First set the time zone
setprop persist.sys.timezone Asia/Shanghai
Look at the current NTP server settings
settings get global ntp_server
Returns null, then you can set it to Ali cloud NTP server: ntp1.aliyun.com
settings put global ntp_server ntp1.aliyun.com
Can query the NTP server is set again correctly
settings get global ntp_server
Then restart the development board
reboot
After the restart, the development board can automatically obtain the time from the network. After restarting, do not get the time, you can enter the system's Date & Time settings interface, the Automatic date & time option is turned off, then back on, you can automatically get the time.
Original: http: //www.pianshen.com/article/7435186220/