假设手机有root权限 怎么往 iptables 中插入一条规则,来禁止某一个app上网。
注意:是在安卓应用层来调用,有会的大佬会吗?
要看android是否支持-m owner, xxx为App的进程id
iptables -m owner --pid-owner xxx -j REJECT