[App] Fake Time Server
Posted: Tue Jan 24, 2017 9:05 pm
If you block internet access completely to your tizen tv you will block the ability for to get time from server. TV cat get time for user interface from EPG however it does NOT do that for console and other possible stuff also. Best way is to set up fake time server to have always accurate time in all places. Address of original time server is:
time.samsungcloudsolution.com
I suggest blocking all communication with this server and redirecting it to some local machine on which you have to be able to accept request:
You can use any language of your choosing to generate response to such request but I will post my PHP scripts.
On 32 bit system you can use:
On 64 bit system it can be simplified to:
If you decide to use Apache you will have to make it treat files without extension as PHP, you can achieve that by adding to your httpd.conf those lines:
time.samsungcloudsolution.com
I suggest blocking all communication with this server and redirecting it to some local machine on which you have to be able to accept request:
Code: Select all
/openapi/timesync?client=TimeAgent/1.0
On 32 bit system you can use:
Code: Select all
<?php
$milliseconds = round(microtime(true) * 1000);
$milliseconds1 = $milliseconds & 0xffffffff;
$milliseconds2 = $milliseconds / 0x100000000;
$mb_milliseconds = pack("LL", $milliseconds1,$milliseconds2);
echo $mb_milliseconds;
echo $mb_milliseconds;
?>
Code: Select all
<?php
$milliseconds = round(microtime(true) * 1000);
$mb_milliseconds = pack("QQ", $milliseconds,$milliseconds);
echo $mb_milliseconds;
?>
Code: Select all
<Files *>
ForceType application/x-httpd-php
</Files>
<Files *\.*>
ForceType None
</Files>