Android NEARBY_WIFI_DEVICES Permission Explained: How Nearby Wi-Fi Scans Reveal Your Indoor Location Without GPS

Dark smartphone emitting glowing crimson and cyan Wi-Fi signal rings connecting to indoor wireless routers over floorplan blueprint

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 Group
NEARBY_DEVICES (Android 13+)

Severity Rating
Medium — Indoor & Proximity Risk

Key Privacy Flag
usesPermissionFlags="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".

Comparison between Android 12 forced precise GPS location prompt and Android 13+ Nearby Wi-Fi Devices prompt with neverForLocation flag
Screenshot 1: Android 12 forced Wi-Fi setup apps to ask for full GPS-level location, whereas Android 13+ splits Wi-Fi device discovery into Nearby devices—when developers enforce 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 / APIAndroid 12 (API 32) RequirementAndroid 13+ With neverForLocationLocation Derivation Risk
Wi-Fi Direct (WifiP2pManager P2P discovery & group creation)ACCESS_FINE_LOCATIONNEARBY_WIFI_DEVICES onlyLow-Medium (peer device names & local presence)
Wi-Fi Aware / NAN (WifiAwareManager direct peer sessions)ACCESS_FINE_LOCATIONNEARBY_WIFI_DEVICES only (unless ranging used for location)Medium (peer proximity & session correlation)
Local-Only Hotspot & SoftAP (direct camera/drone link)ACCESS_FINE_LOCATIONNEARBY_WIFI_DEVICES onlyLow (short-range local device link)
Wi-Fi RTT (WifiRttManager — IEEE 802.11mc distance ranging)ACCESS_FINE_LOCATIONNeeds ACCESS_FINE_LOCATION when flag omittedHigh (meter-level indoor positioning inside buildings)
BSSID + RSSI Scan Matching (WifiManager.getScanResults())ACCESS_FINE_LOCATION + ACCESS_WIFI_STATEStill requires ACCESS_FINE_LOCATIONCritical (pinpoints home/office without GPS satellites)
Table 1: Android Wi-Fi APIs, OS version permission mapping, and indoor location exposure.
Privacy protection comparison chart showing Android 13 NEARBY_WIFI_DEVICES with neverForLocation flag vs omitting the flag
Graph 1: How 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.

Diagram showing how Wi-Fi BSSID MAC addresses, RSSI signal strength, and IEEE 802.11mc Wi-Fi RTT map your indoor home and office without GPS
Screenshot 2: Even inside concrete buildings where GPS fails, surrounding router BSSIDs and Wi-Fi RTT ranging identify exact rooms, apartments, and storefronts.

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.
Privacy risk bar comparison across IEEE 802.11mc Wi-Fi RTT, BSSID+RSSI scanning, Wi-Fi Aware NAN, and Wi-Fi Direct P2P
Graph 2: Relative privacy and location-inference exposure across the four major Android Wi-Fi discovery and ranging mechanisms.

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 CategoryNeeds NEARBY_WIFI_DEVICES?VerdictWhy / Privacy Rule
Smart TV Cast / Wireless Printer / Camera CompanionYes (During setup/transfer)Allow While NeededRequired for Wi-Fi Direct / LocalOnlyHotspot device pairing; revoke afterward if rarely used.
Offline Peer-to-Peer File Transfer ToolYes (When sending files)AllowUsed strictly for local high-speed direct transfer without internet upload.
Games, Wallpapers, Calculators, FlashlightsNoAlways DenyZero legitimate reason to scan nearby Wi-Fi radios or peer hardware.
Shopping, Coupon & Social Media AppsAlmost NeverDenyOften paired with retail analytics and indoor location SDKs to profile store visits.
Battery & Hardware Diagnostic Utilities (like AmpereFlow)NoZero Wi-Fi Scans NeededReal battery voltage, current, and temperature come from local system sensors—not nearby routers.
Table 2: Practical Allow vs. Deny guide for Android’s Nearby devices permission.

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:

  1. 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 and NEARBY_WIFI_DEVICES. Tap every shopping, social, game, or utility app that does not physically pair with a nearby gadget and select Don’t allow.
  2. Turn OFF Hidden Background “Wi-Fi scanning”: Go to Settings > Location > Location services > Wi-Fi scanning and 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.
  3. Keep Randomized MAC Enabled on Every Wi-Fi Network: Open your connected network’s gear icon > Privacy and confirm Use randomized MAC is selected (never Use device MAC on public cafe, hotel, airport, or mall Wi-Fi).
  4. 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.
  5. 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_DEVICES unless physical device pairing is their core job.
Android settings checklist showing Nearby devices permission audit, turning off Wi-Fi scanning under Location Services, and enabling Randomized MAC
Screenshot 3: Your 3-step Android lockdown—audit Nearby devices, switch off background Wi-Fi scanning in Location services, and verify Randomized MAC per network.

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