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 (WifiDataProducer → WifiManager.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
Context
The app targets API 37 (Android 17). Android 17 introduces a new runtime permission
ACCESS_LOCAL_NETWORK(in theNEARBY_DEVICESgroup) required for apps that communicate with / discover devices on the local network.Task
Verify whether the Wi-Fi scanning path (
WifiDataProducer→WifiManager.startScan()/getScanResults()) triggers theACCESS_LOCAL_NETWORKrequirement when targeting API 37, and if so:<uses-permission android:name="android.permission.ACCESS_LOCAL_NETWORK" />, andAcceptance
NEARBY_WIFI_DEVICES(API 33+) handling.References
Reference: report section P1/§5 (API 37); https://developer.android.com/about/versions/17/behavior-changes-17