octo4a
octo4a copied to clipboard
Usb Request Permission not saving after reboot
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”.
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...
Hello. I'm having the same problem on Android 4.4.2 (old TV Box). Any workarounds? Thanks!
Can someone check this out, maybe for the next release please?
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