[pm] clarify error message for INSTALL_FAILED_TEST_ONLY
BUG: 231368794 Test: builds Change-Id: If123588b581ae29da7f8cea9500824a0d62d39cb
This commit is contained in:
committed by
Song Chun Fan
parent
3e1f237201
commit
ec81c918d5
@@ -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?");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user