t_dev_node = _app2sd_find_associated_dmcrypt_device_node(pkgid, uid);
if (!t_dev_node) {
- _E("no associated device node(%s_%d) found", pkgid, uid);
+ _W("no associated device node(%s_%d) found", pkgid, uid);
return APP2EXT_ERROR_DMCRYPT_DEVICE_UNAVAILABLE;
}
application_path);
if ((ret = umount(application_dir_mmc_path)) < 0) {
strerror_r(errno, err_buf, sizeof(err_buf));
- _E("unable to umount the dir, ret(%d) error(%d, %s)",
+ _D("unable to umount the dir, ret(%d) error(%d, %s)",
ret, errno, err_buf);
}
/* unmount the loopback encrypted pseudo device from the application installation path */
ret = _app2sd_unmount_app_content(application_path);
if (ret)
- _E("unable to unmount the app content (%d)", ret);
+ _W("unable to unmount the app content (%d)", ret);
/* detach the loopback encryption setup for the application */
#ifdef TIZEN_FEATURE_APP2SD_DMCRYPT_ENCRYPTION
ret = _app2sd_dmcrypt_close_device(pkgid, uid);
if (ret)
- _E("close dmcrypt device error (%d)", ret);
+ _W("close dmcrypt device error (%d)", ret);
#else
ret = _app2sd_remove_all_loopback_encryption_setups(loopback_device);
if (ret)
- _E("unable to detach the loopback encryption setup for the application");
+ _W("unable to detach the loopback encryption setup for the application");
#endif
/* delete the loopback device from the SD card */
ret = _app2sd_delete_loopback_device(loopback_device);
if (ret)
- _E("unable to detach the loopback encryption setup for the application");
+ _W("unable to detach the loopback encryption setup for the application");
/* delete symlink */
_app2sd_delete_symlink(application_path);
/* remove passwrd from DB */
ret = _app2sd_initialize_db();
if (ret)
- _E("app2sd db initialize failed");
+ _W("app2sd db initialize failed");
ret = _app2sd_remove_info_from_db(pkgid, uid);
if (ret)
- _E("cannot remove info from db");
+ _W("cannot remove info from db");
return ret;
struct dirent *er = NULL;
char abs_filename[FILENAME_MAX] = { 0, };
- _D("start clean_symlink [%s]", dirname);
-
dp = opendir(dirname);
if (dp != NULL) {
while (readdir_r(dp, &ep, &er) == 0 && er != NULL) {
ret = remove(abs_filename);
if (ret == -1)
return;
- } else {
- _E("couldn't open the directory[%s]", dirname);
}
-
- _D("finish clean_symlink");
}
int _app2sd_copy_dir(const char *src, const char *dest)