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

Commit a514e13e authored by JW Wang's avatar JW Wang Committed by Automerger Merge Worker
Browse files

Merge "Delete APK snapshots during restoration (3/n)" into rvc-dev am: 5bcc8f8a

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

Change-Id: Ic7576b8366c76145c473bcdf46c8caf65739819f
parents 44d73fd7 5bcc8f8a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1074,6 +1074,7 @@ binder::Status InstalldNativeService::restoreAppDataSnapshot(
            res = error(rc, "Failed copying " + from_ce + " to " + to_ce);
            return res;
        }
        delete_dir_contents_and_dir(from_ce, true /* ignore_if_missing */);
    }

    if (needs_de_rollback) {
@@ -1090,6 +1091,7 @@ binder::Status InstalldNativeService::restoreAppDataSnapshot(
            res = error(rc, "Failed copying " + from_de + " to " + to_de);
            return res;
        }
        delete_dir_contents_and_dir(from_de, true /* ignore_if_missing */);
    }

    // Finally, restore the SELinux label on the app data.