-
-
Save tonyseek/bc5b72197ddb15418c61406061720186 to your computer and use it in GitHub Desktop.
#!/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 |
I get the prompt
'run the following command in adb : pm grant io.github.muntashirakon.captiveportalcontroller android.permission.WRITE_SECURE_SETTINGS'
but when i do I'm getting err: adb.exe: unknown command pm
@jacoblyw That seems to be a quite scammy website. I highly suggest you to flash your whole system, including recovery and boot loader if you could.
I agree that the .cn site seemed up to no good. I really have to wonder about the repair place and what they're passing on to clients.
The tablet broke again, so it doesn't matter much.
@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!
Thanks , Bro. From 2023/12/15, With pixel 7 & Android 14, my config:
adb shell
lynx:/ $ settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
lynx:/ $ settings put global captive_portal_https_url http://connect.rom.miui.com/generate_204
@jacoblyw That seems to be a quite scammy website. I highly suggest you to flash your whole system, including recovery and boot loader if you could.