External installation 80/61680/23
authorTomasz Iwanek <t.iwanek@samsung.com>
Fri, 2 Oct 2015 09:01:32 +0000 (11:01 +0200)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Wed, 1 Jun 2016 00:47:06 +0000 (17:47 -0700)
commit60e2bea5ac37553bb5edfd0d522f70dc90fd4641
tree97f7a47ceb9ade251d14b4d89a1224eb8f6df3e2
parent8e184e18692eb7d990c18011451bf6a0817e4522
External installation

This patch implements installation of package in external sd card storage.
Tpk and wgt applications may declare preference of being installed on external
storage. If so and space requirement is satisified then their resource directory
is installed in sd card with use of app2sd API.

Following patchsets should be submitted together:
 - https://review.tizen.org/gerrit/61678
 - https://review.tizen.org/gerrit/61679
 - https://review.tizen.org/gerrit/61680

Verify by:
 - running smoke tests,
 - running installation, update, deinstallation for package that prefers external
   installation (SD card must be inserted).

Requires:
 - https://review.tizen.org/gerrit/#/c/64796/

Change-Id: I3c49eaa3c65ce318b2e1ce6ccf049d285a83e58b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
21 files changed:
CMakeLists.txt
packaging/app-installers.spec
src/common/CMakeLists.txt
src/common/app-installers.pc.in
src/common/external_storage.cc [new file with mode: 0644]
src/common/external_storage.h [new file with mode: 0644]
src/common/installer_context.h
src/common/pkgmgr_registration.cc
src/common/pkgmgr_registration.h
src/common/step/backup/step_copy_backup.cc
src/common/step/backup/step_copy_backup.h
src/common/step/configuration/step_parse_manifest.cc
src/common/step/filesystem/step_acquire_external_storage.cc [new file with mode: 0644]
src/common/step/filesystem/step_acquire_external_storage.h [new file with mode: 0644]
src/common/step/filesystem/step_copy.cc
src/common/step/filesystem/step_copy.h
src/common/step/filesystem/step_recover_external_storage.cc [new file with mode: 0644]
src/common/step/filesystem/step_recover_external_storage.h [new file with mode: 0644]
src/common/step/filesystem/step_remove_files.cc
src/common/utils/file_util.cc
src/common/utils/file_util.h