PRIVACY ALERT — LOCATION, MOTION & NEARBY WI-FI • XPAND PRIVACY JOURNAL: Most Android users assume that turning GPS off or tapping “Don’t allow Location” keeps their home, office, and daily movements secret. It does not—unless you also watch NEARBY_WIFI_DEVICES and Android’s hidden Wi-Fi scanning setting. Even without GPS satellites, nearby Wi-Fi router IDs (BSSIDs), signal strengths, and IEEE 802.11mc Wi-Fi RTT signals can place you inside a specific building or room.
Every router in your home, apartment building, coffee shop, hospital, and workplace broadcasts a unique hardware identifier called a BSSID (basically the router’s MAC address) along with its network name (SSID). When an app scans nearby Wi-Fi signals—even if you never connect to those networks—it sees a radio fingerprint of the exact room or street block you are standing in.
Before Android 13, Android forced any app that wanted Wi-Fi Direct, Wi-Fi Aware, or Wi-Fi ranging to request ACCESS_FINE_LOCATION (exact GPS-level location). In Android 13 (API level 33), Google split off NEARBY_WIFI_DEVICES inside the Nearby devices runtime group. That change helps privacy only if a developer sets a strict flag promising never to infer location—and only if you lock down background Wi-Fi scanning yourself.
Permission GroupNEARBY_DEVICES (Android 13+)
Severity Rating
Medium — Indoor & Proximity Risk
Key Privacy FlagusesPermissionFlags="neverForLocation"
1. What Is NEARBY_WIFI_DEVICES and Why Does It Exist?
In simple English, NEARBY_WIFI_DEVICES is the Android 13+ runtime permission that lets an app discover, measure distance to, and connect with nearby Wi-Fi hardware—such as printers, smart TVs, Chromecast-style cast targets, cameras, drones, or another phone via Wi-Fi Direct—without asking for full ACCESS_FINE_LOCATION when location isn’t needed.
Plain-English Purpose: On Android 12 and lower, a wireless printer setup app or local file-sharing app had to pop up an alarming “Allow this app to access this device’s location?” prompt just to find a printer on Wi-Fi Direct. On Android 13+, the user sees a “Nearby devices” prompt instead—provided the developer targets API 33+ and explicitly declares android:usesPermissionFlags="neverForLocation".

neverForLocation.Here is the trap most users miss: “Nearby devices” sounds harmless—like connecting earbuds or casting a photo. Yet under the hood, NEARBY_WIFI_DEVICES touches multiple Wi-Fi subsystems, including Wi-Fi Direct (WifiP2pManager), Wi-Fi Aware (WifiAwareManager), LocalOnlyHotspot, and Wi-Fi RTT (WifiRttManager, IEEE 802.11mc two-way ranging).
2. How Android 12 vs. Android 13+ Split Wi-Fi and Location
Android’s official behavior-change documentation explains why this split exists and where the protection line actually lies. If an app does not derive physical location from Wi-Fi, it declares NEARBY_WIFI_DEVICES with android:usesPermissionFlags="neverForLocation" and caps ACCESS_FINE_LOCATION at maxSdkVersion="32". If an app does use Wi-Fi scans or Wi-Fi RTT to figure out where you are standing, Android still demands ACCESS_FINE_LOCATION.
| Android Capability / API | Android 12 (API 32) Requirement | Android 13+ With neverForLocation | Location Derivation Risk |
|---|---|---|---|
Wi-Fi Direct (WifiP2pManager P2P discovery & group creation) | ACCESS_FINE_LOCATION | NEARBY_WIFI_DEVICES only | Low-Medium (peer device names & local presence) |
Wi-Fi Aware / NAN (WifiAwareManager direct peer sessions) | ACCESS_FINE_LOCATION | NEARBY_WIFI_DEVICES only (unless ranging used for location) | Medium (peer proximity & session correlation) |
| Local-Only Hotspot & SoftAP (direct camera/drone link) | ACCESS_FINE_LOCATION | NEARBY_WIFI_DEVICES only | Low (short-range local device link) |
Wi-Fi RTT (WifiRttManager — IEEE 802.11mc distance ranging) | ACCESS_FINE_LOCATION | Needs ACCESS_FINE_LOCATION when flag omitted | High (meter-level indoor positioning inside buildings) |
BSSID + RSSI Scan Matching (WifiManager.getScanResults()) | ACCESS_FINE_LOCATION + ACCESS_WIFI_STATE | Still requires ACCESS_FINE_LOCATION | Critical (pinpoints home/office without GPS satellites) |

