Skip to content

新手机安卓16网络监听限制 #40

@bezaleelcheung

Description

@bezaleelcheung

有没有人在近几年的安卓13+以上的版本用过成功的。

经过查询:Android 16 上为什么端口绑定会失败

Android 13 开始对每个 UID 做了 per-app network namespace。App 内部开的 socket 只在自己 namespace 内生效;外部(哪怕同机 127.0.0.1)也访问不到。

SELinux policy 限制普通 UID 执行 bind() 到 INET_LOOPBACK。

部分 ROM 把 127.0.0.1 端口监听直接 DENY (出现 Permission denied 或 Address not available)。

Android 14 强化 后台 network policy,非前台进程几乎无网络执行权限。

可选方案:

root

无root的vpnservice

无root的proot的容器

有人有用过分享下么

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions