adbd depends on this property to be capable of listening on network so that adb
can connect to the device through network. Without this property set, adbd will
only try to listen on the alternative usb gadget interface when it starts.

Set the property 'service.adb.tcp.port' to the default port 5555 which
is defined in
DEFAULT_ADB_LOCAL_TRANSPORT_PORT of file system/core/adb/adb.h

Signed-off-by: Jeremy Chang <jeremy.ch...@linaro.org>
---
 init.rc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/init.rc b/init.rc
index b6a92c5..50d2dc6 100644
--- a/init.rc
+++ b/init.rc
@@ -181,6 +181,7 @@ on boot
     ifup lo
     hostname localhost
     domainname localdomain
+    setprop service.adb.tcp.port 5555

 # set RLIMIT_NICE to allow priorities from 19 to -20
     setrlimit 13 40 40
-- 
1.7.1

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to