I've been playing around with OBB files on ICS and haven't had success 
mounting encrypted ones. I've been able to build OBB files on my Ubuntu 
10.10 box and successfully mount them in my App on the phone. However, when 
I encrypt them I'm not able to mount them. I haven't found much 
documentation on the subject of creating the files via mkobb.sh  and 
obbtool, other then this 
StackOverflow<http://stackoverflow.com/questions/4524981/what-is-obbopaque-binary-blob-in-android-develop-site>post.

When I create the OBB file I do this (see this SO 
post<http://stackoverflow.com/questions/12101126/using-encrypted-obb-files-in-android>for
 more details):

*sudo modprobe cryptoloop
sudo modprobe twofish
sudo modprobe vfat
./mkobb.sh -d /tmp/obb/ -kblahblah -o /tmp/out.obb -v
obbtool a -n com.test.blah -v 1 -s 997ff9b1516a6788 /tmp/out.obb # 997ff... is 
the salt from the mkobb step
obbtool i /temp/out.obb # verify the obb file
adb push /temp/out.obb /sdcard/
*


When I mount this with 
StorageManager<http://developer.android.com/reference/android/os/storage/StorageManager.html>I
 get 
OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT as a result and vold has 
this error message:

*
E/MountService( 2004): Couldn't mount OBB file: -1*


This same code (with a null password) works correctly when mounting the 
non-encrypted version of the OBB.

I'm wondering if anyone else has this working? Since I can't find any 
documentation about the mkobb.sh and obbtool it's hard to know if there is 
something wrong in with my process of creating OBB files, if there's 
something in my environment that's not right, if its a bug in Android or 
encrypted OBBs are just not supported at this time.

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to