难道一个Android设备必须植根于以远程登录呢? [英] Does an Android Device have to be rooted in order to telnet to it?
问题描述
我创建了一个的ServerSocket
侦听端口 9000
在我的应用程序,我想telnet到该端口。它的工作原理我的根的测试设备上,但我需要它在非根深蒂固的设备,这似乎并不做工作。我需要知道,如果这仅适用于根深蒂固的设备,或者如果它应该在无根的机器人以及工作,这意味着我只是在我的code犯了一个错误。
I created a ServerSocket
that listens to port 9000
in my app, and I want to telnet to that port. 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.
推荐答案
它应该在任何设备上工作,扎根或以其他方式。只要你实际上并没有试图访问特权端口(小于1024如果我没有记错),或试图用一个端口是已在使用
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.
这篇关于难道一个Android设备必须植根于以远程登录呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!