apk-expansion-files

getFileDescriptor returns null while reading mp3 files from the expansion files

こ雲淡風輕ζ 提交于 2019-12-05 20:27:13
问题 I have downloaded and stored the expansion files successfully.But it crashes when i try to play the mp3 inside.. ZipResourceFile expansionFile = APKExpansionSupport.getAPKExpansionZipFile(getApplicationContext(), 1, 0); InputStream fileStream = expansionFile.getInputStream("mysong.mp3"); AssetFileDescriptor asd = expansionFile.getAssetFileDescriptor("mysong.mp3"); MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource

Updating an APK in Google Play without changing the expansion file

北城余情 提交于 2019-12-05 11:07:42
I have a "draft" APK in my Google Play console, and it's connected to an APK expansion file. The version code is 9, and the expansion file is "main.9.com.something.something.obb". Now, I'm trying to update the APK before I release. I increased the version code, along with some code changes. When I upload the APK, I choose to use "main.9.com.something.something.obb" as my expansion. Now, Google Play tells me this: This configuration cannot be published for the following reason(s): Version 9 is not served to any device configuration: all devices that might receive version 9 would receive version

Expansion file download sample not showing full progress

人走茶凉 提交于 2019-12-04 20:02:27
Currently I am preparing a demo for including Expansion File into a developed project. I have followed this Tutorial . After a lot of struggle I am able to run the demo application but having issues in displaying progress for downloaded data. I have uploaded obb file on play store which is 1,060,024 bytes and on disk size is 1,060,864 bytes . following is code snippet where I think problem can be. private static final XAPKFile[] xAPKS = { new XAPKFile(true,6,1060024L) }; void validateXAPKZipFiles() { AsyncTask<Object, DownloadProgressInfo, Boolean> validationTask = new AsyncTask<Object,

Create expansion file for AS3 android Air App Flash cs6

五迷三道 提交于 2019-12-04 18:14:39
I have created an AS3 mobile app and exported successfully through flash CS6. In this .apk I have included my video files (going to be a presentation for Android Tablet). The total size of the .flvs alone is 64mb. When I tried to upload to Google play I got the (expected) warning about the file size being >50mb . I have spend two hours trying to find a fix, including using the jobb.bat , zipalign.bat , putting the files into the format of main.1.obb and many other options. The Google website seems to think that I am using Eclipse (which I’m not I used Flash CS6), but I tried all those tools

OBB file are not Extract Error is “XAPK file Validation Failed”

笑着哭i 提交于 2019-12-04 17:41:25
I implemented apk expansion successfully and OBB file downloaded at Storage->Android->Obb->PackageName->main.1.com.packagename.obb But when i go to extract i am getting issue is "Not a Zip archive". ZipResourceFile zrf = new ZipResourceFile(fileName); public ZipResourceFile(String zipFileName) throws IOException { addPatchFile(zipFileName); } void addPatchFile(String zipFileName) throws IOException { File file = new File(zipFileName); RandomAccessFile f = new RandomAccessFile(file, "r"); long fileLength = f.length(); if (fileLength < kEOCDLen) { throw new java.io.IOException(); } long

How to create OBB files USING jobb tool Android

丶灬走出姿态 提交于 2019-12-04 14:01:15
问题 My app has grown to be over 50mb, so I now need to use an expansion file. On searching I came to know that there are different files that can be used as expansion files such as zip, pdf etc. I am trying to put my data in .obb files but I don't know how to create these files and put the data in these files. Updated First: I found out that jobb tool is used to create obb files. But I am confused how this $ jobb -d /temp/assets/ -o my-app-assets.obb -k secret-key -pn com.my.app.package -pv 11

Expansion file downloaded but not there

ぐ巨炮叔叔 提交于 2019-12-04 11:47:29
问题 So I've copied the expansion package sample for Android and made it run based on the guide provided by google. I've successfully made it work by storing a local .obb file but I can't manage to get it to work with downloading the .obb file. The state is changed to IDownloaderClient.STATE_COMPLETED but no file it to be found. Steps I've been through: Make sample run (updated with BASE64_PUBLIC_KEY , new package name , version number ) Successfully test with local .obb file. Make apk and upload

Where to I place the OBB file to test Android Expansion Pack Files (OBB) on my Nexus 4?

自古美人都是妖i 提交于 2019-12-04 08:16:28
问题 I'm trying to test the Expansion Pack Files (OBB) In Android following the guide here: http://developer.android.com/google/play/expansion-files.html I'm in the step where I need to test my app on my Nexus 4. I generated my .obb file with jobb and adb-pushed it in the device in this location: /mnt/shell/emulated/0/Android/obb/my.package/main.1.my.package.obb When the app run it doesn't find the file. Method: Helpers.doesFileExist(context, fileName, xf.mFileSize, false) return false for my file

How to mount encrypted APK expansion files?

橙三吉。 提交于 2019-12-04 07:45:56
I tried to mount expansion files this way: final StorageManager storageManager = (StorageManager) getSystemService(STORAGE_SERVICE); String obbPath = Environment.getExternalStorageDirectory() + "/Android/obb"; final String obbFilePath = obbPath + "/com.example/main.1.com.example.obb"; storageManager.mountObb(obbFilePath, "SecretKey", new OnObbStateChangeListener() { @Override public void onObbStateChange(String path, int state) { super.onObbStateChange(path, state); if (state == OnObbStateChangeListener.MOUNTED) { onObbMounted(); } else { Log.d("##", "Path: " + path + "; state: " + state); } }

Unable to mount obb file created with JOBB

房东的猫 提交于 2019-12-04 06:10:11
I'm trying to mount either an encrypted or non-encrypted obb file I created with the JOBB tool using the mountExpansion() method found in this question: Mounting an encrypted obb apk expansion file in Android . What is interesting is that when I try this with an encrypted file, I get the state 21 which according to https://developer.android.com/reference/android/os/storage/OnObbStateChangeListener.html means The OBB could not be mounted by the system. Returned in status messages from calls made via StorageManager and when I try a non-encrypted file I get state 20 which means: There was an