Request: TOT Files
Any chance on creating a way to extract TOT files as well? its pretty much same as KDZ..
Check out LGBinExtractor.
The TOT format has been on my radar. While they're used in a role similar to KDZ files, the format could be very different. I do hope to add this, but it is potentially a rather complex feature and I have no time-frame for accomplishing this. The above link is rather valuable since I was looking for information on what was already known about the format.
- Making a TOT apparently uses Qualcomm storage tools, and goes something like this:
ptool.py -x partition-${TARGET_NAME}.xml
checksparse.py -i rawprogram0.xml
makeLGTot.py -r rawprogram0.xml -d ${SEC_COUNT} -o ${TAG_NAME}.tot
The parameters used by makeLGTot.py look like those used to generate a singleimage.bin, but I cannot see any immediately similarity to a singleimage.bin and a .TOT; not the same header, anyway. We can see what input it takes though, see how it handles sparsing, and basically all it does to prepare the included partitions. What makeLGTot.py does with them though... dunno.
I wonder if KDZs use a similar workflow?
- - Peep LW690.zip that is inside this archive. It's older code, but it handles TOTs to some degree. You can still see plenty of that code in the newer versions of LG Flash Tool even. Also looks like a decent blueprint as to how device flash dlls are made. Fun stuff.
How to make tot kdz file