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

Commit 475faea5 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 am: 49b98472

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

Change-Id: Ie0abfb0962d59ee91672ac211d51d24a91286df9
parents 8a5a8bb9 49b98472
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);