基于安卓10的lineageOS源码
//网络受限
现象:屏幕左上角的wifi图标带感叹号,网络不能链接
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
adb shell settings put global captive_portal_detection_enabled 0
//wifi开启和关闭:
svc wifi enable
svc wifi disable
//关闭向导
adb shell pm disable com.google.android.setupwizard;
adb shell pm disable org.lineageos.setupwizard; //lineageos
adb shell settings put global device_provisioned 1;
adb shell settings put secure user_setup_complete 1;
//NTP
setprop persist.sys.timezone Asia/Shanghai
settings put global ntp_server ntp1.aliyun.com
reboot