flutter / flutter/flutter

Add support for Android 17 Local Network Protections

Open
#184,859 4 comments 0 reactions 1 assignee Claimed by @mboetger View on GitHub
p: multicast_dns P1 package team-android
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

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. https://github.com/dart-lang/sdk/issues/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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.