octo4a icon indicating copy to clipboard operation
octo4a copied to clipboard

Usb Request Permission not saving after reboot

Open Nemchenkan opened this issue 1 year ago • 3 comments

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...

Nemchenkan avatar Jun 09 '23 12:06 Nemchenkan

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

JMVS avatar Sep 27 '23 22:09 JMVS

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

kekkodance avatar May 17 '24 15:05 kekkodance

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

feelfreelinux avatar May 17 '24 15:05 feelfreelinux