Last active
November 16, 2024 13:12
-
-
Save tonyseek/bc5b72197ddb15418c61406061720186 to your computer and use it in GitHub Desktop.
Overrides the captive portal settings of Android in the People's Republic China mainland
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
#!/usr/bin/env sh | |
## I don't have any devices running Android OS now. These settings may have been outdated but I cannot verify it. | |
adb shell settings put global captive_portal_fallback_url http://g.cn/generate_204 | |
adb shell settings put global captive_portal_http_url http://www.google.cn/generate_204 | |
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204 | |
adb shell settings put global captive_portal_other_fallback_urls http://www.qualcomm.cn/generate_204 |
jacoblyw
commented
Jan 26, 2024
via email
Thanks, yes; we replaced that device. It wasn't bought in China and was a
name-brand but was an "off-brand" (as they say). We replaced it with a
mainstream brand which is much better (also a lot more expensive, but it
was worth it)
…On Thu, Nov 16, 2023 at 10:36 AM Escape0707 ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
@jacoblyw <https://github.com/jacoblyw> I just gave another search of
whois of that hostname, it turns out to be an Alibaba Cloud hostname. I
think it might be that you are using a device sold in China? Anyway, I hope
you got some new device that fits your requirement now!
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/tonyseek/bc5b72197ddb15418c61406061720186#gistcomment-4762341>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEN7UAHSIQY5JVWNSYCY33YEXNDNBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4DCNZTHA2DENNHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you were mentioned.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment