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

Commit e92aa620 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

am: 00464faf

Change-Id: Ia685cc9cae956f531119a475e29ea4c549d2092f
parents e2e6909e 00464faf
Loading
Loading
Loading
Loading
+3 −0
Original line number 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;
        if (!a_image_path.empty()) {
            art_success = move_ab_path(b_image_path, a_image_path);
            if (!art_success) {
                unlink(a_image_path.c_str());
            }
        }

        success = art_success || kIgnoreAppImageFailure;