android TV 网络受限解决办法

盒子#

Copy Highlighter-hljs
采用wifi或者有线网口adb方式 保证在同一个局域网
1、打开adb设置-系统-关于-连续点击Android TV操作系统版本,会有提示要打开发者选项,在开发者选项内勾选USB调试
2、电脑连接adb
adb connect 空格(192.168.xxx.xxx.)(xxx.xxx内是你电视盒子的IP地址)
一. 解决网络受限
1. 通过ADB命令的方式
先删除默认的地址:
adb shell settings delete global captive_portal_https_url
adb shell settings delete global captive_portal_http_url
2.再修改新的地址:
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
3.把阿里云ntp服务器写入到电视盒子内
adb shell settings put global ntp_server ntp1.aliyun.com
adb shell settings put global ntp_server cn.ntp.org.cn
adb shell settings put global ntp_server ntp.ntsc.ac.cn

谷歌手机#

Copy Highlighter-hljs
# 进入 adb shell
adb shell
# 先看下原始的设置是什么.
flame:/ $ settings get global captive_portal_http_url
null
flame:/ $ settings get global captive_portal_https_url
null
# 设置后, 断开重连WIFI.发现网络已恢复.
flame:/ $ settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
flame:/ $ settings put global captive_portal_https_url http://connect.rom.miui.com/generate_204
# 尝试删掉自定义设置.断开重连WIFI,发现WIFI网络重新提示异常.说明这个设置,确实在起作用.
flame:/ $ settings delete global captive_portal_http_url
Deleted 1 rows
flame:/ $ settings delete global captive_portal_https_url
Deleted 1 rows
# 重新设置好, 断开重连WIFI.继续日常使用.
flame:/ $ settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
flame:/ $ settings put global captive_portal_https_url http://connect.rom.miui.com/generate_204
posted @   流年中渲染了微笑  阅读(2009)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· .NET Core 中如何实现缓存的预热?
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统
点击右上角即可分享
微信分享提示
CONTENTS