Skip to content

Verify Android 17 ACCESS_LOCAL_NETWORK requirement for Wi-Fi scanning #228

Description

@adsamcik

Context

The app targets API 37 (Android 17). Android 17 introduces a new runtime permission ACCESS_LOCAL_NETWORK (in the NEARBY_DEVICES group) required for apps that communicate with / discover devices on the local network.

Task

Verify whether the Wi-Fi scanning path (WifiDataProducerWifiManager.startScan() / getScanResults()) triggers the ACCESS_LOCAL_NETWORK requirement when targeting API 37, and if so:

  • declare <uses-permission android:name="android.permission.ACCESS_LOCAL_NETWORK" />, and
  • request it at runtime (or adopt a system-mediated device picker to skip the prompt).

Acceptance

  • Confirmed behavior on an Android 17 image: Wi-Fi scan results still returned, or permission added and requested with rationale.
  • No regression to the existing NEARBY_WIFI_DEVICES (API 33+) handling.

References

Reference: report section P1/§5 (API 37); https://developer.android.com/about/versions/17/behavior-changes-17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions