kdztools icon indicating copy to clipboard operation
kdztools copied to clipboard

Request: TOT Files

Open Eliminater74 opened this issue 9 years ago • 4 comments

Any chance on creating a way to extract TOT files as well? its pretty much same as KDZ..

Eliminater74 avatar Oct 17 '16 19:10 Eliminater74

Check out LGBinExtractor.

culots avatar Oct 17 '16 23:10 culots

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.

ehem avatar Oct 19 '16 02:10 ehem

  • 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.

culots avatar Oct 20 '16 05:10 culots

How to make tot kdz file

andy19801210 avatar May 10 '17 08:05 andy19801210