obb files from Android games are supposedly plain zip archives, but I've come across one from GT Racing 2 that doesn't look like a zip. I started analyzing it and below is a quickbms script that should extract it.
# Gameloft CustomPak extractor
# script for QuickBMS http://quickbms.aluigi.org
# tested with GT Racing 2 and The Dark Knight Rises .obb archives
endian big
get DUMMY long
get DATA_OFF long
get NAMES_OFF long
get FILES long
get BNAME basename
savepos LASTFILE
for i = 0 < FILES
goto LASTFILE
get OFFSET long #relative to file start
get SIZE long
get NAME_OFF long #relative to NAMES_OFF
get DUMMY long
savepos LASTFILE
math NAME_OFF += NAMES_OFF
goto NAME_OFF
get NAME string
set FNAME string BNAME
string FNAME += /
string FNAME += NAME
log FNAME OFFSET SIZE
next i
Last edited by Chipicao on Wed Jul 23, 2014 3:52 pm, edited 2 times in total.
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.
It's actually a Gameloft CustomPak. You might meet some encryption on the filenames and/or file contents.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC
If you want to extract CustomPaks, use the CustomPak extractor. It's the most straightforward way of getting the files out. Otherwise, get comfy with a hex editor and study the format.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC