pi->pkgmgr_info = strndup(optarg, MAX_STRLEN);
break;
+ case 'w': /* pkgid for mount installation */
+ mode = 'w';
+ pi->request_type = PKGMGR_REQ_MOUNT_INSTALL;
+ pi->pkgmgr_info = strndup(optarg, MAX_STRLEN);
+ break;
+
case 'b': /* recovery */
if (mode) {
r = -EINVAL;
PKGMGR_REQ_ENABLE_APP = 11,
PKGMGR_REQ_DISABLE_APP = 12,
PKGMGR_REQ_ENABLE_APP_SPLASH_SCREEN = 13,
- PKGMGR_REQ_DISABLE_APP_SPLASH_SCREEN = 14
+ PKGMGR_REQ_DISABLE_APP_SPLASH_SCREEN = 14,
+ PKGMGR_REQ_MOUNT_INSTALL = 15
};
enum {
#define OPTVAL_FORCE_REMOVAL 1001
/* Supported options */
-const char *short_opts = "k:l:i:d:c:m:t:o:r:p:s:b:e:M:y:q";
+const char *short_opts = "k:l:i:d:c:m:t:o:r:p:s:b:e:M:y:w:q";
const struct option long_opts[] = {
{ "session-id", 1, NULL, 'k' },
{ "license-path", 1, NULL, 'l' },
{ "tep-move", 1, NULL, 'M' },
{ "smack", 1, NULL, 's' },
{ "direct-manifest-install", 1, NULL, 'y' },
+ { "mount-install", 1, NULL, 'w' },
{ "recovery", 1, NULL, 'b' },
{ "preload", 0, NULL, OPTVAL_PRELOAD },
{ "force-remove", 0, NULL, OPTVAL_FORCE_REMOVAL },