Please remember to add a category to the bottom of each page that you create.
See categories help for further details, but most will probably be [[Category:HTC ModelName]].

MagicianUpgradeFiles

From XDA-Developers
Jump to: navigation, search

This document describes the new stile update files:

The NBF file is composed by a 172 bytes header (which is base64-like encoded), and by the encrypted rom data. The pseudo-base64 alphabet is: "yz98765432UVWXYZabcdKLMNOPQRSTopqrstuvwxefghijklmnABCDEFGHIJ10"

Header format (after decoding):

0000 deviceid ( PM10x ) x=A,B,C,..
0010 operator
0020 language
0028 version
0038 devicename ( Magician )
0048 length
0050 startoffset
0058 endoffset
0060 unused
0078 checksum

The "encryption" algorithm is very simple: each dword is XOR'ed with the previous ENCODED dword. That is, even without knowing the XOR seed you can decode all the file except the first dword (which, up to date is the same in all the versions of each file).

The attachment is a perl script which decodes the header and decrypts the rom data.


http://wiki.xda-developers.com/uploads/decode.pl

Personal tools