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

烂漫一生 提交于 2019-12-11 07:04:20

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/7265751/does-an-android-device-have-to-be-rooted-in-order-to-telnet-to-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!