java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10396 nor current process has android.permission.BLUETOOTH.

Stack Overflow | Kyaw Min Thu L | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.SecurityException: Need BLUETOOTH permission error in Android project

    Stack Overflow | 7 months ago | Kyaw Min Thu L
    java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10396 nor current process has android.permission.BLUETOOTH.
  2. 0

    BLUETOOTH permission is listed as optional in docs but seems to be required

    GitHub | 3 weeks ago | agramian
    java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10348 nor current process has android.permission.BLUETOOTH.

  1. filpgame 199 times, last 5 days ago
  2. dontdropmybass 2 times, last 6 months ago
  3. FreeZy 1 times, last 7 months ago
  4. Ranjana Dangol 2 times, last 8 months ago
  5. ivotje50 6 times, last 5 months ago
3 more registered users

Root Cause Analysis

  1. java.lang.SecurityException

    Need BLUETOOTH permission: Neither user 10396 nor current process has android.permission.BLUETOOTH.

    at android.os.Parcel.readException()
  2. Android Platform
    BluetoothAdapter.getDefaultAdapter
    1. android.os.Parcel.readException(Parcel.java:1620)
    2. android.os.Parcel.readException(Parcel.java:1573)
    3. android.bluetooth.IBluetoothManager$Stub$Proxy.registerStateChangeCallback(IBluetoothManager.java:342)
    4. android.bluetooth.BluetoothAdapter.<init>(BluetoothAdapter.java:594)
    5. android.bluetooth.BluetoothAdapter.getDefaultAdapter(BluetoothAdapter.java:576)
    5 frames
  3. ru.mail.android
    AbstractAsyncCommand.run
    1. ru.mail.android.mytracker.providers.NetworkInfoDataProvider.collectData(SourceFile:90)
    2. ru.mail.android.mytracker.providers.FingerprintDataProvider.collectData(SourceFile:92)
    3. ru.mail.android.mytracker.async.commands.AbstractHttpCommand.execute(SourceFile:67)
    4. ru.mail.android.mytracker.async.commands.TrackMajorEventsCommand.execute(SourceFile:117)
    5. ru.mail.android.mytracker.async.commands.AbstractAsyncCommand.run(SourceFile:58)
    5 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    7. java.lang.Thread.run(Thread.java:818)
    7 frames