This file contains hidden or 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 |
This file contains hidden or 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
| /// Copyright © 2020-2022 Robin Voetter | |
| /// | |
| /// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation | |
| /// files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, | |
| /// modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the | |
| /// Software is furnished to do so, subject to the following conditions: | |
| /// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the | |
| /// Software. | |
| /// | |
| /// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO |