* @post Installation is done by package installer.
* Encryption password is saved in db TZ_SYS_DB/.app2sd.db
* @param[in] appname application package name
- * [Ex: com.samsung.calculator]
*This entry is parsed from application package control/manifest file.
* @param[in] dir_list directory structure of the application
* @param[in] size size of memory required by application(in MB).
* @brief : This API does post installation operations after
* the installation in SD card
* @param[in] appname application package name
- * [Ex: com.samsung.calculator]
* @param[in] install_status Status of installation of package
*[ enum app2ext_status].If package installation failed then
* install_status= APP2EXT_STATUS_FAILURE else if installation
* @pre vfat type sd card must be present.
* @post Upgradation is done by package installer.
* @param[in] appname application package name
- * [Ex: com.samsung.calculator]
* @param[in] dir_list directory structure of the application
* @param[in] size size of memory required by application(in MB).
*This entry is parsed from application package control/manifest file.
* @brief : This API does post upgradation operations after
* the installation in SD card
* @param[in] appname application package name
- * [Ex: com.samsung.calculator]
* @param[in] install_status Status of installation of package
*[ enum app2extl_status].If package upgradation failed then
* upgrade_status= APP2EXT_STATUS_FAILURE else if upgradation
* @pre Package must be installed in sdcard.
* @post Package is uninstalled by the package installer.
* @param[in] appname application package name
- * [Ex: com.samsung.calculator]
* @return 0 if success, error code(>0) if fail
* @remark None.
*/
* @pre Package must be uninstalled .
* @post Encryption password is removed from sqlite db.
* @param[in] appname application package name
- * [Ex: com.samsung.calculator]
* @return 0 if success, error code(>0) if fail
* @remark None.
*/
int app2sd_client_post_app_uninstall(const char *pkgid);
/**
- * @brief : This API moves the package from sd card
+ * @brief : This API prepare the move of the package from sd card
to internal memory and vice versa.
* @param[in] pkgid application package id
- * [Ex: com.samsung.calculator]
* @param[in] move_type Move type[enum app2ext_move_type]
* [sd card to internal/internal to sd card]
* @param[in] dir_list directory structure of the application
* @return 0 if success, error code(>0) if fail
* @remark None.
*/
-int app2sd_client_usr_move_installed_app(const char *pkgid,
+int app2sd_client_usr_pre_move_installed_app(const char *pkgid,
GList *dir_list, app2ext_move_type move_type, uid_t uid);
-int app2sd_client_move_installed_app(const char *pkgid,
+int app2sd_client_pre_move_installed_app(const char *pkgid,
GList *dir_list, app2ext_move_type move_type);
/**
+ * @brief : This API remove the resources created during the move.
+ * @param[in] pkgid application package id
+ * @param[in] move_type Move type[enum app2ext_move_type]
+ * [sd card to internal/internal to sd card]
+ * @return 0 if success, error code(>0) if fail
+ * @remark None.
+ */
+int app2sd_client_usr_post_move_installed_app(const char *pkgid,
+ app2ext_move_type move_type, uid_t uid);
+int app2sd_client_post_move_installed_app(const char *pkgid,
+ app2ext_move_type move_type);
+
+/**
* @brief : This API Enables the application in sd card
for use. This API should be called by AUL.
* @param[in] pkgid application package id
-* [Ex: com.samsung.calculator]
* @pre Package must be installed
* @post application is enabled in SD card.
* @return 0 if success, error code(>0) if fail
. This API should be called by Launchpad callback which will be registered
during app launch for exit action of the application
* @param[in] pkgid application package id
-* [Ex: com.samsung.calculator]
* @pre Package must be installed and enabled
* and application must be running in SD card
* @post application is disabked in SD card.