Skip to content

Add support for Android 17 Local Network Protections #184859

Description

@jmagman

Starting in Android 17, local network access is blocked by default and apps targeting SDK 37+ must request the ACCESS_LOCAL_NETWORK runtime permission.

  1. Allow dart sockets to access and respect permission. Android 17 local area permission breaks dart:io sockets dart-lang/sdk#63272
  2. Update the multicast_dns package documentation to note the new permission requirement for SDK 37 and up.
  3. Add website documentation for how to declare the permission in AndroidManifest.xml and request it at runtime
    Testing shows this new behavior didn't impact the tool -> app communication.

https://developer.android.com/privacy-and-security/local-network-permission#android-17-enforcement

Metadata

Metadata

Assignees

Labels

Bot is counting down the days until it unassigns the issueP1High-priority issues at the top of the work listp: multicast_dnsThe mdns packagepackageflutter/packages repository. See also p: labels.team-androidOwned by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions