Same issue here. I'm completely flabbergasted to find this to be an ongoing 
problem since 2013 with no resolution. 

I am able to mount my un-encrypted OBB created with the JOBB tool but 
certain files are corrupt when reading from the mount.  I am using Android 
SDK Tools 24.3.4 on OSX.  I've attempted optimizing files, and as others 
have found, changing the contents of the OBB (for example adding a new 
file) causes unpredictable results (different files are now corrupt and 
ones that were previously corrupt start working).


On Wednesday, September 23, 2015 at 1:25:28 PM UTC-7, Yasmani Llanes wrote:
>
> Hey guys. Did you guys ever find a solution to this? I'm still having 
> issues with the JOBB tool and it's almost 2016.
>
> On Tuesday, October 22, 2013 at 5:58:53 AM UTC-10, Daniele Segato wrote:
>>
>> Hi,
>>
>> I've opened a bug here:
>> https://code.google.com/p/android/issues/detail?id=61344
>>
>> A G+ discussion here:
>> https://plus.google.com/u/0/103362309911306712784/posts/DkKiMtN5hJx
>>
>> Resumed a topic in the official Android developer group:
>>
>> https://groups.google.com/forum/#!searchin/android-developers/Are$20Encrypt$20Opaque$20Binary$20Blobs$20(OBBS)$20supported$3F/android-developers/x_kTCgMfGG8/UitGecE8SRQJ
>>
>> And I'm not alone with this:
>>
>> https://code.google.com/p/android/issues/list?can=2&q=obb&colspec=ID+Type+Status+Owner+Summary+Stars&cells=tiles
>>
>> And googling around:
>>
>> http://stackoverflow.com/questions/14342068/how-to-mount-encrypted-apk-expansion-files
>>
>> http://stackoverflow.com/questions/12101126/using-encrypted-obb-files-in-android
>>
>> This are all the same issue!
>>
>> I'm testing on a Nexus4
>>
>>
>> I simply cant mount any Obb file generated with the obb tool:
>>
>> 10-22 16:17:49.852      166-195/? E/Vold﹕ Error loading mapping table 
>> (Invalid argument)
>> 10-22 16:17:49.852      166-195/? E/Vold﹕ ASEC device mapping failed 
>> (Invalid argument)
>> 10-22 16:17:49.852      166-195/? W/Vold﹕ Returning OperationFailed - no 
>> handler for errno 22
>> 10-22 16:17:49.852      560-631/? E/MountService﹕ Couldn't mount OBB file: -1
>>
>>
>>
>> My files have a structure like this:
>>
>>
>> /dae/
>>
>>      <long filename>
>>
>>
>> and are exactly 38 files (19 textures, 19 .dae 3d models) for slightly less 
>> then 200MB
>>
>>
>>
>> Trying to dump it produce an error:
>>
>> Package Name: com.my.app.package
>> Package Version: 11
>> SALT: -63dddd10f3a63bb
>>
>> 29eb26a5c9227f6efeab677fc53a7348
>> [LFN = dae / SFN = ShortName [/   >
>>                                     ifl -- 5 2f 1d 10 3 3e c 1d 69 66 6c ]]
>>     LFN = m11_BBJ94_13WishesDollAsst.dae / SFN = ShortName ["* /  ifl -- 1a 
>> b 22 2a 1d 2f 1d 3 69 66 6c ]
>> Alignment off reading from sector: 2449
>> Partial read from sector: 2449
>> Exception in thread "main" java.nio.BufferOverflowException
>>      at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183)
>>      at java.nio.ByteBuffer.put(ByteBuffer.java:832)
>>      at 
>> com.android.jobb.EncryptedBlockFile$EncryptedBlockFileChannel.readDecryptedSector(EncryptedBlockFile.java:292)
>>      at 
>> com.android.jobb.EncryptedBlockFile$EncryptedBlockFileChannel.read(EncryptedBlockFile.java:142)
>>      at de.waldheinz.fs.util.FileDisk.read(FileDisk.java:118)
>>      at de.waldheinz.fs.fat.ClusterChain.readData(ClusterChain.java:214)
>>      at de.waldheinz.fs.fat.FatFile.read(FatFile.java:126)
>>      at com.android.jobb.Main.dumpDirectory(Main.java:137)
>>      at com.android.jobb.Main.dumpDirectory(Main.java:112)
>>      at com.android.jobb.Main.main(Main.java:315)
>>
>>
>>
>>
>> I'm pretty desperate for help here, sorry to push so much.
>>
>> Thanks,
>> Daniele
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to