Code Monkey home page Code Monkey logo

Comments (9)

seasonyuu avatar seasonyuu commented on June 1, 2024

执行setprop service.adb.tcp.port 5555也可以通过adb shell来做

from awesome-adb.

mzlogin avatar mzlogin commented on June 1, 2024

我猜你说的是 #4 ,那个 Issue 里讨论的是多台电脑连接同一个 Android 设备。如果只是一台电脑连接某 Android 设备的话,那我这边测试的情况是 5.0 以上的也可以在 adb tcpip 5555adb connect <ip-address>

adb shell setprop service.adb.tcp.port 5555 这个应该是与 adb tcpip 5555 类似的作用吧?在 Nexus 5 (Android 5.1.1)上执行 setprop 后能 adb connect 成功,在一个别的 6.0 的机器上未成功。

from awesome-adb.

seasonyuu avatar seasonyuu commented on June 1, 2024

adb tcpip 5555 应该只是指定PC端这边向手机连接的端口而已。我在什么设备上不用setprop都不能连接成,会提示连接被拒

from awesome-adb.

seasonyuu avatar seasonyuu commented on June 1, 2024

还有 这段setprop也要su

from awesome-adb.

mzlogin avatar mzlogin commented on June 1, 2024

那看来还跟设备和 ROM 有关系,我用的 Nexus 5 没有 su 执行 setprop 也可以。

官方文档对无线连接步骤里 adb tcpip 5555 这一步的说明是 Set the target device to listen for a TCP/IP connection on port 5555.,所以它是会更改 adbd 的监听端口的。

from awesome-adb.

seasonyuu avatar seasonyuu commented on June 1, 2024

我setprop是在手机的终端执行的 AOSP

2016年8月31日 12:35,"Zhuang Ma" [email protected]写道:

那看来还跟设备和 ROM 有关系,我用的 Nexus 5 没有 su 执行 setprop 也可以。

官方文档对无线连接步骤里 adb tcpip 5555 这一步的说明是 Set the target device to listen for a
TCP/IP connection on port 5555.,所以它是会更改 adbd 的监听端口的。


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIPQR6L_AlgH4kLT9lx5RSH6Sm3klMMzks5qlQR3gaJpZM4JxLph
.

from awesome-adb.

seasonyuu avatar seasonyuu commented on June 1, 2024

也主要是我觉得要用到这种模式就是要脱离数据线 所以没想到adb来执行设置监听端口

2016年8月31日 16:48,"Season Yuu" [email protected]写道:

我setprop是在手机的终端执行的 AOSP

2016年8月31日 12:35,"Zhuang Ma" [email protected]写道:

那看来还跟设备和 ROM 有关系,我用的 Nexus 5 没有 su 执行 setprop 也可以。

官方文档对无线连接步骤里 adb tcpip 5555 这一步的说明是 Set the target device to listen for
a TCP/IP connection on port 5555.,所以它是会更改 adbd 的监听端口的。


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIPQR6L_AlgH4kLT9lx5RSH6Sm3klMMzks5qlQR3gaJpZM4JxLph
.

from awesome-adb.

mzlogin avatar mzlogin commented on June 1, 2024

原来如此~了解了,你这个思路很赞。 👍

我后来也尝试一下整理进文档,多谢!

from awesome-adb.

mzlogin avatar mzlogin commented on June 1, 2024

我今天试验了你的方法方法,非常方便。

整理了之后加了一个小节「无线连接(无需借助 USB 线)」进去了,非常感谢你的分享!

from awesome-adb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.