推荐几个自学做衣服的网站,湘潭网站建设问下磐石网络,php网站建设流程图,网站做网页1.修改wifi 是否可用的检测地址#xff1a;
由于编译的源码用的是谷歌的检测url,国内访问不了#xff0c;系统会认为wifi网络受限#xff0c;所以改成国内的地址
adb shell settings delete global captive_portal_https_urladb shell settings delete global captive_por…1.修改wifi 是否可用的检测地址
由于编译的源码用的是谷歌的检测url,国内访问不了系统会认为wifi网络受限所以改成国内的地址
adb shell settings delete global captive_portal_https_urladb shell settings delete global captive_portal_http_urladb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 2.通过adb 修改时间服务器由于编译的源码用的国外的服务器国内无法通过网络自动获取时间需要改成国内的
adb shell settings put global ntp_server ntp.ntsc.ac.cn //更改服务器地址
adb shell setprop persist.sys.timezone Asia/Shangha //更改时区
adb shell settings get global ntp_server //查看当前使用地址
adb shel1 settings put global auto_time 1 //打开网络同步时间开关
adb shel1 settings put global auto_time 0 //关闭网络同步时间开关
3.命令行输入返回按键事件我编译的版本是android TV 没有返回键用命令输入返回事件
adb shell input keyevent KEYCODE_BACK
4.通过adb 连接wifi 刷机到Android板但是没显示器 连接不了wifi ,可以用以下命令连接需要root 权限
cmd wifi set-wifi-enabled enabled //打开wifi
cmd wifi set-wifi-enabled disabled //关闭wifi
cmd wifi status //查看wifi状态
cmd wifi start-scan //扫描wifi网络
cmd wifi list-scan-results //获取扫描结果
cmd wifi connect-network WIFINAME wpa2 WIFIPASSWAORD //连接wifi
cmd wifi list-networks //查看已保存的网络
cmd wifi forget-network networkId //networkId 通过 查看已保存的网络 得到。
cmd wifi start-softap hotpot11 wpa2 12345678 //开启/关闭wifi热点开启 wpa2 类型、名称为hotpot11 、密码是 12345678 的 wifi热点
cmd wifi stop-softap //关闭热点
cmd wifi set-scan-always-available enabled|disabled //打开/关闭 自动开启wifi