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

Commit 49b98472 authored by John Wu's avatar John Wu Committed by Automerger Merge Worker
Browse files

Merge "Fix data migration after appId change" am: d17ebebe am: c7a9c266

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1977830

Change-Id: I1b49a1ab2c3b93f28b14780cbcfb12d40e390087
parents 6fbb73a0 c7a9c266
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);