Skip to content

Remove instances of usesCleartextTraffic #182553

Description

@mboetger

From https://developer.android.com/about/versions/17/behavior-changes-all#uses-clear-traffic-deprecation:

In a future release, we plan to deprecate the usesCleartextTraffic element. Apps that need to make unencrypted (HTTP) connections should migrate to using a network security configuration file, which lets you specify which domains your app needs to make cleartext connections to.

This is a tracking bug for deleting all references to usesCleartextTraffic in packages, samples, and documentation:

Packages:

git grep usesCleartextTraffic

  • packages/espresso/README.md:Add android:usesCleartextTraffic="true" in the <application> in the AndroidManifest.xml
  • packages/espresso/example/android/app/src/debug/AndroidManifest.xml:
  • packages/file_selector/file_selector_android/example/android/app/src/debug/AndroidManifest.xml:
  • packages/google_maps_flutter/google_maps_flutter/example/android/app/src/debug/AndroidManifest.xml:
  • packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/debug/AndroidManifest.xml:
  • packages/google_sign_in/google_sign_in/example/android/app/src/debug/AndroidManifest.xml:
  • packages/google_sign_in/google_sign_in_android/example/android/app/src/debug/AndroidManifest.xml:
  • packages/image_picker/image_picker/example/android/app/src/debug/AndroidManifest.xml:
  • packages/image_picker/image_picker_android/example/android/app/src/debug/AndroidManifest.xml:
  • packages/interactive_media_ads/example/android/app/src/debug/AndroidManifest.xml:
  • packages/quick_actions/quick_actions/example/android/app/src/debug/AndroidManifest.xml:
  • packages/quick_actions/quick_actions_android/example/android/app/src/debug/AndroidManifest.xml:
  • packages/video_player/video_player_android/example/android/app/src/debug/AndroidManifest.xml:
  • packages/webview_flutter/webview_flutter/example/android/app/src/debug/AndroidManifest.xml:
  • packages/webview_flutter/webview_flutter/example/android/app/src/main/AndroidManifest.xml: android:usesCleartextTraffic="true"
  • packages/webview_flutter/webview_flutter_android/example/android/app/src/debug/AndroidManifest.xml:
  • packages/webview_flutter/webview_flutter_android/example/android/app/src/main/AndroidManifest.xml: android:usesCleartextTraffic="true"

Samples

git grep usesCleartextTraffic

  • add_to_app/fullscreen/android_fullscreen/app/src/debug/AndroidManifest.xml:

Website

git grep usesCleartextTraffic

  • src/content/release/breaking-changes/network-policy-ios-android.md:

Metadata

Metadata

Assignees

Labels

team-androidOwned by Android platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions