Using jobb tool in Android

后端 未结 7 1815
感动是毒
感动是毒 2021-01-02 06:13

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 \         


        
相关标签:
7条回答
  • 2021-01-02 07:04

    I was getting the same behaviour but this was only in a test directory structure I was experimenting with. It had almost no content so maybe this is an issue with jobb at these small sizes. Or maybe some error conditions are met depending on the space taken up by the all the files. I've commented in more detail on the Google Code issue.

    I wonder if adding a couple of redundant files might avoid this error behaviour for those that are experiencing it with non-trivial directory structures.

    0 讨论(0)
  • 2021-01-02 07:05

    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.

    0 讨论(0)
  • 2021-01-02 07:10

    In my case, I solved the issue removing several hidden files...

    My boss owns and works on MacOSX, me on Windows. So, when he passed it on and after opening the folder, I found several hidden files, such as .DS_Store and ._.DS_Store. Additionally, I found hidden temporary JPGs, for example if I had a file called image1.jpg I had another one .image1.jpg. So, eventually I deleted all of the hidden files.

    And voilà!

    0 讨论(0)
  • 2021-01-02 07:19

    Got the same problem and the workaround I found is to make an archive with a minimum size of 4mo. To add fake data to my small archive make it worked…

    Issue : https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=53878

    0 讨论(0)
  • 2021-01-02 07:19

    In my case, it solved running again the program, with the same parameters and the same content at the directory that I wanted to pack.

    ./jobb -d /media/assets/ -o my-app-assets.obb -k my_pass -pn package-name -pv your-version
    
    0 讨论(0)
  • 2021-01-02 07:19

    In my case I just have to add one file of a size 2.46 MB. Adding smaller file didn't work. So just try adding more dummy files until it works.

    0 讨论(0)
提交回复
热议问题