android:usesPermissionFlags="neverForLocation" changes what Android strips from Wi-Fi scan and ranging APIs.3. Why It Is Dangerous: Real-World Indoor & Social Graph Abuse
Do not fall for the excuse that “Wi-Fi isn’t GPS.” In dense cities, apartment blocks, malls, and offices, GPS signals weaken indoors—while Wi-Fi signals become more precise than GPS.

Four Real-World Risks Behind Wi-Fi & Nearby Device Access
- 1. GPS-Free Home & Workplace Identification: Even when an app cannot read GPS coordinates, knowing your home router’s BSSID or neighboring apartment SSIDs lets ad-tech brokers match a fixed hardware address against commercial Wi-Fi positioning databases—pinpointing your residence, clinic visits, or workplace.
- 2. Store-Aisle & Indoor Room-Level Tracking (IEEE 802.11mc RTT): Android’s official Wi-Fi RTT API measures round-trip time to compatible access points to estimate indoor distance down to ~1–2 meters. Retail analytics and venue SDKs use this to map which shelf, waiting room, or office floor you linger in.
- 3. Co-Location & Social Graph Inference: If two phones repeatedly appear near the same Wi-Fi Direct / Wi-Fi Aware peers or identical router fingerprints at 11 PM every night or at a political rally, trackers can infer roommates, romantic partners, coworkers, and real-world associates without touching your Contacts list.
- 4. Silent Background Wi-Fi Scanning Even When Wi-Fi Is “Off”: Android’s Location Services includes a separate toggle called Wi-Fi scanning. When enabled, your phone continues scanning surrounding access points in the background even after you toggle Wi-Fi off in Quick Settings—draining battery and feeding fresh environmental data to permitted apps.

4. Red Flags vs. Legitimate Uses: When to Tap “Don’t Allow”
Use this quick decision table every time an app asks for Nearby devices or Wi-Fi discovery. Never assume a game, wallpaper pack, flashlight, or PDF scanner needs to scan Wi-Fi radios around your house.
| App Category | Needs NEARBY_WIFI_DEVICES? | Verdict | Why / Privacy Rule |
|---|---|---|---|
| Smart TV Cast / Wireless Printer / Camera Companion | Yes (During setup/transfer) | Allow While Needed | Required for Wi-Fi Direct / LocalOnlyHotspot device pairing; revoke afterward if rarely used. |
| Offline Peer-to-Peer File Transfer Tool | Yes (When sending files) | Allow | Used strictly for local high-speed direct transfer without internet upload. |
| Games, Wallpapers, Calculators, Flashlights | No | Always Deny | Zero legitimate reason to scan nearby Wi-Fi radios or peer hardware. |
| Shopping, Coupon & Social Media Apps | Almost Never | Deny | Often paired with retail analytics and indoor location SDKs to profile store visits. |
| Battery & Hardware Diagnostic Utilities (like AmpereFlow) | No | Zero Wi-Fi Scans Needed | Real battery voltage, current, and temperature come from local system sensors—not nearby routers. |
5. The Safe Way: How to Lock Down Wi-Fi & Nearby Discovery on Android
Don’t rely on app store promises or long privacy policies. Take five minutes right now to close both the app-level gate and the hidden OS-level Wi-Fi scanner:
- Audit “Nearby devices” in Permission Manager: Open
Settings > Security & privacy > Privacy > Permission manager > Nearby devices. Note that on Android 13+, this single screen groups both Bluetooth andNEARBY_WIFI_DEVICES. Tap every shopping, social, game, or utility app that does not physically pair with a nearby gadget and select Don’t allow. - Turn OFF Hidden Background “Wi-Fi scanning”: Go to
Settings > Location > Location services > Wi-Fi scanningand toggle it OFF (turn off Bluetooth scanning right next to it too). This stops Android from silently probing routers in the background when your Wi-Fi toggle is switched off. - Keep Randomized MAC Enabled on Every Wi-Fi Network: Open your connected network’s gear icon >
Privacyand confirm Use randomized MAC is selected (never Use device MAC on public cafe, hotel, airport, or mall Wi-Fi). - Revoke Wi-Fi Permission After Smart Device Setup: Once you finish pairing a smart bulb, dashcam, or printer over Wi-Fi Direct/LocalOnlyHotspot, revoke Nearby devices until the next time you reconfigure hardware.
- Choose Offline-First Tools That Never Touch Radio Scans: Just as VEYRO and AmpereFlow run device diagnostics and daily utilities locally without advertising trackers or nearby-radio harvesting, prefer apps that do not demand
NEARBY_WIFI_DEVICESunless physical device pairing is their core job.

