java.lang.SecurityException: User has not given permission to device UsbDevice[mName=/dev/bus/usb/002/002,mVendorId=9025,mProductId=67,mClass=2,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.hardware.usb.UsbInterface;@41b1a0b0]

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

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via GitHub by mik3y
, 1 year ago
User has not given permission to device UsbDevice[mName=/dev/bus/usb/002/002,mVendorId=9025,mProductId=67,mClass=2,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.hardware.usb.UsbInterface;@41b1a0b0]
via Stack Overflow by Britto
, 1 year ago
User has not given permission to device UsbDevice[mName=/dev/bus/usb/001/004,mVendorId=1254,mProductId=20758,mClass=0,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.hardware.usb.UsbInterface;@41679100]
via Stack Overflow by gaurav tiwari
, 1 month ago
getAllCellInfo: Neither user 10122 nor current process has android.permission.ACCESS_COARSE_LOCATION.
via GitHub by saiimons
, 2 years ago
Need BLUETOOTH_PRIVILEGED permission: Neither user 10119 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
via GitHub by iverasp
, 1 year ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
via GitHub by contrudar
, 1 year ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
java.lang.SecurityException: User has not given permission to device UsbDevice[mName=/dev/bus/usb/002/002,mVendorId=9025,mProductId=67,mClass=2,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.hardware.usb.UsbInterface;@41b1a0b0]
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.hardware.usb.IUsbManager$Stub$Proxy.openDevice(IUsbManager.java:366)
at com.hoho.android.usbserial.driver.UsbSerialProber$2.getDevice(UsbSerialProber.java:64)
at com.hoho.android.usbserial.driver.UsbSerialProber.acquire(UsbSerialProber.java:115)
at com.hoho.android.usbserial.driver.UsbSerialProber.acquire(UsbSerialProber.java:95)
at org.kegbot.core.KegboardManager.acquireSerialDevice(KegboardManager.java:255)
at org.kegbot.core.KegboardManager.runInBackground(KegboardManager.java:212)
at org.kegbot.core.BackgroundManager$1.run(BackgroundManager.java:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
2 times, 1 day ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
Samebug visitor profile picture
Unknown user
Once, 2 days ago

Write tip

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