Android™ Permissions for Bluetooth Low Energy (BLE)

To use Bluetooth® features in an Android™ application, the BLUETOOTH permission should be declared in the app manifest, AndroidManifest.xml, of the Android app project. This permission is needed for any Bluetooth communication, such as requesting or accepting a connection and transferring data.

<uses-permission android:name="android.permission.BLUETOOTH"/>

To initiate device discovery or manipulate Bluetooth settings, BLUETOOTH_ADMIN permission should also be declared in the app manifest. If the BLUETOOTH_ADMIN permission is declared, then the BLUETOOTH permission should also be declared.

<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>

The next declaration is to ensure that the app is available to Bluetooth Low Energy (BLE) capable devices only.

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

AndroidManifest.xml included with the MCHP Transparent UART Android app is an example of the app manifest. The Android permissions for BLE enabled in the AndroidManifest.xml are highlighted in the screenshot below.

permissions.png
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.