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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Joni, 1 year ago
Need BLUETOOTH permission: Neither user 1002 nor current process has android.permission.BLUETOOTH.
via JIRA by Joni, 1 year ago
Need BLUETOOTH permission: Neither user 1002 nor current process has android.permission.BLUETOOTH.
via wordpress.com by Unknown author, 1 year ago
ConnectivityService: Neither user 10092 nor current process has android.permission.ACCESS_NETWORK_STATE.
via Stack Overflow by knight37x
, 1 year ago
Need BLUETOOTH_ADMIN permission: Neither user 1002 nor current process has android.permission.BLUETOOTH_ADMIN.
via Stack Overflow by Rangtian
, 9 months ago
getDeviceId: Neither user 10071 nor current process has android.permission.READ_PHONE_STATE.
via Stack Overflow by Josh J
, 6 months ago
No permission to write to /storage/emulated/0/Pictures/file.png: Neither user 10076 nor current process has android.permission.WRITE_EXTERNAL_STORAGE.
java.lang.SecurityException: Need BLUETOOTH permission: Neither user 1002 nor current process has android.permission.BLUETOOTH.
at android.app.ContextImpl.enforce(ContextImpl.java:1450)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1482)
at com.android.bluetooth.btservice.AdapterService.getRemoteName(AdapterService.java:1962)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getRemoteName(AdapterService.java:1050)
at android.bluetooth.BluetoothDevice.getName(BluetoothDevice.java:726)
at com.android.bluetooth.avrcp.Avrcp$AvrcpMessageHandler.handleMessage(Avrcp.java:1034)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

4618 times, 2 months ago
3358 times, 3 months ago
Once, 4 months ago
511 times, 6 months ago
10 times, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.