Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a284f8b2 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

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
parent bf082ffb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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++;
        }
    }