Is there any way to integrate APK Expansion Zip library to reduce size of obb file?

I have tested my obb file with my app on Play, it works fine. However I want to reduce the file size by using zip (280 MB to 65MB). I was wondering if there is a way to do this, which is also supported by UE4. I was looking into it and found the [APK Expansion Zip][1] library on android developer pages. Can this be integrated with a project? If yes how? If no, is there any other way to compress and decompress the obb?

Any suggestions are welcome.

P.S. How I want it to work: I upload the obb file (as a zip file) along with my apk. When someone downloads the app, the obb is downloaded and then extracted (or virtually extracted as in the case of APK expansion zip).

P.P.S. I have looked at the threads which explain how to reduce the size of the obb, but that’s not what I quite want.

http://developer.android.com//play/expansion-files.html#ZipLib

Also very interested in an answer to this.

I’m also interested in this.

I really hope someone at epic will listen to this. I will write a post in the forum linking here just in case it could get more interest

Also very interested in an answer to this.too!

interested too

Me too :))))

I Really want this to be answered.

Hello Everyone,

I have spoken with our Android Developer and it’s been suggested that turning on “create compressed cooked packages” in Packaging Project Settings and the PAK files will then be compressed. There isn’t any need to ZIP the OBB file. OBB downloading is already supported.

Hope this helps, thanks!

Hi, I have a question: I know that obb file is essencially just a zip file, but is there anyway I can extract it so that I can access what’s inside?

I have yet to find any Unreal Engine 4 documentation on this, or a way to do it. I did see third party programs that allow this however I wouldn’t be able to comment on them.

Thank you for replying! Is there any alternative way that I can choose to package content to anywhere outside of the obb file?

I spoke with our Android Developer and it’s been confirmed that there is not a way to package files outside of the OBB file. Keep in mind that even if you could do that, you can’t use loose files for the Store.

Your forum post was also answered by our Android Developer who has provided you with a way to do this at runtime.

Thanks!

Hey Thank You So Much For answering This Question. Just one more thing. Do you know where I could find more documentation on the advanced packaging options. I want to know what the other option means like, “Cook Everything in project content directory.” What does this “cooking” mean. Thanks

You’re very welcome!

Here are some links that may help you with what you’re looking to learn!

  • [Packaging Projects][1]
  • [Packaging and Cooking Games][2]
  • [Unreal Engine 4 Forums][3]

Packaging Unreal Engine Projects | Unreal Engine 5.1 Documentation
[2]: Packaging and Cooking Games in Unreal Engine | Unreal Engine 5.1 Documentation
[3]: https://forums.unrealengine.com/forum.php