disunity icon indicating copy to clipboard operation
disunity copied to clipboard

Feature Request: Deal with Android obb/apk files smartly

Open jack980517 opened this issue 10 years ago • 5 comments

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

  • assets
    • bin
      • Data
        • [Lots of files with filename as arbitrary hex number with length 32]
        • sharedassetsX.assets.splitY where X and Y are numbers usually starting from 0

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

jack980517 avatar Mar 03 '15 15:03 jack980517

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.

ata4 avatar Mar 07 '15 22:03 ata4

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")

jack980517 avatar Mar 28 '15 16:03 jack980517

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.

ata4 avatar Mar 29 '15 17:03 ata4

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

kris689 avatar Mar 31 '15 00:03 kris689

+1 for this!

T-Spoon avatar Aug 04 '15 15:08 T-Spoon