when is BLUETOOTH_ADMIN android permission required

11,054

Solution 1

Searching the codebase for BLUETOOTH_ADMIN reveals many places where it is documented.

Solution 2

public static final String BLUETOOTH_ADMIN 

Allows applications to discover and pair bluetooth devices

Constant Value: "android.permission.BLUETOOTH_ADMIN"

As you can see, everything that has to do with pairing and discovering of bluetooth devices

Share:
11,054
Coding man
Author by

Coding man

Decent knowledge of OOPS concepts, delegates, events, event handlers and multi-threading with overall 4 years of experience in the development of web-based applications using .NET framework, C#, Angular JS, ASP.NET, REST API, WCF, Windows Services and related technologies. I also have experience in requirement gathering, developing software products and unit testing. I am passionate about writing readable, clean and organised code keeping in mind the performance impact. I like what I am and keep improving myself slowly but consistently in both personal and professional life.

Updated on July 24, 2022

Comments

  • Coding man
    Coding man almost 2 years

    I read here http://developer.android.com/guide/topics/connectivity/bluetooth.html that :

    If you want your app to initiate device discovery or manipulate Bluetooth settings, you must also declare the BLUETOOTH_ADMIN permission

    What I think is that methods like

    cancelDiscovery()

    isDiscovering()

    startDiscovery()

    requires the BLUETOOTH_ADMIN permission.

    Are there any other methods that requires this permission?

  • IgorGanapolsky
    IgorGanapolsky almost 4 years
    Does this include BLE pairing?