hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 9f7965caf8393b5cd609963a571bf899235bbd10 Mon Sep 17 00:00:00 2001
From: "vicent.chi" <vicent.chi@rock-chips.com>
Date: Tue, 16 Jun 2020 10:06:06 +0800
Subject: [PATCH] make adb tcp function default enbale
 
Signed-off-by: vicent.chi <vicent.chi@rock-chips.com>
---
 core/adbd/adb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 
diff --git a/core/adbd/adb.c b/core/adbd/adb.c
index c4c00d7..0004f2c 100644
--- a/core/adbd/adb.c
+++ b/core/adbd/adb.c
@@ -1322,8 +1322,8 @@ int adb_main(int is_daemon, int server_port)
     //    printf("using port=%d\n", port);
         // listen on TCP port specified by service.adb.tcp.port property
     //    local_init(port);
-    //} else 
-    if (!usb) {
+    //} else if (!usb) 
+    if (usb) {
         printf("Using USB\n");
         // listen on default port
         local_init(DEFAULT_ADB_LOCAL_TRANSPORT_PORT);
-- 
2.26.1