qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

QGroundcontrol trying to open after unlocking device every time

Open Johnex opened this issue 3 years ago • 1 comments

I have a Mi Pad 5 running Android 11 and QGroundcontrol v4.2.3 64bit. Every time i unlock the device, i get a popup asking to control the device, like so:

photo_2022-06-30_16-24-19

If i accept QGroundcontrol opens. If i allow always, QGroundcontrol will open every time i unlock the device, no matter if it was not started or in the background.

I haven't found a way to disable this.

Johnex avatar Jun 30 '22 14:06 Johnex

@DonLakeFlyer Any idea what this could be?

Johnex avatar Jul 02 '22 09:07 Johnex

Any comment on this from the top developers? @DonLakeFlyer @LorenzMeier @dogmaphobic @patrickelectric

Johnex avatar Oct 16 '22 21:10 Johnex

QGC thinks there is SiK Radio or something like that connected via USB.

DonLakeFlyer avatar Oct 17 '22 17:10 DonLakeFlyer

@DonLakeFlyer What would be the fix? I haven't found any setting to disable automounting, and the popup as you saw has no way to deny. Other such popups usually have a deny always / allow always option.

Johnex avatar Oct 17 '22 21:10 Johnex

No way to fix it with a setting. It's some sort of problem with respect to what QGC registers for on the USB port.

DonLakeFlyer avatar Oct 17 '22 21:10 DonLakeFlyer

At the moment i am using Mission Planner. I had to uninstall QGC cos as you might understand it was just too unbearable to have to close that popup every time i unlocked the tablet. Mission Planner doesn't have the issue, but it is not able to detect my specific receiver so it has it's own issues. It's a shame cos i really like QGC :(

Johnex avatar Oct 17 '22 21:10 Johnex

Can't you just disable auto start on your android in the app settings ?

On Mon, Oct 17, 2022, 18:41 John Norrbin @.***> wrote:

At the moment i am using Mission Planner. I had to uninstall QGC cos as you might understand it was just too unbearable to have to close that popup every time i unlocked the tablet. I have been using Mission Planner and that doesn't have the issue, but it is not able to detect my specific receiver so it has it's own issues. It's a shame cos i really like QGC :(

— Reply to this email directly, view it on GitHub https://github.com/mavlink/qgroundcontrol/issues/10332#issuecomment-1281531053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJIYCPCKCJ4QMAR455RHC3WDXBXVANCNFSM52JSJE6Q . You are receiving this because you were mentioned.Message ID: @.***>

patrickelectric avatar Oct 17 '22 22:10 patrickelectric

In MIUI apps as default are not allowed to auto start:

image

So that is why this bug is so strange for me. Something registered by QGC in android is letting it display that popup. As @DonLakeFlyer said, it might be related to how QGC handles USB, but that is also strange. Why does it detect on unlock. There is no app permission that is related to this at all.

Johnex avatar Oct 17 '22 22:10 Johnex

QGC registers in the android app manifest to start when someone plugs in a usb connection to a sik radio. That is not working exactly right which is causing it to pop up when it shouldn't.

DonLakeFlyer avatar Oct 17 '22 23:10 DonLakeFlyer

Let me know if you have a fix and you need testing, or if you need any more information 👍

Johnex avatar Oct 18 '22 12:10 Johnex

I'm having the same issue with qgc

device: mi pad 5 pro

TMAstrider avatar Nov 15 '22 12:11 TMAstrider