Created
June 27, 2024 18:02
-
-
Save vcheckzen/1a49951a778ae364b4dd9127c1f77b4b to your computer and use it in GitHub Desktop.
Android set NTP and CPD servers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# NTP | |
adb shell settings put global ntp_server ntp.aliyun.com | |
# CPD | |
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_use_https 1 | |
adb shell settings put global captive_portal_detection_enabled 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment