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

Usb Request Permission not saving after reboot #424

Open
Nemchenkan opened this issue Jun 9, 2023 · 3 comments
Open

Usb Request Permission not saving after reboot #424

Nemchenkan opened this issue Jun 9, 2023 · 3 comments

Comments

@Nemchenkan
Copy link

Nemchenkan commented Jun 9, 2023

Hi @feelfreelinux!



I have used octo4a on my aarch64 device driven by Android 9. All works fine, except 1 little issue… When I connecting my CH34x board to android using OTG, usb permission popup displaying with “Always open OctoPrint for Serial-xxx”.

Screenshot 2023-06-09 at 15 19 23

If I enable access and enable checkbox, this popup NOT displaying again how many times I have reconnecting device… But on each reboot, this popup displaying again.

 I have found some solution that can help to solve issue with reseting RequestPermission for UsbManager after device reboot:

usbmanager requestpermission workaround

For apply fix, author added in Manifest Editor one attribute:
SetActivityAttribute(main, android:directBootAware, "true")

I have no any experience with creating Android apps, and I can’t check it by update manifest and rebuild this project locally… 
I even installed Android Studio and try to compile project, but compiled apk crashes on my android device after installation.

 :(

After some investigating, I have found this project:
brltty

And there directBootAware atribute used in service and activity sections for target service…



So, may I ask you to check this or build a app and send me to verifying? This is not critical issue, but I am switching off printer with my android device, and enabling this feature manually little annoying...

@JMVS
Copy link

JMVS commented Sep 27, 2023

Hello. I'm having the same problem on Android 4.4.2 (old TV Box). Any workarounds? Thanks!

@kekkodance
Copy link

Can someone check this out, maybe for the next release please?

@feelfreelinux
Copy link
Owner

Can someone check this out, maybe for the next release please?

Thanks a lot for the reminder, will try to add it to the upcoming release :) Planning to ship it today

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

No branches or pull requests

4 participants