adb 工具-原⽣安卓解决WiFi⽹络受限以及修改NTP服务
安装包下载地址:https://developer.android.google.cn/studio/releases/platform-tools
注:
adb kill-server //结束adb服务连接
adb start-server //启动adb服务
1.设置电视盒子时区为中国标准时间
2.设置开发模式开启,关于最后,一直按确认键,然后打开USB功能(否则电脑连不上电视盒子)
// 创建与xxx的设备连接
adb connect 192.168.48.xxx
// 获取adb设备列表
adb devices
// 安装apk包到电视盒子
adb install D:\apps\tv_adb.apk
说明:如要使用http,需要先写入关闭https验证的配置,再填写http服务器。然后开启飞行模式,再打开感叹号即可消失。
// 解决安卓tv原版 网络受限
1、删除默认的地址
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 get global time_zone
adb shell settings put global time_zone Asia/Shanghai
adb shell settings put global ntp_server ntp1.aliyun.com