Problem with flow and/or with brain

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Scott
Posts: 24
Joined: 12 Dec 2015 00:09

Problem with flow and/or with brain

Post by Scott » 09 Oct 2016 20:11

I'm simply trying to create a flow that locks the phone if a semaphore (i.e. a certain file) exists. But the flow locks the phone every time.

I'm sure it's something simple and stupid. Could someone please tell me what is wrong with this flow... or how to periodically check for a file's existence and lock the device immediately if the file exists?
Attachments
flow_Lock_if_sensitive_files_decrypted.xml
(4.09 KiB) Downloaded 767 times
Samsung Galaxy S9+ (unrooted and cannot/will not root), Android 9.0
Latest stable Automagic version, always

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Problem with flow and/or with brain

Post by MURTUMA » 09 Oct 2016 20:57

http://automagic4android.com/flow.php?i ... 4e44840fa9

Trigger File observer should do if configured properly. I checked the options which might be of interest to you. You'll probably need only one of them. Which one, depends on if the file is deleted when not needed or if it's present all the time. Also, I set one action and condition aside as you shouldn't need them.

Post Reply