Add image mounting commands for OBB files
Allow the mounting of OBB filesystem images if they're encrypted with
twofish and in FAT filesystem format.
Change-Id: I54804e598f46b1f3a784ffe517ebd9d7626de7aa
diff --git a/VolumeManager.h b/VolumeManager.h
index f807beb..31870e5 100644
--- a/VolumeManager.h
+++ b/VolumeManager.h
@@ -63,6 +63,8 @@
int shareEnabled(const char *path, const char *method, bool *enabled);
int simulate(const char *cmd, const char *arg);
int formatVolume(const char *label);
+
+ /* ASEC */
int createAsec(const char *id, unsigned numSectors, const char *fstype,
const char *key, int ownerUid);
int finalizeAsec(const char *id);
@@ -72,6 +74,14 @@
int renameAsec(const char *id1, const char *id2);
int getAsecMountPath(const char *id, char *buffer, int maxlen);
+ /* Loopback images */
+ int mountImage(const char *fileName, const char *key, int ownerUid);
+ int unmountImage(const char *fileName, bool force);
+
+ /* Shared between ASEC and Loopback images */
+ int unmountLoopImage(const char *containerId, const char *loopId,
+ const char *fileName, const char *mountPoint, bool force);
+
void setDebug(bool enable);
// XXX: Post froyo this should be moved and cleaned up