Page 3 of 4

Re: UE40ES5700 - crapware removal?

Posted: Mon Jan 14, 2013 12:26 pm
by dec0ding
arris69 wrote:
dec0ding wrote:...
Anyway, I removed ads by blocking some DNS

Code: Select all

...
0.0.0.0 sso.internetat.tv
...
just out of curiosity, can you use the develop widget install in smarthub?

Yes, my settings also block login to samsung account. But I dont need it.
Installing widgets with develop is slow and only can delete and reinstall all widgets at once.
Much faster and more comfortable to use SMB shares. I'm on original firmware but I have customized "Rooting" widget.
No need in USB stick. Just run it and have SMB, telnet, FTP, etc..
Its also more safe not to have open TV all the time and root it only when needed.
When I need change something in users widget I do

net use X: \\tv\widgets-user

Copy there needed widgets folders, reboot tv and manager automatically include them to its list.
Testing widgets also much faster. Just edit some files and rerun widget and thats all.
Instead of reuploading megs of user widgets only to change one line in the code.

Re: UE40ES5700 - crapware removal?

Posted: Mon Jan 14, 2013 2:08 pm
by prairie
dec0ding wrote:I implemented proxy approach in PHP
It would be great to us WebIF as proxy server.

Re: UE40ES5700 - crapware removal?

Posted: Mon Jan 14, 2013 3:26 pm
by dec0ding
Latest samygo builds from mamaich include apache server with PHP.
If you have on-boot rooting solution, you can put apache to autostart and have openapi filter inside the tv.
I dont need it because I have 24*7 powered up computer , also use it for internet routing purposes and can run
here http server.

Re: UE40ES5700 - crapware removal?

Posted: Mon Jan 14, 2013 7:35 pm
by nobody
arris69 wrote:
dec0ding wrote:...
Also we need to provide proper way of getting apps to the tv and get in sync with alternate infolink server.
it's all done, but what you think what traffic then you get on your server?
A local network emulated infolink server would be much better than a remote one. (Samsung or SamyGO)

Re: UE40ES5700 - crapware removal?

Posted: Mon Jan 14, 2013 8:25 pm
by arris69
nobody wrote:..
A local network emulated infolink server would be much better than a remote one. (Samsung or SamyGO)
yes, but if you like to keep it simple and also keep independent from samsungs buggy network, probably the best way is to work with statical content.
but in this case i guess its totally against the spirit of a "SmartHub" :lol:

Re: UE40ES5700 - crapware removal?

Posted: Mon Jan 14, 2013 10:04 pm
by dec0ding
nobody wrote: A local network emulated infolink server would be much better than a remote one. (Samsung or SamyGO)
Totally agree. It was my first idea.
But we still need samsung as source of apps and that's the problem.
I guess samsung read this forum. They looked at published widget url list and implemented protection measure - authentication of downloads.
Look at widget download url :

Code: Select all

http://dly2224qfzjce.cloudfront.net/files/widget/201211/111299001664/1.000/widget/111299001664_1.000.zip?Expires=1357717074&Signature=UwPXE-qrwa-WCHASVr4wSbYzabd0B048Sjp8ldrqrFUIDwWKHeGBspt~sgHIIQhkd6gK7SYOO9MKSUqpoqStvsk8ZemqSK~fn6foPWS5-CnRxmoLFsKVNCBwXzrcXqIIYTkfgwbXnt8ZNgvVriRQvuqecmiJsLAUvewuI6Tdq4Q_&Key-Pair-Id=APKAIUMJLMRVBKS7VM4A
URL is temporary and work for the short time window. Interception of this kind of URLs to construct own widget DB is useless.
Still, its possible to implement dual approach.

1) Have our own installed widget list DB and keep it in sync with widgets installed on TV and with installed widget list DB from samsung.
2) Service all requests from TV locally and query samsung only when info is absent locally.
In this case perform internal model bind (our server should act as TV for infolink) , query samsung, return results to tv and update local DB.
3) for download URL we have no choice but to bind with samsung and query it.

In this approach we minimize traffic to samsung. Samsung is needed only when we install/remove widgets.

Re: UE40ES5700 - crapware removal?

Posted: Mon Jan 14, 2013 10:53 pm
by arris69
dec0ding wrote:..
I guess samsung read this forum. They looked at published widget url list and implemented protection measure - authentication of downloads.
took near 1 year for implement this new protection mechanism :lol:
Look at widget download url :

Code: Select all

http://dly2224qfzjce.cloudfront.net/files/widget/201211/111299001664/1.000/widget/111299001664_1.000.zip?Expires=1357717074&Signature=UwPXE-qrwa-WCHASVr4wSbYzabd0B048Sjp8ldrqrFUIDwWKHeGBspt~sgHIIQhkd6gK7SYOO9MKSUqpoqStvsk8ZemqSK~fn6foPWS5-CnRxmoLFsKVNCBwXzrcXqIIYTkfgwbXnt8ZNgvVriRQvuqecmiJsLAUvewuI6Tdq4Q_&Key-Pair-Id=APKAIUMJLMRVBKS7VM4A
yes and they are so dump and think thats impossible to find the algo for it...

Re: UE40ES5700 - crapware removal?

Posted: Tue Jan 15, 2013 8:41 am
by dec0ding
arris69 wrote: yes and they are so dump and think thats impossible to find the algo for it...
Actually, signature parameters do not prevent us from retrieveing valid urls.
It only prevent us from constructing permanent offline DB with links to samsung.
We still can move to samsung-less solution for TV if we create one special server for getting apps from samsung.
This server can act as TV , download and update every known widget from samsung and provide clients with widget urls
pointing not to samsung but to its downloaded copies.
It can also provide openapi functionality transparent to TV (main problem is certificate, have to patch TV to skip SSL or replace rootCA)

Re: UE40ES5700 - crapware removal?

Posted: Fri Jan 18, 2013 8:15 pm
by arris69
dec0ding wrote:I implemented proxy approach in PHP
If somebody need it for tampering with infolink it will give some start

http://www.sendspace.com/file/jxt0kw
...
merged some stuff into and made the middleman-part bit more robust ;-)
tested on linux+tv seems ok for start with it
test on windows+browser (without tv) seems to be ok too.

http://sourceforge.net/p/samygo/code/ (SamsungSmarthubOTN-NG)

happy coding...

Re: UE40ES5700 - crapware removal?

Posted: Sat Jan 19, 2013 12:27 pm
by dec0ding
Here is my version update :

http://www.sendspace.com/file/9aqawv

Added ability to
1) Blacklist widgets. Will always be deleted.
2) Whitelist widgets. Will not be deleted in any case - even if partner or preinstalled flag is set.
Useful when you want some widget made as partners by samsung (previous versions deleted this kind)
3) Specify custom partner widgets. (why not to use upper area for stuff we like , not samsung ?)

config.php :

Code: Select all

<?php
// never remove
// Samsung_apps CTC TVZavr Youtube Gismeteo Ivi
$OPENAPI_WIDGET_WHITELIST = array("10120000099","111299001664","111299000433","11111000010","11102105201","111199000746");
// always remove
// Social_TV
$OPENAPI_WIDGET_BLACKLIST = array("11111000001");
// force "partners" attribute (up to 5)
// YouTube RuTube GisMeteo vTuner CTC
$OPENAPI_WIDGET_PARTNERS = array("11111000010","111199000996","11102105201","11101015101","111299001664");
?>