How to create a .obb file as an apk extension file using jobb tool?

I have an apk of 80Mb, so I can’t upload it to the Google Play Store. I googled a lot and found that I need to create a .obb file as the main extension file.

I also found that I can create a .obb file using the jobb tool , which is located inside sdk > tools > jobb.bat , but unfortunately it closes right after it starts.

Am I missing something?

+2
source share
2 answers

I found googled and found that we need to do .zip with 0% (No compression) , which is mentioned in http://developer.android.com/google/play/expansion-files.html

Tip: If you're packaging media files into a ZIP, you can use media playback calls on the files with offset and length controls (such as MediaPlayer.setDataSource() and SoundPool.load()) without the need to unpack your ZIP. In order for this to work, you must not perform additional compression on the media files when creating the ZIP packages. For example, when using the zip tool, you should use the -n option to specify the file suffixes that should not be compressed: zip -n .mp4;.ogg main_expansion media_files

OR How to make 0% zip compression using winrar?

enter image description here

see compression method here

so we will need to upload this zip code in the play store.

therefore you do not need to use ZipHelper.java

just use

 ZipResourceFile expansionFile=null; try { expansionFile = APKExpansionSupport.getAPKExpansionZipFile(getApplicationContext(),3,0); AssetFileDescriptor fd = expansionFile.getAssetFileDescriptor("test.mp4"); MediaPlayer mPlayer = new MediaPlayer(); mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mPlayer.setDataSource(fd.getFileDescriptor(),fd.getStartOffset(),fd.getLength()); mPlayer.prepare(); mPlayer.start(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } 
+1
source

try it

$ jobb -d / temp / assets / -o new-obb-file.obb -k secret-key -pn com.my.app.package -pv 11

Where

  -d <directory> : Set the input directory for creating an OBB file. -o <filename> : Specify the filename for the OBB file. -k <key> : Specify a password for encrypting a new OBB file -pn <package> : Specify the package name for the application that mounts the OBB file, which corresponds to the package value specified in your application manifest. -pv <version> : Set the minimum version for the application that can mount the OBB file, which corresponds to the android:versionCode value in your application manifest. 

Try this command.

check out the following link http://developer.android.com/tools/help/jobb.html

+3
source

All Articles