apk-expansion-files

How to create a folder under /Android/obb?

╄→гoц情女王★ 提交于 2019-12-24 10:09:11
问题 I'm trying to use expansion files and I found an issue that I'm not able to resolve. It seems that you can access the /Android/obb folder and eventually delete the /Android/obb/my.package.name directory (tried with some file manager), but I cannot handle this situation whithin the app. If I just let the Google Downloader library try to download the expansion file it will hang and error (for the missing folder), but it will start if I recreate the folder. The strange thing is that I'm able to

IllegalStateException in VideoView's MediaPlayer.prepareAsync() from Expansion File

别说谁变了你拦得住时间么 提交于 2019-12-24 04:32:07
问题 I have an Expansion File (zip) full of mp4 videos that I'd like to play with the VideoView. When calling videoView.setVideoURI() it throws and IllegalStateException (prepareAsync called in state 1) in my VideoView's openVideo(). I retrieve the URI to the video from an extended APEZProvider class. The expansion file got packed like below and renamed to "main.3.com.my.application.obb" zip -r -0 [desiredZipFileName.obb] [folderWithVideos] VideoView: Uri uri = ExpansionAPEZProvider.buildUri("vid

Obb (Opaque Binary Blobb) getMountedObbPath() returning null

安稳与你 提交于 2019-12-23 22:28:11
问题 Why is the obb-file not found when its actually there? in the logcat window 11-05 20:42:33.860: I/System.out(7563): mainFile = /storage/sdcard0/Android/obb/main.11.se.sourses.thai.obb 11-05 20:42:33.860: I/System.out(7563): main = null the codesnippet StorageManager storage = (StorageManager) getApplicationContext().getSystemService(STORAGE_SERVICE); File mainFile = new File(Environment.getExternalStorageDirectory() + "/Android/obb/" + "main." + 11 + "." + "se.sourses.thai" + ".obb"); String

getAPKExpansionZipFile() returns null

坚强是说给别人听的谎言 提交于 2019-12-23 16:36:40
问题 Since my game has 100Mb I need to use expansion file. I put below code in the MainActivity in function onCreate() ZipResourceFile expansionFile = null; try { expansionFile = APKExpansionSupport.getAPKExpansionZipFile(getApplicationContext(),2,0); } catch (IOException e) { e.printStackTrace(); } I don't use patch expansion file, just main, so I guess putting 0 as a version is correct. When I log to check if expansionFile was successfully loaded I get null value. if(expansionFile == null) Gdx

Debugging Android app after release

时间秒杀一切 提交于 2019-12-22 06:45:31
问题 I am working on some fixes to an app already in the store. The app uses an expansion file. I have created a new version of the app and uploaded the apk and the associated expansion file. When I try to run the app from eclipse, the app starts up, but then the download of the expansion file fails with the message: "Download failed because you may not have purchased this app." Obviously I have NOT purchased the app, I am developing it! So how do I get this to work? 回答1: Since I don't know the

How to mount encrypted APK expansion files?

回眸只為那壹抹淺笑 提交于 2019-12-21 17:06:28
问题 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 ==

Mounting an encrypted obb apk expansion file in Android

不羁岁月 提交于 2019-12-21 05:27:13
问题 I have created an encrypted .obb file using the jobb tool. I use the following code to mount the obb file: public void mountExpansion() { final StorageManager storageManager = (StorageManager) getContext() .getSystemService(Context.STORAGE_SERVICE); String packageName = "name.of.the.package"; String filePath = Environment.getExternalStorageDirectory() + "/Android/obb/" + packageName + "/" + "main." + version + "." + packageName + ".obb"; final File mainFile = new File(filePath); if (mainFile

Create expansion file for AS3 android Air App Flash cs6

倖福魔咒の 提交于 2019-12-13 12:20:03
问题 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

Do android apps still need to contain an expansion files downloader?

让人想犯罪 __ 提交于 2019-12-12 13:35:51
问题 My question is about the need apps to be able to download expansion files when the app is larger than 50MB and has to make use of them. According to the Android developer help, applications can rely on expansion files and on newer devices, the expansion files are downloaded automatically before/after the APK, and on "older devices" developers can use a Google-supplied library to manage the download. However this info has been available for more than two years. Here's an article which cires it

Android ZipResourceFile to read APKExpansionFile not working

南楼画角 提交于 2019-12-11 19:06:23
问题 I'm trying to use ZipResourceFile to read from an APK expansion library that would be an Uncompressed zip file (Tried both 7z File Manager and WinRAR to compress with store method). ZipResourceFile correctly finds the file and passes it to addPatchFile(String zipFileName) method. This method doesn't throw any error but logs the following: 01-17 18:21:49.226 11245-11245/it.[...] V/zipro﹕ +++ Found EOCD at index: 65535 01-17 18:21:49.226 11245-11245/it.[...] V/zipro﹕ +++ numEntries=-1 dirSize