Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reuse expansion files on android developer console

How do I re-use an expansion file when updating an APK in developer console?

When I upload a new apk with a higher versionCode, I can't select a previously used main expansion file...

And if I upload the same expansion file again with the new apk, it get assigned a new expansion-version, which isn't the expected behavior.

APK Expansion Files documentation:

...the Developer Console allows you to re-use an uploaded expansion file with a new APK, the expansion file's name does not change—it retains the version applied to it when you first uploaded the file.

How can I achieve this on developer console?

like image 692
Gero Avatar asked Jun 05 '12 12:06

Gero


People also ask

What are expansion files?

Expansion files are simply files/folders in archived format (. obb to be precise). Basically after publishing you will receive two files: . apk file – the main app file.

What is APK expansion package?

Tip: The Apk Expansion package includes a sample app that shows how to use the Downloader Library in an app. The sample uses a third library available in the Apk Expansion package called the APK Expansion Zip Library.

What is the maximum size of APK file in Android?

Each expansion file can be up to 2GB in size. Users must run Play Store version 5.2 or higher to install 100MB APKs.

How do I create an OBB file?

When creating an OBB file, the contents of the specified directory and all its sub-directories are included in the OBB file system. Specify the filename for the OBB file. This parameter is required when creating an OBB and extracting (dumping) its contents.


2 Answers

I got an answer from Google Play Developer Support.

The behavior you are describing is intended. You can only reuse OBBs that were associated with APKs that have been published. Neither APK has ever been published, so we don't give the option to reuse the OBBs he's uploaded so far.

So, it seems that i can't test my app's obb files behaviour when updating, without actually publishing a previous version of the app.

like image 99
Gero Avatar answered Oct 17 '22 07:10

Gero


If you observe the name format [main|patch].<expansion-version>.<package-name>.obb having expansion-version which need to be same when you download expansion file manually through Google Downloader Activity.

Sometime it happens that your expansion file is remain same and you have only modify the apk so you need not to create again expansion file with new name, you have to keep the version code same and map the same code in Downloader Activity and resue it.

http://developer.android.com/guide/market/expansion-files.html#Download

like image 29
Mohammed Azharuddin Shaikh Avatar answered Oct 17 '22 07:10

Mohammed Azharuddin Shaikh