Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d816a2a8 authored by Adam Newman's avatar Adam Newman
Browse files

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
parent ddbb9d00
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />

    <application android:label="@string/app_name" >
    <application android:label="@string/app_name"
                 android:usesCleartextTraffic="true">
        <activity
            android:name="com.android.captiveportallogin.CaptivePortalLoginActivity"
            android:label="@string/action_bar_label"
+2 −1
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@

    <application
        android:label="@string/app_name"
        android:directBootAware="true">
        android:directBootAware="true"
        android:usesCleartextTraffic="true">
        <receiver android:name="com.android.carrierdefaultapp.CarrierDefaultBroadcastReceiver">
            <intent-filter>
                <action android:name="com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED" />