您的位置:首页 > 理论基础 > 计算机网络

解决Android 5.0 (移动网络待机)耗电问题

2015-01-30 19:33 309 查看

1. 耗电原因

Android 5.0 增加判断网络状态的特性, 判断原理是测试链接google的一个网址. 但是google被墙了, 所以就会造成移动网络频繁的测试链接, 并且网络图标上面的那个感叹号.

详细请参考:http://blog.csdn.net/matrix_laboratory/article/details/43271473

2. 解决方法

2.1 禁止此项功能

adb shell "settings put global captive_portal_detection_enabled 0"

2.2 修改测试链接网址:

adb shell "settings put global captive_portal_server xxxxxx"
比如:

adb shell "settings put global captive_portal_server www.265.com"

www.265.com已经失效

adb shell "settings put global captive_portal_server liukebin.sinaapp.com"

adb shell "settings put global captive_portal_server xn--yet824cpd.xn--fiqs8s"



3. 参考文献

https://xn--yet824cpd.xn--fiqs8s/45.html


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