java.net.BindException:绑定失败:在有根设备上出现 EACCES(权限被拒绝)

java.net.BindException: bind failed: EACCES (Permission denied) on a rooted device

以下代码在 root 平板电脑上抛出 "java.net.BindException: bind failed: EACCES (Permission denied)":

 DatagramSocket ds = new DatagramSocket(67);

我认为在 root 设备上允许绑定到特权端口 67。任何人都可以对此有所了解吗?

仅仅因为设备是 "rooted",就不允许任意应用程序使用 root 权限做任何他们想做的事情。获得 Root 权限的设备仅允许任意应用程序请求使用 su 命令行通过命令行以 root 权限执行新进程。

See this, for example.