medium · M6 · MASVS-PRIVACY-1 · PTKD-REVIEW-PLAY-LOCAL-NETWORK
Local network access on Android 17 needs a Play declaration
The app targets Android 17 (API 37) or later and requests ACCESS_LOCAL_NETWORK. Google Play's Local Network Permission policy allows it only when local network access is needed for the app's core feature and a device picker (such as NsdManager) is not enough, and from 25 August 2027 apps at this target must submit a Play Console declaration to use it.
How it is exploited
Not an attack: a remote-control app for one brand of TV requests local network access to find the TV. A device picker finds it without the permission; Play asks apps at Android 17 to justify the broad access in a declaration, and an update without one is rejected from August 2027.
Why it matters
A rejected update from 25 August 2027, and access to every device on the user's network where one was enough.
How to fix it
- Check whether the user only picks one device; if so, use a device picker or NsdManager and remove ACCESS_LOCAL_NETWORK.
- Keep the permission only if the core feature needs the local network beyond one picked device.
- Complete the Local Network declaration in Play Console and cover local network data in the privacy policy.
Does your app have this?
PTKD checks your build or your source project for PTKD-REVIEW-PLAY-LOCAL-NETWORK and every other check in this knowledge base.
Scan your appReferences
Related checks (M6)
- PII in a response over a cacheable/first-party channel
- Supabase view in the public schema exposes auth.users
- Ads start before the user's consent (text search)
- Device/user PII sent to a third party
- Google Play restricted or sensitive permission
- Privacy manifest has invalid keys or values
- Missing Apple privacy manifest (PrivacyInfo.xcprivacy)
- Required-reason API used without a declared reason