引用: 悟空百科
使用usb adb、网络adb、串口敲以下命令修改安卓全局数据库
1、写入新的ntp服务器地址
adb shell settings put global ntp_server ntp.ntsc.ac.cn
2、打开网络验
//如果你是Android R 以上的电视盒子
adb shell settings put global captive_portal_mode 1
//Android Q 以下的电视盒子
adb shell settings put global captive_portal_detection_enabled 1
3、设置一个返回204 空内容的服务器
adb shell settings put global captive_portal_use_https 0
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204