Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using jobb tool in Android

I am running the following command to get my encrypted obb file for apk expansion.

jobb -d /home/manoj/Desktop/Test -o main.1.com.example.helloworld.obb -k "manoj" -pn com.example.helloworld -pv 1

I am getting following exception. Please tell what went wrong.

Slop: 0   Directory Overhead: 0
Slop: 1132   Directory Overhead: 768
Partial Sector [32] writing to sector: 15
Partial Sector [32] writing to sector: 15
Partial Sector [32] writing to sector: 15
Partial Sector [331] writing to sector: 223
Partial Sector [417] writing to sector: 400
Partial Sector [406] writing to sector: 577
Partial Sector [333] writing to sector: 754
Partial Sector [223] writing to sector: 931
java.io.IOException: FAT Full (1676, 1677)
at de.waldheinz.fs.fat.Fat.allocNew(Fat.java:298)
at de.waldheinz.fs.fat.Fat.allocAppend(Fat.java:376)
at de.waldheinz.fs.fat.Fat.allocNew(Fat.java:353)
at de.waldheinz.fs.fat.ClusterChain.setChainLength(ClusterChain.java:164)
at de.waldheinz.fs.fat.ClusterChain.setSize(ClusterChain.java:132)
at de.waldheinz.fs.fat.FatFile.setLength(FatFile.java:91)
at de.waldheinz.fs.fat.FatFile.write(FatFile.java:154)
at com.android.jobb.Main$1.processFile(Main.java:495)
at com.android.jobb.Main.processAllFiles(Main.java:604)
at com.android.jobb.Main.processAllFiles(Main.java:600)
at com.android.jobb.Main.main(Main.java:417)
Exception in thread "main" java.lang.RuntimeException: Error getting/writing file with           name: main.1.com.example.helloworld.obb
at com.android.jobb.Main$1.processFile(Main.java:501)
at com.android.jobb.Main.processAllFiles(Main.java:604)
at com.android.jobb.Main.processAllFiles(Main.java:600)
at com.android.jobb.Main.main(Main.java:417)
like image 932
Techie Manoj Avatar asked Nov 26 '12 10:11

Techie Manoj


People also ask

How to generate OBB file in Android studio?

Set the input directory for creating an OBB file, or the output directory when extracting ( -dump ) an existing 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.

What is OBB file in Android?

An OBB file is an expansion file used by some Android apps distributed using the Google Play online store. It contains data that is not stored in the application's main package (. APK file), such as graphics, media files, and other large program assets. OBB files are often stored in a device's shared storage folder.

Are OBB files encrypted?

These expansion files can be any format (like ZIP, PDF, MP4, etc..), but are most often OBB files created using the JOBB development tool. Structure: OBB files are are an encapsulated and encrypted set of resource files and subsequent patches for that set.


1 Answers

You can also get following error with the jobb-Tool (at least in windows with the jobb.bat), if you have many many files.

de.waldheinz.fs.fat.Directory Full Exception: directory is full

This is, because the obb file format is saved in FAT16, whitch only allows 512 entries/files in the root directory

On Windows: if you have a folder "data" whith lost of pictures, and copied to the android sdk-tools directory

  • data/1.jpg
  • data/2.jpg
  • data/3.jpg
  • data/...
  • data/5000.jpg

and you use

console>>>jobb -pn my.package.name -pv VERSIONCODE -d ./data -k obb_password
-o main.VERSIONCODE.my.package.name.obb

you will get the mentioned error. Try to add one directory-hierarchy and make the "data"-directory to a subfolder

  • root/data/1.jpg
  • root/data/2.jpg
  • root/data/3.jpg
  • root/data/...
  • root/data/5000.jpg

use

console>>>jobb -pn my.package.name -pv VERSIONCODE -d ./root -k obb_password 
-o main.VERSIONCODE.my.package.name.obb

you have to keep in mind, that if you want to read from the obb later, that the pictures are now in a subfolder.

like image 137
lx222 Avatar answered Sep 17 '22 10:09

lx222