[App] Fake Time Server

Here are software that related with Samsung J series TVs.
Post Reply

sectroyer
Official SamyGO Developer
Posts: 5648
Joined: Wed May 04, 2011 5:10 pm

[App] Fake Time Server

Post by sectroyer » 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:

Code: Select all

/openapi/timesync?client=TimeAgent/1.0 
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:

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;
?>
On 64 bit system it can be simplified to:

Code: Select all

<?php
    $milliseconds = round(microtime(true) * 1000);
    $mb_milliseconds = pack("LL", $milliseconds,$milliseconds);
    echo $mb_milliseconds;
?>
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:

Code: Select all

<Files *>
    ForceType application/x-httpd-php
</Files>
<Files *\.*>
    ForceType None
</Files>
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on http://ctrlv.it/ Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

Post Reply

Return to “[J] Software”