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

Commit 05f202a9 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android Code Review
Browse files

Merge "adb: Add persistent system property for running adb in TCPIP mode"

parents 705c944c 8e2ceaea
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -919,10 +919,13 @@ int adb_main(int is_daemon)
    }

        /* for the device, start the usb transport if the
        ** android usb device exists and "service.adb.tcp"
        ** is not set, otherwise start the network transport.
        ** android usb device exists and the "service.adb.tcp.port" and
        ** "persist.adb.tcp.port" properties are not set.
        ** Otherwise start the network transport.
        */
    property_get("service.adb.tcp.port", value, "0");
    property_get("service.adb.tcp.port", value, "");
    if (!value[0])
        property_get("persist.adb.tcp.port", value, "");
    if (sscanf(value, "%d", &port) == 1 && port > 0) {
        // listen on TCP port specified by service.adb.tcp.port property
        local_init(port);