IPTV application update
From t-hack.com - Hack X300T / X301T
(application update information added) |
m (updated link to pkg file) |
||
| Line 3: | Line 3: | ||
for T-Home it is found here: | for T-Home it is found here: | ||
| − | http://cgbf01001.iptv.t-online.de/upgrade/upgrade-files/STB%20Sub-CA%20003/PKG.DIR | + | :<s>http://cgbf01001.iptv.t-online.de/upgrade/upgrade-files/STB%20Sub-CA%20003/PKG.DIR</s> (not used any more) |
| + | :http://cgbf01003.iptv.t-online.de/upgrade/upgrade-files/003/PKG.DIR | ||
| + | :http://cgbf01003.iptv.t-online.de/upgrade/upgrade-files/002/PKG.DIR | ||
| + | |||
for BT-Vision it is found here: | for BT-Vision it is found here: | ||
| − | http://ref-bootstrap.nevis.btopenworld.com/upgrade/upgrade-files/005/PKG.DIR | + | :http://ref-bootstrap.nevis.btopenworld.com/upgrade/upgrade-files/005/PKG.DIR |
| Line 32: | Line 35: | ||
this Archive is then extracted onto the harddisk. | this Archive is then extracted onto the harddisk. | ||
| − | A tool to decompress, decrypt, join and extract the PART files can be found here << | + | A tool to decompress, decrypt, join and extract the PART files can be found [[Download Update Files|here]]. |
| + | |||
| + | |||
| + | here is the java code to decompress and decrypt PART files: | ||
| + | |||
| + | <pre>InputStream in = new FileInputStream("data/"+part.getName()); | ||
| + | if (part.isZlib()) | ||
| + | { | ||
| + | in = new InflaterInputStream(in); | ||
| + | } | ||
| + | |||
| + | int len = -1; | ||
| + | int partLength = 0; | ||
| + | while ( (len=in.read(buffer)) != -1) | ||
| + | { | ||
| + | for (int i = 0; i < len; i++) | ||
| + | { | ||
| + | byte a = (byte) ( (((int)buffer[i]) >> 5) & 0x07); | ||
| + | byte b = (byte) ( (((int)buffer[i]) << 3) & 0xF8); | ||
| + | byte c = (byte) (a | b); | ||
| + | byte d = (byte) (c ^ (partLength++ & 0xff)); | ||
| + | buffer[i] = d; | ||
| + | } | ||
| + | out.write(buffer, 0, len); | ||
| + | }</pre> | ||