Fix installation with prefer-external (storage) option. 59/84559/2
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Wed, 17 Aug 2016 14:12:45 +0000 (16:12 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 24 Aug 2016 09:18:43 +0000 (02:18 -0700)
Change-Id: I5b857600bcbb5017807386dccc09e7db7b596c00

src/common/step/filesystem/step_acquire_external_storage.cc

index 99ef814..adad0eb 100644 (file)
@@ -16,6 +16,8 @@ namespace {
 
 const char kInstalledExternally[] = "installed_external";
 const char kInternalOnly[] = "internal-only";
+const char kPreferExternal[] = "prefer-external";
+
 const char kDefaultStorageVconfKey[] =
     VCONFKEY_SETAPPL_DEFAULT_MEM_INSTALL_APPLICATIONS_INT;
 
@@ -59,6 +61,8 @@ Step::Status StepAcquireExternalStorage::process() {
   } else {
     if (!strcmp(manifest->installlocation, kInternalOnly)) {
       storage = Storage::INTERNAL;
+    } else if(!strcmp(manifest->installlocation, kPreferExternal)) {
+      storage = Storage::EXTERNAL;
     } else {
       // int type vconf value:
       // 0 means internal storage, 1 means external storage