show app over lockscreen

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
beelze
Posts: 46
Joined: 04 Nov 2018 16:45

show app over lockscreen

Post by beelze » 22 Nov 2018 00:55

I'm using GMD Gestures to perform various actions, activated by gestures. In particular, I can draw a gesture (even on a lock screen) and dial a number (without unlocking).
I can use any app in a same way, but it activated under lockscreen and (after gesture) I need to unlock device to use this app.

My question: is there any way (using AM) to start activity (or perform UI action) to activate app over lockscreen (bypassing unlocking, the same way as dialer does)? It would be very convenient to be able to run navigation app in this manner.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: show app over lockscreen

Post by Desmanto » 22 Nov 2018 15:50

This is android security. Only some system app has the privellege to bypass the lock screen. To make sure your gesture work in lockscreen, you have to redirect it to automagic flow. So if you GMD gesture function only launch app X. Then now you have to set it to launch shortcut, automagic flow. In the flow, use launch app, app X. After the launch app, check if the screen is currently keyguard locked. If yes, you have to disable the keyguard (so the screen unlock) and directly enable it back afterward. viewtopic.php?f=4&t=1705

A bit hassle to launch an app, but it seems to be the only way to do it.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
beelze
Posts: 46
Joined: 04 Nov 2018 16:45

Re: show app over lockscreen

Post by beelze » 22 Nov 2018 16:59

Thanks for your answer.

GMD is fine to catch gestures on the lockscreen, and it can run AM shortcuts. Yes, I've thinked about unlock-launch-lock task, but it's very ugly workaround. Is there some way for rooted device to give app nesessary lockscreen-bypass privileges (temporary or even permanently)?

Post Reply