1

The most of TCP And UDP output port are closed in our WIFI network. The only way is for synchronize time of my android 6 in AndroidBox TV device is to be connected to our NTP time server. I tried ClocSync, NTPSync or Smart Times Sync with root access no issues. All of these application are connecting well on the NTP server and showing the NTP time, but they didn't change the system time of the android device in my case. I noted I don't have any /system/etc/gps.conf in my system too Google play is impacted by this problem and I can not to be connect with it if the time is no good.

Thank for any help

  • What device do you have? It's possible that you might need a root app for it to have the rights to change the device time. – Matthew Read Jan 11 '17 at 20:53
  • Sorry I forgot I've Android TV Leelbox S1 and root access. I'm close to find a solution with busybox rdate Thank for answering – dubis Jan 12 '17 at 8:55
0

Requirements

1.Root access

2.Busybox : for 'rdate' service

3.init.d folder in /system/etc/ to start daemon service at boot

mount system partition in read write :

su -
mount -o remount,rw /system

Create a file 99my_daemon at /system/etc/init.d with executable permission and enter the following lines

#!/system/bin/sh
while ! ping -c1 "0.pool.ntp.org" &>/dev/null
do wait 10
done
/system/xbin/busybox rdate -s 0.pool.ntp.org
exit 0

Close writing the /system partition

mount -o remount,rw /system

And reboot, your system should be connected to the 0.pool.ntp.org and synchronized when he booted. You could use the crontab to check synchronization during the using of the device

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.