From 2c9584c7d13a11fa5fce03197b0e988f41957eca Mon Sep 17 00:00:00 2001 From: "Jungmin, Park" Date: Thu, 16 May 2013 20:54:12 +0900 Subject: [PATCH] Revert "Revert "Change MoveTo API()" (for RC29)" <== This was reverted for RC29 temporary, so I'm restoring again. This reverts commit 94cdabdb7a100f0810be6c26cd62c77ad68588fe --- src/app/package/FAppPkg_PackageManagerImpl.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/package/FAppPkg_PackageManagerImpl.cpp b/src/app/package/FAppPkg_PackageManagerImpl.cpp index e729e03..c6aa35d 100755 --- a/src/app/package/FAppPkg_PackageManagerImpl.cpp +++ b/src/app/package/FAppPkg_PackageManagerImpl.cpp @@ -551,9 +551,10 @@ _PackageManagerImpl::MoveToExternalStorage(const PackageId& packageId) SysTryReturnResult(NID_APP, __pRequestClient != null, E_SYSTEM, "pkgmgr_client_new(PC_REQUEST) failed"); } - res = pkgmgr_client_move(__pRequestClient, pType, pPackageId.get(), PM_MOVE_TO_SDCARD, PM_QUIET); + SysLog(NID_APP, "pkgmgr_client_request_service(PM_REQUEST_MOVE, 0, %s, %s)", pType, pPackageId.get()); + res = pkgmgr_client_request_service(PM_REQUEST_MOVE, 1, __pRequestClient, pType, pPackageId.get(), null, null, null); - if(packageInfoHandle) + if (packageInfoHandle) { pkgmgrinfo_pkginfo_destroy_pkginfo(packageInfoHandle); } @@ -618,9 +619,10 @@ _PackageManagerImpl::MoveToInternalStorage(const PackageId& packageId) SysTryReturnResult(NID_APP, __pRequestClient != null, E_SYSTEM, "pkgmgr_client_new(PC_REQUEST) failed"); } - res = pkgmgr_client_move(__pRequestClient, pType, pPackageId.get(), PM_MOVE_TO_INTERNAL, PM_QUIET); + SysLog(NID_APP, "pkgmgr_client_request_service(PM_REQUEST_MOVE, 1, %s, %s)", pType, pPackageId.get()); + res = pkgmgr_client_request_service(PM_REQUEST_MOVE, 0, __pRequestClient, pType, pPackageId.get(), null, null, null); - if(packageInfoHandle) + if (packageInfoHandle) { pkgmgrinfo_pkginfo_destroy_pkginfo(packageInfoHandle); } -- 2.7.4