OSDN Git Service

fix cellular captive portal reevaluation url
authorfionaxu <fionaxu@google.com>
Mon, 10 Jul 2017 16:34:07 +0000 (09:34 -0700)
committerChen Xu <fionaxu@google.com>
Thu, 7 Sep 2017 18:49:55 +0000 (18:49 +0000)
commita4434f86a028a14f3367702b8b5dd7967ef811ae
tree85bfa0b393e6be5d600995f26d835f7820ab14e6
parentfb5369bc3f0f58909fac98d9d4661dbeb8241c75
fix cellular captive portal reevaluation url

we apply redirection link as the url everywhere for cellular captive portal.
this url should only be used when load the portal page at the first place (when users
click on the notification) and shouldn't be used as the re-evaluation url
as it wont return the expected response code.
instead we should use special URL (generate_204) from connectivity
service which will return 204 if redirection is gone.

Test: manual test with cold and hot TMO SIM
Bug: 62532802
Change-Id: I56bb03a58447c5c46758e692ff357d540ea4cd7b
packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/CaptivePortalLoginActivity.java