Add support for Android 17 Local Network Protections
Open
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
Assessment
This issue has not been assessed yet.