From a284f8b214a8b92775534922ac24f13498d3af0a Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Thu, 29 May 2014 15:52:02 +0100 Subject: [PATCH] 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 --- adb/commandline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adb/commandline.c b/adb/commandline.c index 3970ab155..18dc6e0fa 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++; } }