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

Commit b53b521e authored by David Pursell's avatar David Pursell Committed by Gerrit Code Review
Browse files

Merge "Add `adb features`."

parents f4bda753 90d4b739
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -956,6 +956,13 @@ int handle_host_request(const char* service, TransportType type,
        return 1;
    }

    if (!strcmp(service, "features")) {
        SendOkay(reply_fd);
        SendProtocolString(
            reply_fd, android::base::Join(supported_features(), '\n'));
        return 0;
    }

    // remove TCP transport
    if (!strncmp(service, "disconnect:", 11)) {
        const std::string address(service + 11);
+3 −0
Original line number Diff line number Diff line
@@ -1460,6 +1460,9 @@ int adb_commandline(int argc, const char **argv) {
        fprintf(stdout, "%s", adb_version().c_str());
        return 0;
    }
    else if (!strcmp(argv[0], "features")) {
        return adb_query_command("host:features");
    }

    usage();
    return 1;