简体   繁体   English

是否必须植根Android设备才能进行远程登录?

[英]Does an Android Device have to be rooted in order to telnet to it?

I created a ServerSocket that listens to port 9000 in my app, and I want to telnet to that port. 我创建了一个ServerSocket来监听应用程序中的端口9000 ,并且我想通过telnet到该端口。 It works on my rooted test device, but I need it to work on non-rooted devices, which it doesn't seem to do. 它可以在有根的测试设备上运行,但是我需要它在无根的设备上运行,但似乎没有。 I need to know if this only works on rooted devices, or if it should work on unrooted droids as well, implying that I just made a mistake in my code. 我需要知道这是否仅适用于有根设备,还是也应适用于无根机器人,这意味着我在代码中犯了一个错误。

It should work on any device, rooted or otherwise. 它可以在任何有根或其他设备上工作。 As long as you aren't actually trying to access a privileged port (< 1024 if I recall correctly) or trying to use a port that's already in use. 只要您实际上并没有尝试访问特权端口(如果我没记错的话,请小于1024)或尝试使用已在使用的端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM