diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-29 15:52:02 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-05-29 15:54:10 +0100 |
commit | a284f8b214a8b92775534922ac24f13498d3af0a (patch) | |
tree | dc0c49a6753ac6ace37b19f2198aaad4866296d6 /adb/commandline.c | |
parent | bf082ffb71c40e4670410b246309a182d9dafcf5 (diff) | |
download | system_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.c | 2 |
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++; } } |