6. Frequently Asked Questions
Does denying NEARBY_WIFI_DEVICES break my normal Wi-Fi internet connection?
No. Your phone’s normal Wi-Fi internet connection is managed by Android itself, not by individual third-party apps. Denying NEARBY_WIFI_DEVICES only stops that specific app from scanning or connecting to nearby Wi-Fi Direct, Wi-Fi Aware, or Wi-Fi RTT peers—Chrome, YouTube, and messaging keep working normally on Wi-Fi.
If an app targets Android 13+, does Nearby Devices hide my exact home location completely?
Only if the developer sets neverForLocation AND does not also hold ACCESS_FINE_LOCATION. As Android’s official docs explain, apps that want Wi-Fi RTT ranging or full scan-based positioning without neverForLocation still require ACCESS_FINE_LOCATION—and if you already granted Fine Location, the app doesn’t need Wi-Fi tricks to locate you anyway. Always audit both Location and Nearby devices together.
Why does disabling “Wi-Fi scanning” save battery as well as privacy?
When Wi-Fi scanning stays ON in Location Services, your radio chipset keeps waking up to listen for access points even when you manually toggle Wi-Fi OFF. Switching it off eliminates unnecessary background wakeups and reduces passive radio fingerprinting at the same time.
7. Verified Official Documentation & Security Research References
- Android Developers — Behavior Changes: Android 13 (API 33): Official specification introducing
NEARBY_WIFI_DEVICESin theNEARBY_DEVICESgroup,usesPermissionFlags="neverForLocation", andmaxSdkVersion="32"rules — developer.android.com/about/versions/13/behavior-changes-13 - Android Developers — Wi-Fi Direct (Peer-to-Peer) Overview: Permission requirements linking P2P discovery APIs to
NEARBY_WIFI_DEVICES(API 33+) andACCESS_FINE_LOCATION(API 32 and lower) — developer.android.com/develop/connectivity/wifi/wifip2p - Android Developers — Wi-Fi RTT (IEEE 802.11mc) Indoor Location: Official documentation showing two-way ranging accuracy (~1–2 meters) and runtime location/nearby-device requirements — developer.android.com/develop/connectivity/wifi/wifi-rtt
- NDSS Symposium Workshop Paper (2025) — Wi-Fi Probe Requests & Device Privacy Study: Peer-reviewed analysis of wireless probe behavior, randomization limits, and device identification risks — ndss-symposium.org/wp-content/uploads/impact2025-80.pdf
- arXiv Research Paper (2025) — IEEE 802.11mc Fine Timing Measurement & Indoor Privacy: Security evaluation of fine-timing indoor positioning and localization inference over Wi-Fi — arxiv.org/html/2509.03901v1
Xpand Privacy Journal — Recommended Reading & Related Guides
← Previous Guide: ACTIVITY_RECOGNITION — Physical Activity, Steps & Behavioral Profiling
→ Next Guide: CAMERA — Silent Visual Spying, Photo EXIF Metadata & Lens Lockdown
Related Location & Wireless Guides: Fine vs. Coarse GPS · Background Location · Bluetooth Nearby Devices
Explore Xpand Apps: Xpand Privacy Journal · Android Security Archive · VEYRO Offline Monitor
