Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn on USB Permission issue #51

Open
mik3y opened this issue Jul 26, 2013 · 1 comment
Open

Warn on USB Permission issue #51

mik3y opened this issue Jul 26, 2013 · 1 comment

Comments

@mik3y
Copy link
Member

mik3y commented Jul 26, 2013

Deal with the following class of exception by showing an alert:

07-26 13:26:11.375 E/UsbManager( 5769): exception in UsbManager.openDevice
07-26 13:26:11.375 E/UsbManager( 5769): 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]
07-26 13:26:11.375 E/UsbManager( 5769):     at android.os.Parcel.readException(Parcel.java:1425)
07-26 13:26:11.375 E/UsbManager( 5769):     at android.os.Parcel.readException(Parcel.java:1379)
07-26 13:26:11.375 E/UsbManager( 5769):     at android.hardware.usb.IUsbManager$Stub$Proxy.openDevice(IUsbManager.java:366)
07-26 13:26:11.375 E/UsbManager( 5769):     at android.hardware.usb.UsbManager.openDevice(UsbManager.java:265)
07-26 13:26:11.375 E/UsbManager( 5769):     at com.hoho.android.usbserial.driver.UsbSerialProber$2.getDevice(UsbSerialProber.java:64)
07-26 13:26:11.375 E/UsbManager( 5769):     at com.hoho.android.usbserial.driver.UsbSerialProber.acquire(UsbSerialProber.java:115)
07-26 13:26:11.375 E/UsbManager( 5769):     at com.hoho.android.usbserial.driver.UsbSerialProber.acquire(UsbSerialProber.java:95)
07-26 13:26:11.375 E/UsbManager( 5769):     at org.kegbot.core.KegboardManager.acquireSerialDevice(KegboardManager.java:255)
07-26 13:26:11.375 E/UsbManager( 5769):     at org.kegbot.core.KegboardManager.runInBackground(KegboardManager.java:212)
07-26 13:26:11.375 E/UsbManager( 5769):     at org.kegbot.core.BackgroundManager$1.run(BackgroundManager.java:38)
07-26 13:26:11.375 E/UsbManager( 5769):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
07-26 13:26:11.375 E/UsbManager( 5769):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
07-26 13:26:11.375 E/UsbManager( 5769):     at java.lang.Thread.run(Thread.java:856)
@mik3y mik3y added this to the v1.0 milestone Mar 4, 2014
@patfreeman
Copy link
Collaborator

related: black picture for lack of camera perms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants