From d816a2a8ed1cfc32cff37618418e706104b9a264 Mon Sep 17 00:00:00 2001 From: Adam Newman Date: Fri, 16 Mar 2018 10:36:35 -0700 Subject: [PATCH] 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. Bug: 75279991 Test: Manually associated with captive portals. Change-Id: I081dfed067b3a78a81bfd3ec10afaf953b6baf3f --- packages/CaptivePortalLogin/AndroidManifest.xml | 3 ++- packages/CarrierDefaultApp/AndroidManifest.xml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/CaptivePortalLogin/AndroidManifest.xml b/packages/CaptivePortalLogin/AndroidManifest.xml index f21fd88cadf6d..69fbb99f1a724 100644 --- a/packages/CaptivePortalLogin/AndroidManifest.xml +++ b/packages/CaptivePortalLogin/AndroidManifest.xml @@ -23,7 +23,8 @@ - + + android:directBootAware="true" + android:usesCleartextTraffic="true">