Android APK Expansion Files Process?

Hi, my team are attempting to support android APK expansion files in our project as our project is currently over the 100MB size limit. Has anyone else managed to do this through unity and if so what is the process that you have followed?

We have currently looked at the Unity Docs and have managed to build and run the files to our target device however the models do not seem to be loading.

Hello there,

I have not been able to reproduce your result. Are you sure you have loaded the OBB expansion file correctly onto your local device?

Below are the steps to creating a Split Application Binary build of a project within Unity:

  1. Go to Edit → Project Settings → Player and navigate to the ‘Publishing Settings’ tab
  2. Make sure ‘Split Application Binary’ is checked
  3. Go to your build settings File → Build Settings
  4. Make sure your game is on the Android platform
  5. Click “Build” or “Build and Run” (if you have a device connected) to build the project
  6. Once built, navigate to the folder you deposited your build into, and note that 2 files exist - ‘Example.apk’ and ‘Example.obb’

If you “Build and Run” from within Unity, the files will find their way to the correct areas. If you build, and later want to put your app onto your local device, then follow these steps:

  1. Place APK into connected devices
    internal memory
  2. Find APK on phone, and tap to
    install
  3. Do not run the application yet
  4. On your computer, if the OBB file
    has been zipped, unzip the folder
  5. Copy the OBB file into the following
    path: Phone Internal memory →
    Android → obb (If the OBB folder
    doesn’t exist, create it)
  6. Disconnect your phone from the PC
  7. Run APK on phone

Could you also describe the problem you are having in more detail? Including what version of Unity and the make and model of the device you are using?

Cheers

Ieuan

Unity Support

@ieuanrees How would you solve it if the file exceeds 2GB?
The solution you’ve offered is good for files up to 2GB.
For Oculus store the OBB file can be 2-4GB

Thank you

Hi there, does anyone know how to use patch obb expansion files with Unity? I have done a little bit with Asset Bundles but they can only do so much for me and I’ve read that you can have two obb files that can be up to 2 GB each.