Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d17ebebe authored by John Wu's avatar John Wu Committed by Gerrit Code Review
Browse files

Merge "Fix data migration after appId change"

parents 91cf5ef2 3b38337b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -698,9 +698,6 @@ binder::Status InstalldNativeService::createAppDataLocked(
        if (!status.isOk()) {
            return status;
        }
        if (previousUid != uid) {
            chown_app_profile_dir(packageName, appId, userId);
        }

        // Remember inode numbers of cache directories so that we can clear
        // contents while CE storage is locked
@@ -726,6 +723,9 @@ binder::Status InstalldNativeService::createAppDataLocked(
        if (!status.isOk()) {
            return status;
        }
        if (previousUid != uid) {
            chown_app_profile_dir(packageName, appId, userId);
        }

        if (!prepare_app_profile_dir(packageName, appId, userId)) {
            return error("Failed to prepare profiles for " + packageName);