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

    1. Check whether the user only picks one device; if so, use a device picker or NsdManager and remove ACCESS_LOCAL_NETWORK.
    2. Keep the permission only if the core feature needs the local network beyond one picked device.
    3. 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 app

    References

    Related checks (M6)