Eagle233-Blog

[Troubleshooting] 修改 LineageOS 22.2 设备 NetworkStack 和 SNTP 服务器


Categories Troubleshooting
Tags

139 Words   |   1 Minutes

adb shell settings put global ntp_server ntp.aliyun.com && \
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 && \
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 && \
adb shell settings put global captive_portal_mode 1 && \
adb reboot

重启后检查

adb shell settings get global ntp_server
adb shell settings get global captive_portal_http_url
adb shell settings get global captive_portal_https_url
adb shell settings get global captive_portal_mode
ntp.aliyun.com
http://connect.rom.miui.com/generate_204
https://connect.rom.miui.com/generate_204
1

恢复 LineageOS 默认值

adb shell settings delete global ntp_server
adb shell settings delete global captive_portal_http_url
adb shell settings delete global captive_portal_https_url
adb shell settings delete global captive_portal_mode
adb reboot

Page views: Loading...  ·  Visitors: Loading...
Except where otherwise noted, original content on this site is dedicated to the public domain under CC0 1.0.
Powered by Hexo & Theme mdsuper
沪ICP备2026040813号
Search