LineageOS 18.1 patches & tweaks for Samsung S5 Neo (s5neolte)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.5 KiB

  1. #!/system/bin/sh
  2. # AOSP 11 Captive Portal is a network connectivity check procedure
  3. # executed when you connect to a WLAN network which has
  4. # a user sign-in web form. It uses HTTP status code 204.
  5. #
  6. # AOSP 11 default Captive Portal URLs are as follows:
  7. #
  8. # http://www.google.com/gen_204
  9. # http://play.googleapis.com/generate_204
  10. # https://www.google.com/generate_204
  11. # http://www.googleapis.cn/generate_204
  12. # https://connectivitycheck.gstatic.com/generate_204
  13. # https://ipv6.google.com/generate_204
  14. #
  15. # Defined in AOSP 11 source code paths
  16. # cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ConnectivityBackgroundTestActivity.java
  17. # external/autotest/client/common_lib/cros/dbus_send_unittest.py
  18. # packages/modules/NetworkStack/res/values/config.xml
  19. # packages/modules/NetworkStack/res/values-mcc460/config.xml
  20. # packages/modules/NetworkStack/src/android/net/util/NetworkStackUtils.java
  21. # packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/NetworkMonitorTest.java
  22. # packages/apps/TV/src/com/android/tv/util/NetworkUtils.java
  23. # system/extras/multinetwork/quick_test.sh
  24. #
  25. # Global options
  26. #
  27. # 0: Completely disable captive portal checks
  28. # 1: Enable captive portal checks (default)
  29. #
  30. settings put global captive_portal_detection_enabled 0
  31. # 0: Don't attempt to detect captive portals
  32. # 1: Prompt user to sign in
  33. # 2: Immediately disconnect from network and do not reconnect to that network in the future
  34. #
  35. settings put global captive_portal_mode 0