关于 Android 5.0 网络图标上的感叹号及其解决办法(转)

2014-12-29 22:18:27 +08:00
 wangcheng
http://xn--yet824cpd.xn--fiqs8s/45.html
26406 次点击
所在节点    Android
36 条回复
arfaWong
2014-12-30 12:08:07 +08:00
@yrom 5.0.2有效
pubby
2014-12-30 12:12:41 +08:00
自己做了一个204,观察中……
MuhammadWang
2014-12-30 12:16:14 +08:00
@fyooo
这个提示是你的机器没有root,找不到su命令. 我记得改配置不需要root的
试试 adb shell settings put global captive_portal_detection_enabled 0
xuyuanp
2014-12-30 12:33:11 +08:00
@fyooo 不用root, 把su -c 去掉就行

如楼上,两个命令都不是必须root
sycsycsyc378
2014-12-30 12:35:11 +08:00
感谢分享。什么好东西到沦陷区都会变味啊,lollipop给整成了lolipoo了在兲朝……
pubby
2014-12-30 12:51:31 +08:00
不错,测试有效。 不需要root,重启后设置还在, 去掉 su -c "

这玩意还能顺带作为自己网站的监控用
gauzeehom
2014-12-30 17:18:35 +08:00
mark,回去试之
dan994
2014-12-30 19:55:41 +08:00
按照 LZ 的链接和 @yrom 的方法,
adb shell settings put global captive_portal_server g.cn
目前在 nexus 4 和 nexus 7 5.0.1 上用着没问题
jememouse
2014-12-31 13:46:15 +08:00
nexus 5,5.0.1运行不了。
mio4kon
2015-01-03 20:34:23 +08:00
看了下logcat没效果啊.而且感叹号也没消失
D/NetworkMonitorNetworkAgentInfo [WIFI () - null]( 1923): EvaluatingState{ when=-3ms what=532486 arg1=14 target=com.android.internal.util.StateMachine$SmHandler }
D/NetworkMonitorNetworkAgentInfo [WIFI () - null]( 1923): Checking http://xn--yet824cpd.xn--fiqs8s/generate_204 on "miodeMacBook-Pro"
D/NetworkMonitorNetworkAgentInfo [WIFI () - null]( 1923): Probably not a portal: exception java.net.UnknownHostException: Unable to resolve host "xn--yet824cpd.xn--fiqs8s": No address associated with hostname
W/ActivityManager( 1923): getTasks: caller 10093 does not hold GET_TASKS; limiting output
W/ActivityManager( 1923): getTasks: caller 10093 does not hold GET_TASKS; limiting output
W/ActivityManager( 1923): getTasks: caller 10093 does not hold GET_TASKS; limiting output
W/ActivityManager( 1923): getTasks: caller 10093 does not hold GET_TASKS; limiting output
W/ActivityManager( 1923): getTasks: caller 10093 does not hold GET_TASKS; limiting output
W/ActivityManager( 1923): getTasks: caller 10093 does not hold GET_TASKS; limiting output
D/ConnectivityService( 1923): reportBadNetwork(NetworkAgentInfo [WIFI () - 102]) by 10011
D/NetworkMonitorNetworkAgentInfo [WIFI () - null]( 1923): EvaluatingState{ when=0 what=532488 arg1=10011 target=com.android.internal.util.StateMachine$SmHandler }
mio4kon
2015-01-03 20:40:22 +08:00
@mio4kon 用4g网有效果.用wifi好像还是用感叹号
话说一直打印是什么原因:getTasks: caller 10093 does not hold GET_TASKS; limiting output 好烦.
HelLion
2015-01-05 11:32:10 +08:00
@Masami2Nagasawa
待机4、5天,正常使用2.5到3天。
dexbol
2015-07-13 10:22:44 +08:00
5.1.1 works
kxjhlele
2015-10-09 09:03:47 +08:00
adb shell "settings put global captive_portal_server www.265.com"

265 是 Google 的 为啥没人用呢
bbslhb
2015-11-23 14:14:41 +08:00
2015.11.23 亲测可用,最新去感叹号方法。请移步:
http://www.noisyfox.cn/45.html
xavierskip
2016-03-09 13:24:18 +08:00
adb sell "settings put global captive_portal_server g.cn"
已经解决

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

https://www.v2ex.com/t/157735

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

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

© 2021 V2EX