diff options
-rw-r--r-- | CommandListener.cpp | 2 | ||||
-rw-r--r-- | VolumeManager.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CommandListener.cpp b/CommandListener.cpp index dff4625..461103e 100644 --- a/CommandListener.cpp +++ b/CommandListener.cpp @@ -447,7 +447,7 @@ int CommandListener::ObbCmd::runCommand(SocketClient *cli, dumpArgs(argc, argv, 3); if (argc != 5) { cli->sendMsg(ResponseCode::CommandSyntaxError, - "Usage: obb mount <filename> <key> <ownerUid>", false); + "Usage: obb mount <filename> <key> <ownerGid>", false); return 0; } rc = vm->mountObb(argv[2], argv[3], atoi(argv[4])); diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 0388010..ca5ec84 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp @@ -1001,7 +1001,7 @@ Volume* VolumeManager::getVolumeForFile(const char *fileName) { /** * Mounts an image file <code>img</code>. */ -int VolumeManager::mountObb(const char *img, const char *key, int ownerUid) { +int VolumeManager::mountObb(const char *img, const char *key, int ownerGid) { char mountPoint[255]; char idHash[33]; @@ -1085,7 +1085,7 @@ int VolumeManager::mountObb(const char *img, const char *key, int ownerUid) { } } - if (Fat::doMount(dmDevice, mountPoint, true, false, true, ownerUid, 0, + if (Fat::doMount(dmDevice, mountPoint, true, false, true, 0, ownerGid, 0227, false)) { SLOGE("Image mount failed (%s)", strerror(errno)); if (cleanupDm) { |