安卓拦截网址问题

2023 年 3 月 12 日
 VAY1314

各位安卓大佬,有个 app 弹窗强制更新。只要拦截掉更新网址就能正常使用。有没有什么高效拦截的手段。因为只是某个页面,使用 hosts 不行

12669 次点击
所在节点    Android
14 条回复
cyningxu
2023 年 3 月 12 日
没 root 的话可以用 charles 试试,root 了方法就多了,magisk 、lsposed 都可以
qztx
2023 年 3 月 12 日
试一试先断网再打开
ndd200
2023 年 3 月 12 日
https 的话二级域名不太好拦。
http 的话,装 adguard 。
qscasdqwezxc
2023 年 3 月 12 日
tomac4t
2023 年 3 月 12 日
VAY1314
2023 年 3 月 12 日
@cyningxu 已经 root 了,不想赢 vpn 之类拦截。magisk lsp 能有啥方法
VAY1314
2023 年 3 月 12 日
@qztx 应用打开时有联网验证其他信息,断网打不开。所以我想屏蔽检测更新的那个网址
VAY1314
2023 年 3 月 12 日
@qscasdqwezxc 谢谢,但不想一直开着 vpn 。我在找找有没有其他办法
VAY1314
2023 年 3 月 12 日
@tomac4t 谢谢,但不想一直开着 vpn 。我在找找有没有其他办法
ewiglicht
2023 年 3 月 13 日
试试 box4magisk ? magisk 模块,支持 clash 内核,自己加拦截规则
VAY1314
2023 年 3 月 13 日
@ewiglicht 感谢,我先试试啊
stardew
2023 年 3 月 13 日
root 了的话用 iptables 就行
VAY1314
2023 年 3 月 13 日
@stardew 请教 iptables 规则咋写呢,我这样写不行 iptables -I OUTPUT -p tcp --dport 443 -m string --string "announcements" --algo bm -m owner --uid-owner 10474 -j DROP
stardew
2023 年 3 月 14 日
@VAY1314 我也不会写,我是随便 google 的就能用...

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/923285

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX