disunity
disunity copied to clipboard
Feature Request: Deal with Android obb/apk files smartly
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
- Data
- bin
* 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.
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.
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")
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.
hey it's been 2 weeks, I was wondering if you had come up with anything?
+1 for this!