Adds --force-queryable option to adb install

This change adds support for parsing the --force-queryable option from
adb install. When implemented will enable test infrastructure to bypass
most issues that would be encountered by app enumeration without
changes.

Bug: 142386643
Test: run `adb install --force-queryable ...`
Merged-In: Id793ac39a4dfb022fc5e4c0c1230a3da77bf41c6
(cherry picked from commit f3a0386b74)

Change-Id: I758270b8fd18756d02eff4f18f1e450cbc3367cc
This commit is contained in:
Patrick Baumann
2020-01-23 12:49:14 -08:00
parent e464d16f7d
commit 264700a361

View File

@@ -2601,6 +2601,8 @@ class PackageManagerShellCommand extends ShellCommand {
case "--staged":
sessionParams.setStaged();
break;
case "--force-queryable":
break;
case "--enable-rollback":
if (params.installerPackageName == null) {
// com.android.shell has the TEST_MANAGE_ROLLBACKS