当我检查了Android 2.3的文档,我发现了大约OBB(不透明的二进制数据)的存储部分的信息。
When I checked the Android 2.3 doc, I found the information about OBB(Opaque Binary Blob) in Storage section.
但我找不到OBB(不透明的二进制数据)在谷歌的任何信息。
But I can't find any information of OBB(Opaque Binary Blob) in Google.
您可以给我一个什么OBB(不透明的二进制数据)的信息或地址?
Can you give me a information or address about what Obb(Opaque Binary Blob) is?
推荐答案
OBB让你打包大文件,并将其存储在公共SD卡中,只有您的应用程序可以解密和使用它们的方式。建立AOSP在 mkobb
.SH和 obbtool
允许你创建(在Linux上)OBB文件。
OBB lets you package up large files and store them on the public SDcard in a way that only your app can decrypt and use them. After building the AOSP the mkobb
.sh and obbtool
allow you to create (on Linux) OBB files.
设置之类的路径,权限和内核模块后,创造是basicly:
After setting up things like PATH, permissions and kernel modules, creating is basicly:
$ mkobb.sh -d /data/myfiles -k my_secret_key -o /data/data.obb
$ obbtool a -n com.example.myapp -v 1 -s seed_from_mkobb /data/data.obb
在这你可以存储data.obb的SD卡,只从你的应用程序访问文件使用 my_secret_key
After which you can store the data.obb on SDcard and only access the files from your app with use of the my_secret_key
storage = (StorageManager) getSystemService( STORAGE_SERVICE );
storage.mountObb( obbFilepath, "my_secret_key", myListener );
obbContentPath = storage.getMountedObbPath( obbFilepath );
虽然其他应用程序可以摧毁SD卡上的data.obb唯一的应用程序可以访问它们,就好像存储在应用程序中的内容是作为安全的私密性。
Although other apps can destroy the data.obb on SD card only the app can access them and the content is as secure as if stored in app private.
只有在API 9级及以上,并与WRITE_EXTERNAL_STORAGE从SD访问OBB文件。
Only on API level 9 and up and with the WRITE_EXTERNAL_STORAGE to access OBB files from SD.
相关推荐
最新文章