ata4 / disunity

An experimental toolset for Unity asset and asset bundle files.
The Unlicense
2.69k stars 662 forks source link

Feature Request: Deal with Android obb/apk files smartly #103

Open jack980517 opened 9 years ago

jack980517 commented 9 years ago

The Android versions of some large Unity games uses obb files, which is a zip file with the structure below:

* For Android Unity games that does not use obb, the apk file also has the same data structure. Those hex-named files are all Unity assets files. For now I can only "disunity extract *" which is not very convenient, and also results in a huge number of folders. It would be good if disunity can automatically unzip the obb file, extract all assets files, and put the extracted files in the same folder, as if it's dealing with a single assets file. Sharedassets files can be dealt with as usual.

ata4 commented 9 years ago

I've never seen .obb files so far, but it should be possible to add support for Zip archives in general. At least for the read-only commands.

jack980517 commented 9 years ago

obb files are usually just zip files. And the obb file of Unity games are all zip files. So you can just do this (pseudocode) if (extension=="obb" or extension=="apk) unzip(file) extractassets("assets/bin/Data/xxxx")

ata4 commented 9 years ago

It's possible to scan Zip files directly without extracting them, which would save storage space and time. It would enforce a ready-only mode, however.

kris689 commented 9 years ago

hey it's been 2 weeks, I was wondering if you had come up with anything?

T-Spoon commented 8 years ago

+1 for this!