# Android 12+ Bluetooth permissions for BLE apps, explained
URL: https://alexmitrovic.com/blog/android-12-bluetooth-permissions
Last updated: 2026-11-29

> Which Bluetooth permissions an Android BLE app needs per version: BLUETOOTH_SCAN, BLUETOOTH_CONNECT, neverForLocation and location, with a generator.

[Permissions & scanning](https://alexmitrovic.com/blog#permissions-scanning)

# Android 12+ Bluetooth permissions: BLUETOOTH_SCAN, CONNECT and location, done right

Which Bluetooth permissions an Android BLE app needs per version: BLUETOOTH_SCAN, BLUETOOTH_CONNECT, neverForLocation and location, with a generator.

By [Alex Mitrovic](https://alexmitrovic.com/about)Published 29 November 20263 min read

## On this page

1. [How did Bluetooth permissions change across Android versions?](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#history)
2. [What changed in Android 12?](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#android-12)
3. [Declaring both sets in one manifest](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#both)
4. [The mistakes I see most](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#mistakes)
5. [An alternative: CompanionDeviceManager](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#cdm)
6. [Generate the manifest for your app](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#generator)
7. [FAQ](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#faq)
8. [Sources](https://alexmitrovic.com/blog/android-12-bluetooth-permissions#sources)

**Stuck on this in a real app?** I fix it on real phones, usually within a week.

[Book a free call](https://alexmitrovic.com/contact)

Short answer

On Android 12 (API 31) and later, a BLE app requests BLUETOOTH_SCAN to scan and BLUETOOTH_CONNECT to connect; with android:usesPermissionFlags="neverForLocation" on BLUETOOTH_SCAN it needs no location permission. For Android 11 and earlier it still declares BLUETOOTH and BLUETOOTH_ADMIN with maxSdkVersion 30 and needs ACCESS_FINE_LOCATION to scan, so most apps declare both sets.

## Key takeaways

- Android 12+ uses the “Nearby devices” permissions: BLUETOOTH_SCAN, BLUETOOTH_CONNECT, BLUETOOTH_ADVERTISE.
- Add neverForLocation to BLUETOOTH_SCAN if you don't derive location; it removes the location prompt on Android 12+.
- For Android 11 and lower, keep BLUETOOTH, BLUETOOTH_ADMIN and ACCESS_FINE_LOCATION with maxSdkVersion="30".
- Many calls besides connectGatt need BLUETOOTH_CONNECT, including getName() and getBondedDevices().
- Explain the prompt before showing it: onboarding is where permission mistakes cost users.

Permissions are the first place a BLE app loses users and the first place it crashes after a `targetSdk` bump. The rules changed in Android 6, 10 and 12, and most apps support phones from before and after each change, so the manifest has to cover all of them. Here's the whole picture, with a generator at the end that writes it for your SDK range.

## How did Bluetooth permissions change across Android versions?

| Android | To scan | To connect | Notes
| 5–5.1 (API 21–22) | BLUETOOTH, BLUETOOTH_ADMIN | BLUETOOTH | Install-time only
| 6–9 (API 23–28) | + ACCESS_COARSE_LOCATION or FINE | BLUETOOTH | Location must be granted, and on many phones switched on, or scans return nothing
| 10–11 (API 29–30) | + ACCESS_FINE_LOCATION | BLUETOOTH | Background scanning also needs ACCESS_BACKGROUND_LOCATION
| 12+ (API 31+) | BLUETOOTH_SCAN | BLUETOOTH_CONNECT | Runtime “Nearby devices” permissions; location only if you derive it

## What changed in Android 12?

Android 12 split Bluetooth into three runtime permissions in the “Nearby devices” group:

- `BLUETOOTH_SCAN`: to discover devices.
- `BLUETOOTH_CONNECT`: to connect, and to call many `BluetoothDevice` and `BluetoothAdapter` methods such as `getName()`, `getBondedDevices()` and `createBond()`.
- `BLUETOOTH_ADVERTISE`: only if the phone advertises, acting as a peripheral.

The big win: scanning no longer has to mean location. If your app never uses scan results to work out where the user is, declare it:

AndroidManifest.xml

```
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
    android:usesPermissionFlags="neverForLocation"
    tools:targetApi="s" />
```

The trade-off is documented: with `neverForLocation`, Android filters some beacon advertisements out of your scan results. For a companion app that looks for its own device by service UUID or name, that's no problem. For a beacon or indoor-positioning app, you need location permission instead.

## Declaring both sets in one manifest

An app with `minSdk` below 31 runs on both worlds, so the manifest keeps the old permissions and caps them at API 30, so they're not requested on newer phones:

Typical BLE companion app, minSdk 26

```
<!-- Android 11 and lower -->
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30" />

<!-- Android 12 and higher -->
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
    android:usesPermissionFlags="neverForLocation" tools:targetApi="s" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
```

Then request the right set at runtime, depending on `Build.VERSION.SDK_INT`. Don't request location on Android 12+ “just in case”: users see the prompt and wonder why a thermostat app wants their location.

## The mistakes I see most

- **SecurityException on connect.** The app requests `BLUETOOTH_SCAN` but not `BLUETOOTH_CONNECT`, and crashes the first time it calls `connectGatt` or reads a device name.
- **Calling `getName()` in a list adapter.** It needs `BLUETOOTH_CONNECT` on 12+; use the name from the scan record instead.
- **Location switched off on Android 11 and lower.** The permission is granted, Location is off, and many phones return no scan results without an error. Check it and tell the user.
- **Asking for everything at once on first launch.** Ask at the moment the user starts adding a device, after a sentence that says why.
- **Background location on Android 12+.** Not needed for BLE if you use `neverForLocation`; asking for it triggers a much stricter Play review.
- **Treating a denial as final.** After a second denial Android stops showing the prompt. Detect that and send the user to the app's settings with a clear explanation.

## An alternative: CompanionDeviceManager

If your app pairs with one specific device, `CompanionDeviceManager` shows a system dialog that finds the device for you, without your app scanning and without location permission. Once associated, the app also gets exemptions for running in the background. You still need `BLUETOOTH_CONNECT` on Android 12+ to connect. It's a good fit for wearables and single-device companion apps, less so for apps that manage many devices at once.

## Generate the manifest for your app

Set your `minSdk`, `targetSdk` and what the app does:

Tool

Android BLE permissions generator

AndroidManifest.xml

```
```

Runtime request (Kotlin)

```
```

Add one real onboarding lesson, e.g. how much a permission explainer screen changed setup completion on a project you can talk about.

## FAQ

### Does BLE scanning need location permission on Android 12?

No, if you declare BLUETOOTH_SCAN with android:usesPermissionFlags="neverForLocation" and don't derive location from scan results. On Android 11 and earlier, scanning still needs ACCESS_FINE_LOCATION, so declare it with android:maxSdkVersion="30".

### Which Android 12 permission do I need to connect to a BLE device?

BLUETOOTH_CONNECT. It's a runtime permission, and it's also needed for getName(), getBondedDevices(), createBond() and other BluetoothDevice calls.

### Why does my BLE scan return no results on Android 10 or 11?

Usually because location permission isn't granted, or the Location setting is switched off: on many phones scans then return nothing without an error. Check both before scanning and explain to the user why they're needed.

### Do I need BLUETOOTH_ADVERTISE?

Only if the phone itself advertises, acting as a BLE peripheral. A normal companion app that scans for and connects to a device doesn't need it.

## Sources

- [Android Developers: Bluetooth permissions](https://developer.android.com/develop/connectivity/bluetooth/bt-permissions)
- [Android Developers: Find BLE devices](https://developer.android.com/develop/connectivity/bluetooth/ble/find-ble-devices)
- [Android Developers: Companion device pairing](https://developer.android.com/develop/connectivity/bluetooth/companion-device-pairing)
- [Android Developers: Request runtime permissions](https://developer.android.com/training/permissions/requesting)

**Written by Alex Mitrovic**, an Android and iOS developer who builds reliable apps for Bluetooth and IoT devices and tests every fix on real phones. If your app has this problem on phones you can't pin down, the [BLE reliability audit](https://alexmitrovic.com/services/ble-reliability-audit) finds out why in about a week. [About me](https://alexmitrovic.com/about) · [LinkedIn](https://www.linkedin.com/in/aleksmitro98/)

## Read next

[Tool### Android BLE permissions generatorGenerate the AndroidManifest Bluetooth permissions and runtime request code for your minSdk and targetSdk, including neverForLocation.](https://alexmitrovic.com/tools/android-ble-permissions)

[Article### BLE in the background on Android: scanning limits, Doze and foreground servicesWhy Android BLE scans and sync stop in the background: throttling, screen-off limits, Doze, vendor battery savers, and what to use instead.](https://alexmitrovic.com/blog/android-ble-background-scanning)

[Article### How to test a BLE app on real phones: the device matrix, HCI logs and field loggingHow I test Android and iOS BLE apps: choosing phones, HCI snoop logs in Wireshark, PacketLogger, nRF Connect and the scenarios that break apps.](https://alexmitrovic.com/blog/testing-ble-apps-on-real-phones)

## Seeing this in your own app?

Send me the phone models and what the logs say. On a short call I'll tell you where I'd look first.

[Book a free call](https://alexmitrovic.com/contact)

Free · NDA on request · reply within 1–2 working days
