summaryrefslogtreecommitdiffstats
path: root/adb/commandline.c
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-05-29 15:52:02 +0100
committerNarayan Kamath <narayan@google.com>2014-05-29 15:54:10 +0100
commita284f8b214a8b92775534922ac24f13498d3af0a (patch)
treedc0c49a6753ac6ace37b19f2198aaad4866296d6 /adb/commandline.c
parentbf082ffb71c40e4670410b246309a182d9dafcf5 (diff)
downloadsystem_core-a284f8b214a8b92775534922ac24f13498d3af0a.zip
system_core-a284f8b214a8b92775534922ac24f13498d3af0a.tar.gz
system_core-a284f8b214a8b92775534922ac24f13498d3af0a.tar.bz2
Skip the "--abi" flag on "adb install" if present.
This flag needs to be passed through to the package manager. Without this change, the argument to this flag is interpreted as a filename. NOTE: If we don't want to add special treatment for this flag, we'll have to assume that all flags with a -- prefix have an argument, and that isn't necessarily true. Change-Id: I78c3fa842bc24148d83d7278e6dee395686240a0
Diffstat (limited to 'adb/commandline.c')
-rw-r--r--adb/commandline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/commandline.c b/adb/commandline.c
index 3970ab1..18dc6e0 100644
--- a/adb/commandline.c
+++ b/adb/commandline.c
@@ -1743,6 +1743,8 @@ int install_app(transport_type transport, char* serial, int argc, char** argv)
} else if (!strcmp(argv[i], "--key")) {
verify_apk = 0;
i++;
+ } else if (!strcmp(argv[i], "--abi")) {
+ i++;
}
}