APK files

Activities for Microsoft Train Simulator are packaged as .apk files.

Expand an .apk file using ZIP decompression. If the folder name and route ID are not the same files from within the route are not included in the .apk file.

2 bytes string length
string with leading null of route name
2 bytes null
2 bytes string length
string with leading null of folder name
2 bytes null
2 bytes string length
string with leading null of route ID
2 bytes null
4 bytes serial of track database
4 bytes count of files
4 bytes length of file in bytes
2 bytes string length
string with leading null of file path
2 bytes null
content of file starting with Unicode BOM, FF FE

repeat for each file
4 bytes length of file in bytes
2 bytes string length
string with leading null of file path
2 bytes null
content of file starting with Unicode BOM, FF FE
Unicode BOM

http://en.wikipedia.org/wiki/Byte_order_mark

Leave a Reply