OSDN Git Service

Enable cleartext for captive portal apps
authorAdam Newman <homebrew@google.com>
Fri, 16 Mar 2018 17:36:35 +0000 (10:36 -0700)
committerChalard Jean <jchalard@google.com>
Wed, 6 Jun 2018 08:21:41 +0000 (08:21 +0000)
commitc707509274bfb89cbdc9feea0f6acf63ab34b717
tree4b3646e6bef6b56c9afe4f99b57f375679636cbc
parent626a33cc6dd89e80899bdcd66b6180224b0c3166
Enable cleartext for captive portal apps

When a user attempts to visit a captive portal the Activity will attempt
to load http://connectivitycheck.gstatic.com/generate_204 and a
walled-garden will typically intercept this and respond with a 302
redirect to a sign-in flow.

The new default of disabling cleartext unless explicitly enabled breaks
captive portal operation. This change enables cleartext for the two
applications that contain a CaptivePortalLoginActivity.

Clean cherry-pick of ag/3750960

Bug: 75279991
Test: Manually associated with captive portals.
Exempt-From-Owner-Approval: Already approved by owner on pi-dev.
Change-Id: Ib9ea7a8a2aa72b8305fa7044df0e369a57d33953
Merged-In: Ie38d6ce6f54336db2f4672746dc7385e0a7979fb
Merged-In: I742bf6be74a9e6953d0a779bdab0c25cf32aa740
packages/CaptivePortalLogin/AndroidManifest.xml
packages/CarrierDefaultApp/AndroidManifest.xml