diff options
author | Joe Fernandez <joefernandez@google.com> | 2012-11-12 14:37:19 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-11-12 14:37:19 -0800 |
commit | fbaa232c1cc43aeab25a44481cbc1ab158771a16 (patch) | |
tree | 2fefe60ca0c2b721312753863a7fb7c0fef94a5f /docs/html/tools | |
parent | b9a2a0402aa5e92926a6bd28467992deed5d5d9d (diff) | |
parent | dddb1e56d1155327864938373b8b89453024bbea (diff) | |
download | frameworks_base-fbaa232c1cc43aeab25a44481cbc1ab158771a16.zip frameworks_base-fbaa232c1cc43aeab25a44481cbc1ab158771a16.tar.gz frameworks_base-fbaa232c1cc43aeab25a44481cbc1ab158771a16.tar.bz2 |
am dddb1e56: am 1c350fa4: am cee5dab6: Merge "docs: JOBB tool help page" into jb-dev-docs
* commit 'dddb1e56d1155327864938373b8b89453024bbea':
docs: JOBB tool help page
Diffstat (limited to 'docs/html/tools')
-rw-r--r-- | docs/html/tools/help/jobb.jd | 102 | ||||
-rw-r--r-- | docs/html/tools/tools_toc.cs | 1 |
2 files changed, 103 insertions, 0 deletions
diff --git a/docs/html/tools/help/jobb.jd b/docs/html/tools/help/jobb.jd new file mode 100644 index 0000000..d390ac9 --- /dev/null +++ b/docs/html/tools/help/jobb.jd @@ -0,0 +1,102 @@ +page.title=JOBB +@jd:body + + +<p>The {@code jobb} tool allows you to build encrypted and unencrypted APK expansion files in + Opaque Binary Blob (OBB) format. You can download and mount these expansion files in your + application using {@link android.os.storage.StorageManager} on devices with Android 2.3 (API + Level 9) or higher. OBB files are used to provide additional file assets for Android applications + (such as graphics, sounds and video), separate from an application's APK file. For more + information on using expansion files, see + <a href="{@docRoot}guide/google/play/expansion-files.html">APK Expansion Files</a>.</p> + + +<h2 id="usage">Usage</h2> + +<p>The syntax for running {@code jobb} is as follows:</p> + +<pre> +jobb [-d <directory>][-o <filename>][-pn <package>][-pv <version>] \ + [-k <key>][-ov][-dump <filename>][-v][-about] +</pre> + +<p>You can use the {@code jobb} tool to create an OBB file or extract the contents of an +existing OBB. The following example command creates an OBB file from source files.</p> + +<pre> +$ jobb -d /temp/assets/ -o my-app-assets.obb -k secret-key -pn com.my.app.package -pv 11 +</pre> + +<p>This example shows how to dump (extract) the contents of an existing OBB file:</p> + +<pre> +$ jobb -d /temp/obb-output/ -o my-app-assets.obb -k secret-key +</pre> + + +<h2 id="options">Options</h2> + +<p>The table below lists the command line options for the {@code jobb} tool.</p> + +<table> + <tr> + <th>Option</th> + <th>Description</th> + </tr> + <tr> + <td>{@code -d <directory>}</td> + <td>Set the input directory for creating an OBB file, or the output directory when extracting + ({@code -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. + </td> + </tr> + <tr> + <td>{@code -o <filename>}</td> + <td>Specify the filename for the OBB file. This parameter is required when + creating an OBB and extracting (dumping) its contents.</td> + </tr> + <tr> + <td>{@code -pn <package>}</td> + <td>Specify the package name for the application that mounts the OBB file, which corresponds + to the {@code package} value specified in your application's manifest. This parameter is + required when creating an OBB file.</td> + </tr> + <tr> + <td>{@code -pv <version>}</td> + <td>Set the minimum version for the application that can mount the OBB file, which corresponds + to the {@code android:versionCode} value in your application's manifest. This parameter is + required when creating an OBB file.</td> + </tr> + <tr> + <td>{@code -k <key>}</td> + <td>Specify a password for encrypting a new OBB file or decrypting an existing, encypted + OBB file.</td> + </tr> + <tr> + <td>{@code -ov}</td> + <td>Create OBB file that is an overlay of an existing OBB file structure. This option allows + the new package contents to be mounted into the same location as a previous package and is + intended for creating patch versions of previously generated OBB files. Files within an + overlay OBB file replace files that have the same path.</td> + </tr> + <tr> + <td style="white-space: nowrap">{@code -dump <filename>}</td> + <td><p>Extract the contents of the specified OBB file. When using this option, you must also + specify the output directory for the contents using the {@code -d <directory>} + parameter.</p> + + <p class="note"><strong>Note:</strong> When dumping an existing OBB file, you can omit the + {@code -d <directory>} parameter to get a listing of the directories inside the file, + without extracting the contents.</p> + </td> + </tr> + <tr> + <td>{@code -v}</td> + <td>Set verbose output for the tool.</td> + </tr> + <tr> + <td>{@code -about}</td> + <td>Display version and help information for the {@code jobb} tool.</td> + </tr> + +</table> diff --git a/docs/html/tools/tools_toc.cs b/docs/html/tools/tools_toc.cs index 128d320..6e58100 100644 --- a/docs/html/tools/tools_toc.cs +++ b/docs/html/tools/tools_toc.cs @@ -144,6 +144,7 @@ class="en">Tools Help</span></a></div> <li><a href="<?cs var:toroot ?>tools/help/etc1tool.html">etc1tool</a></li> <li><a href="<?cs var:toroot ?>tools/help/hierarchy-viewer.html">Hierarchy Viewer</a></li> <li><a href="<?cs var:toroot ?>tools/help/hprof-conv.html">hprof-conv</a></li> + <li><a href="<?cs var:toroot ?>tools/help/jobb.html">jobb</a></li> <li><a href="<?cs var:toroot ?>tools/help/lint.html">lint</span></a></li> <li><a href="<?cs var:toroot ?>tools/help/logcat.html">logcat</a></li> <li><a href="<?cs var:toroot ?>tools/help/mksdcard.html">mksdcard</a></li> |