USBManager USB list permission works till next device restart #66
Unanswered
anotherlab
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This was originally posted as an issue by @pinomanzini and it's more of a discussion item.
Hello everyone, I have a problem regarding the device's permissions to access the list of connected USBs.
The answer was posted by @widavies
The solution is to use intent filters and add the android:directBootAware="true" attribute on the associated activity so that the USB_DEVICE_ATTACHED event is correctly received after boot.
You can find example code by searching for directBootAware in public GitHub repos.
Beta Was this translation helpful? Give feedback.
All reactions