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

Commit ec81c918 authored by Songchun Fan's avatar Songchun Fan Committed by Song Chun Fan
Browse files

[pm] clarify error message for INSTALL_FAILED_TEST_ONLY

BUG: 231368794
Test: builds
Change-Id: If123588b581ae29da7f8cea9500824a0d62d39cb
parent 3e1f2372
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1171,7 +1171,8 @@ final class InstallPackageHelper {
        request.setName(pkgName);
        if (parsedPackage.isTestOnly()) {
            if ((installFlags & PackageManager.INSTALL_ALLOW_TEST) == 0) {
                throw new PrepareFailure(INSTALL_FAILED_TEST_ONLY, "installPackageLI");
                throw new PrepareFailure(INSTALL_FAILED_TEST_ONLY,
                        "Failed to install test-only apk. Did you forget to add -t?");
            }
        }