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

Commit 3c1803ca authored by Josh Gao's avatar Josh Gao Committed by Yurii Zubrytskyi
Browse files

adb: fix apex installation.

Incremental doesn't support apex installation, but we were exiting
instead of returning -1 to fall back to regular installation.

Bug: http://b/151900478
Test: manual
Change-Id: Id27009250090a65fbb45bb65fc39c1799bf1f861
parent cd63cae6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -325,7 +325,12 @@ static int install_app_incremental(int argc, const char** argv, bool wait, bool
        }
    }

    if (first_apk == -1) error_exit("Need at least one APK file on command line");
    if (first_apk == -1) {
        if (!silent) {
            fprintf(stderr, "error: need at least one APK file on command line\n");
        }
        return -1;
    }

    auto files = incremental::Files{argv + first_apk, argv + last_apk + 1};
    if (silent) {