Skip to content
Discussion options

You must be logged in to vote

Guideline. Android 17 behavior changes for apps targeting API 37 (developer.android.com/about/versions/17/behavior-changes-17) (Google Play)

Severity in the playbook. high

What triggers it. From Android 17 enforcement is mandatory for apps targeting API 37 or later. mDNS, NSD discovery, multicast, and direct LAN connections fail with a security exception unless the app declares and requests ACCESS_LOCAL_NETWORK.

What to search your code for. NsdManager, MulticastSocket, _tcp.local, mDNS, 192.168.

How to fix it. Declare android.permission.ACCESS_LOCAL_NETWORK, request it at runtime before any LAN discovery or connection, and degrade gracefully when denied.

The guard reports this as ANDROID…

Replies: 1 comment

Comment options

mjmirza
Nov 6, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by mjmirza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant