int app2sd_pre_migrate_legacy(const char *pkgid, uid_t uid)
{
- int ret = APP2EXT_SUCCESS;
- char *passwd = NULL;
- char *sdpath = NULL;
+ int ret = APP2EXT_SUCCESS;
+ char *passwd = NULL;
+ char *sdpath = NULL;
char mmc_path[FILENAME_MAX] = { 0, };
char file_path[FILENAME_MAX] = { 0, };
uid_t default_uid = tzplatform_getuid(TZ_SYS_DEFAULT_USER);
int app2sd_post_migrate_legacy(const char *pkgid, uid_t uid)
{
- int ret = APP2EXT_SUCCESS;
- char *sdpath = NULL;
+ int ret = APP2EXT_SUCCESS;
+ char *sdpath = NULL;
char *encoded_id = NULL;
char mmc_path[FILENAME_MAX] = { 0, };
char application_path[FILENAME_MAX] = { 0, };
/* this function is called when sdcard is inserted */
int app2sd_migrate_legacy_all(void)
{
- int ret = APP2EXT_SUCCESS;
- int rc = 0;
+ int ret = APP2EXT_SUCCESS;
+ int rc = 0;
char buf[FILENAME_MAX] = { 0, };
- char app2sd_path[FILENAME_MAX] = { 0, };
- char loopback_device[FILENAME_MAX] = { 0, };
- char *sdpath = NULL;
- DIR *dir = NULL;
- struct dirent entry;
- struct dirent *result = NULL;
+ char app2sd_path[FILENAME_MAX] = { 0, };
+ char loopback_device[FILENAME_MAX] = { 0, };
+ char *sdpath = NULL;
+ DIR *dir = NULL;
+ struct dirent entry;
+ struct dirent *result = NULL;
uid_t default_uid = tzplatform_getuid(TZ_SYS_DEFAULT_USER);
pkgmgr_client *pc;
/* check losetup image */
if (_app2sd_check_is_luks_device(loopback_device) == 0) {
/* call installer backend
- * to change access-rule and broadcast this update */
+ to change access-rule and broadcast this update */
ret = pkgmgr_client_usr_migrate_external_image(pc,
entry.d_name, default_uid);
if (ret < 0)