how does automagic work when phone is locked

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

how does automagic work when phone is locked

Post by tsolignani » 17 Aug 2019 20:10

Let's say I make a time triggered flow.

What happens wether the trigger arises when the phone is locked?

F.i., a flow to send an SMS later at a certain time.

Thank you.

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

Re: how does automagic work when phone is locked

Post by Desmanto » 18 Aug 2019 09:04

If the action is not blocked by any special API (android) or doesn't require the screen to be on, it should be running fine. I have time trigger flow all day and all execute just fine. The action range from speech output, restart router, backup files, find location and calculate distance and many others.

Send SMS should be working fine, but it can be blocked in some ROM. Make a simple try and error and see if the SMS is sent or not. For some other action that require screen on (all control UI related flow), example send Whatsapp, then you have to turn on the screen first, unlock, do all the stuff and then screen off again.
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
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: how does automagic work when phone is locked

Post by tsolignani » 21 Aug 2019 06:43

Thank you.

I need to unlock then, many flows regards updating WhatsApp statuses.

I wonder how do I unlock.

I have a not rooted note 9.

And I cannot find any action to unlock in Automagic.

Thank you.

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

Re: how does automagic work when phone is locked

Post by Desmanto » 21 Aug 2019 17:33

You have to grant Automagic device admin permission first. This makes you can't uninstall Automagic as usual uninstall, have to disable the device admin again first if you plan to uninstall.

Then you can use action Set Keyguard state : viewtopic.php?f=5&t=6856
Set it to off, then action turn on screen, do the Control UI stuff, set keyguard state on again, use Control UI lockScreen() to turn off the screen after finish. This ensure you can still unlock the device using fingerprint the next time you need to use your phone.
At times, you might need to use Action Dismiss Slide to Unlock Keyguard.
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
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: how does automagic work when phone is locked

Post by tsolignani » 24 Aug 2019 08:38

Thank you. I'll try and see if I understand how to make it work.

Post Reply