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

Commit 00464faf authored by Mathieu Chartier's avatar Mathieu Chartier Committed by android-build-merger
Browse files

Unlink app image if copy fails for A/B OTA am: a029c072

am: 0e9b53d8

Change-Id: If00ecf8e62b045ac49c22ce56d406b5d169e83da
parents 63b0cd22 0e9b53d8
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2182,6 +2182,9 @@ int move_ab(const char* apk_path, const char* instruction_set, const char* oat_d
        bool art_success = true;
        bool art_success = true;
        if (!a_image_path.empty()) {
        if (!a_image_path.empty()) {
            art_success = move_ab_path(b_image_path, a_image_path);
            art_success = move_ab_path(b_image_path, a_image_path);
            if (!art_success) {
                unlink(a_image_path.c_str());
            }
        }
        }


        success = art_success || kIgnoreAppImageFailure;
        success = art_success || kIgnoreAppImageFailure;