Play Asset Delivery on Android: How It Works
In this article
- Background and Why It Exists
- How Play Asset Delivery Works
- Implementing Play Asset Delivery in Your Project
- Choosing the Right Delivery Mode
- Common Problems and How to Fix Them
- Comparisons with Similar Technologies
- Safety, Security, and Data Usage Considerations
- Alternatives and When to Use Them
- Frequently Asked Questions
Play Asset Delivery is a Google Play feature that lets Android games download large assets on demand instead of bundling everything in the APK.
Background and Why It Exists
Android apps are traditionally delivered as a single APK file. When a game includes high‑resolution textures, 3D models, or language packs, the APK can quickly exceed the size limits imposed by the Play Store (150 MB for a single APK, larger with expansion files). Large downloads deter users, increase install time, and waste device storage for players who never use certain assets. Google introduced Play Asset Delivery (PAD) as part of the Android App Bundle (AAB) format to solve these problems. PAD separates optional or large resources into independent asset packs that the Play Store can stream, cache, or install later based on the device’s capabilities and the user’s preferences.
How Play Asset Delivery Works
PAD relies on three delivery modes that you declare for each asset pack in the bundleConfig.json file:
- Install‑time: The pack is downloaded together with the base APK and is available immediately after installation.
- Fast‑follow: The pack is downloaded automatically after the app is installed, but in the background, so the user can start playing while the assets arrive.
- On‑demand: The pack is fetched only when the app explicitly requests it, typically after the user selects a level, language, or optional feature.
When the user opens the game, the Play Core library (part of the Play Services SDK) queries the Play Store for the status of each pack. If a pack is not yet present, the library can start a download, monitor progress, and notify the app when the assets become usable. The Play Store handles caching, resumable downloads, and integrity verification, so developers do not need to write their own networking code for large binary files.
Implementing Play Asset Delivery in Your Project
Adding PAD to a game follows a predictable sequence. Below is a concise checklist that works for Android Studio projects targeting the current Play Core SDK.
- Convert the project to an Android App Bundle by setting
bundle { }inbuild.gradleand enablingbundle.enabled = true. - Create an
assets/folder for each pack and place the resources (e.g.,textures/,audio/) inside. - Define the pack in
bundleConfig.jsonwith adeliveryTypeofinstall-time,fast-follow, oron-demand. - Add the Play Core dependency:
implementation "com.google.android.play:core:1.10.3"(version numbers may vary). - In your code, obtain an
AssetPackManagerinstance and request a pack:AssetPackManager manager = AssetPackManagerFactory.getInstance(context); manager.fetch("high_res_textures"); - Observe the download state via
AssetPackStateUpdateListenerto show progress bars or pause the game until the assets are ready. - When the pack is marked
COMPLETED, load the files using the path returned bymanager.getPackLocation("high_res_textures").
All of these steps are documented in the official Play Core guide, and the API surface is stable across recent Play Store versions. Remember that the Play Store must be up‑to‑date on the user’s device; older Play Store releases may not support on‑demand packs.
Choosing the Right Delivery Mode
The decision between install‑time, fast‑follow, and on‑demand depends on three factors:
- Criticality: If the asset is required for the app to launch (e.g., the main game engine binaries), use install‑time.
- Size vs. User Experience: For assets that improve visual fidelity but are not essential, fast‑follow offers a balance—players can start quickly while the store works in the background.
- Optional Content: Language packs, DLC levels, or seasonal events belong in on‑demand packs so you only download them when the user selects them.
Testing each mode on a range of devices (low‑end, mid‑range, high‑end) helps you gauge download times, storage impact, and battery usage.
Common Problems and How to Fix Them
Even with a well‑configured asset pack, developers encounter runtime issues. The most frequent are:
- Network failures: The Play Store returns
NETWORK_ERROR. Solution: check the device’s connectivity, retry with exponential back‑off, and provide a manual “Retry” button. - Insufficient storage: The download is aborted with
INSUFFICIENT_STORAGE. Solution: prompt the user to free space or offer a lower‑resolution pack. - Version mismatch: The app requests a pack that is not present in the current release. Solution: ensure the
bundleConfig.jsonin the uploaded AAB matches the code’s expectations; re‑upload if needed. - Play Store outdated: On older Android versions (< 5.0) the Play Store may not support PAD. Solution: fall back to bundled assets or use traditional expansion files for those devices.
When troubleshooting, start with the simplest checks: restart the device, verify the Play Store is updated, and clear the app’s cache (Settings → Apps → YourGame → Storage → Clear cache). If the problem persists, consult the Play Core log tags (PlayCore) via Logcat for detailed error codes.
Comparisons with Similar Technologies
Play Asset Delivery is often confused with Dynamic Feature Modules (DFM) and traditional expansion files. Here’s a quick comparison:
| Aspect | Play Asset Delivery | Dynamic Feature Modules | Expansion Files |
|---|---|---|---|
| Primary purpose | Large binary assets (textures, audio, models) | Code and resources that add new app functionality | Any additional data, usually static |
| Delivery control | Install‑time, fast‑follow, on‑demand | Install‑time or on‑demand | Only install‑time (downloaded with the APK) |
| Integration | Play Core SDK, asset packs in AAB | Play Core SDK, feature modules in AAB | Manual download handling |
| Versioning | Managed per‑pack, independent updates | Managed per‑module, tied to app version | Static, requires full app update to change |
In practice, many games use PAD for graphics and audio while employing Dynamic Feature Modules for optional gameplay modes. Expansion files are now considered a legacy approach because they lack the resumable download and automatic caching that PAD provides.
Safety, Security, and Data Usage Considerations
Because PAD downloads files from Google’s trusted Play Store infrastructure, it inherits the same security guarantees as the base APK. Files are signed, checksummed, and delivered over HTTPS. Nevertheless, developers should still:
- Validate the integrity of assets after download (e.g., compare a hash stored in the manifest).
- Respect user data caps by offering a “Wi‑Fi only” option for on‑demand packs.
- Provide clear UI feedback so users understand when large downloads are occurring.
From a privacy standpoint, PAD does not collect personal data beyond what the Play Store already tracks for download statistics. No additional permissions are required beyond the standard internet access.
Alternatives and When to Use Them
If PAD does not fit your project, consider these alternatives:
- In‑App Updates: Use the Play Core In‑App Update API to prompt users to download a newer version of the app that contains the needed assets.
- Custom CDN download: Host assets on your own server and stream them with your own networking code. This gives full control but requires you to handle resumable downloads, integrity checks, and storage management.
- Google Play Games Services Saved Games: For small user‑generated content, the Saved Games API can sync data across devices, but it is not suited for large binary assets.
Choose PAD when you want Google‑managed delivery, automatic caching, and seamless integration with the Play Store. Opt for a custom solution only if you need fine‑grained control over CDN locations or want to support devices that cannot access the Play Store (e.g., Amazon Appstore).
Frequently Asked Questions
Can Play Asset Delivery be used with a regular APK?
No. PAD requires the Android App Bundle (AAB) format because the asset packs are stored separately from the base APK. Uploading a plain APK bypasses the Play Store’s asset‑pack infrastructure.
Do on‑demand packs increase the app’s size on the device before they are downloaded?
Only the base APK and any install‑time packs occupy storage initially. On‑demand packs consume space only after the user initiates a download.
Is there a limit to how many asset packs a game can have?
Google does not impose a hard count limit, but each pack adds metadata overhead. In practice, developers keep the number reasonable (typically under 20) to avoid complex dependency graphs.
How does Play Asset Delivery handle different device configurations (e.g., ARM vs. x86)?
You can create device‑specific splits inside an asset pack by placing files in assets/arm64/, assets/x86/, etc. The Play Store delivers the appropriate slice based on the device’s ABI.
What happens if a user deletes an on‑demand pack?
The Play Core API allows you to request removal with manager.removePack("pack_name"). The space is freed, and the pack can be re‑downloaded later if needed.
Do I need to handle versioning of assets manually?
When you publish a new AAB, you can update the version of each asset pack independently. The Play Store will deliver the newer version automatically; the app can query the pack’s version code via AssetPackLocation.getVersion().