Exactly, but after a while it locks again, even if the fiber log doesn't show any further action, so it's like something external is happening: any ideas?
To unsubscribe from this group and all its topics, send an email to automate-use...@googlegroups.com.
To post to this group, send email to automa...@googlegroups.com.
Visit this group at http://groups.google.com/group/automate-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/025945e5-d9ab-42fe-93da-c678e2120a06%40googlegroups.com.
>>>> > To post to this group, send email to automa...@googlegroups.com.
>>>> > Visit this group at http://groups.google.com/group/automate-user.
>>>> > To view this discussion on the web visit
>>>> >
>>>> > https://groups.google.com/d/msgid/automate-user/04f429ab-1508-4d44-884a-de11c7c7965d%40googlegroups.com.
>>>> >
>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>>
>>>> --
>>>> Sergio Bossa
>>>> http://www.linkedin.com/in/sergiob
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Automate" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/automate-user/PELR0dtMY9Q/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> To post to this group, send email to automa...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/automate-user.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/automate-user/025945e5-d9ab-42fe-93da-c678e2120a06%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Automate" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/automate-user/PELR0dtMY9Q/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>>>> > automate-use...@googlegroups.com.
>>>> > To post to this group, send email to automa...@googlegroups.com.
>>>> > Visit this group at http://groups.google.com/group/automate-user.
>>>> > To view this discussion on the web visit
>>>> >
>>>> > https://groups.google.com/d/msgid/automate-user/04f429ab-1508-4d44-884a-de11c7c7965d%40googlegroups.com.
>>>> >
>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>>
>>>> --
>>>> Sergio Bossa
>>>> http://www.linkedin.com/in/sergiob
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Automate" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/automate-user/PELR0dtMY9Q/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> To post to this group, send email to automa...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/automate-user.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/automate-user/025945e5-d9ab-42fe-93da-c678e2120a06%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Automate" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/automate-user/PELR0dtMY9Q/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
I managed to overcome this by forking an "unlock" fiber which loops
over the "device unlocked" condition and keeps unlocking until it's
stopped by the main fiber asking to lock (all this based on a main
"wifi connected" condition).
On a related note, I noticed the "device lock" action doesn't actually
lock if another running fiber disabled the lock: is this expected?
Shouldn't "device lock" *force* the lock screen?
On Thu, Oct 9, 2014 at 11:57 PM, Automate developer
<henrik.l...@gmail.com> wrote:
> Thanks for reporting it's also an issue with Llama.
>
> If the Automate service is somehow killed off, in a low memory situation,
> the lock is lost. But Automate uses a "foreground" service, so it shouldn't.
>
>
> On Friday, October 10, 2014 12:29:40 AM UTC+2, Sergio Bossa wrote:
>>
>> I believe it is something weirder than that: it happens randomly (and
>> today didn't happen at all), and it also happens with the Llama app; maybe
>> something related to my phone, I'll see if I can give you better
>> information, thanks for now.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Automate" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/automate-user/PELR0dtMY9Q/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
I can guarantee the fibers counter never reached zero in my case, so
it must be something else that allowed the OS to kill it.
<Start flow>
-For each in BSSIDarray > start Fork "WiFi Connected"
<Start WiFi Connected Fork>
-When WiFi connected
-Start Fork "Lock Screen Disable" (Stop when parent fiber stops enabled)
--When WiFi disconnected
--Start Fork "WiFi Connected" (This fork block doesn't have an okay connection so it stops the previously running "WiFi Connected" AND "Lock Screen Disable" forks, this way it also copies the variables into the new fork)
<Start Lock Screen Disable Fork>
-Disable Lock Screen
-Is device unlocked? (No loops to disable lock screen, Yes goes to next step)
-When device unlocked (No loops to disable lock screen)
My flow is available on the community as "Wi-Fi? Disable Lock Screen" if you want to check it out for yourself.
I've tried it both ways, using when changed mode and both immediate and when changed. The current way I have it set up I've taken a screenshot of and attached to this post. The flow disables the lock screen when connected to a trusted WiFi AP. Rather than re-enabling the lock screen, I have the fiber set to stop when disconnected from wifi, and start a new fork that waits until reconnected to the WiFi AP then starts the disable lockscreen loop again. I attached that process to.
I can't quite debug your flow from the screenshots (which is actually
the most annoying aspect of Automate: flows are too hard to read and
understand), but according to your description it looks similar to
mine, which basically works as follows:
"main":
when wifi changed:
if connected:
stop "unlock"
enable screen lock
if disconnected:
fork "unlock"
goto "main"
"unlock":
"unlock loop":
when screen unlocked:
disable screen lock
goto "unlock loop"
The flow in your second screenshot seems flawed.
Why do you Fork just before the "Is screen on"? It seems redundant, and you'll lose the fiber with the screen lock.
Disable lock screen > Is device Unlocked (No) > Disable lock screen etc... etc...
2014-11-11 11:32:45.934 INFO 2747@1: Flow beginning
2014-11-11 11:32:45.942 INFO 2747@29: File exists?
2014-11-11 11:32:45.943 INFO 2747@41: Variable set
2014-11-11 11:32:45.944 INFO 2747@32: File read text
2014-11-11 11:32:45.951 INFO 2747@30: Variable set
2014-11-11 11:32:45.952 INFO 2747@34: Dialog choice?
2014-11-11 11:32:48.365 INFO 2747@35: Expression true?
2014-11-11 11:32:48.366 INFO 2747@36: Expression true?
2014-11-11 11:32:48.368 INFO 2747@51: Expression true?
2014-11-11 11:32:48.369 INFO 2747@197: Expression true?
2014-11-11 11:32:48.370 INFO 2747@16: For each
2014-11-11 11:32:48.371 INFO 2747@166: Variable set
2014-11-11 11:32:48.385 INFO 2747@167: Expression true?
2014-11-11 11:32:48.386 INFO 2747@139: Fork
2014-11-11 11:32:48.399 INFO 2747@16: For each
2014-11-11 11:32:48.400 INFO 2747@170: Delay
2014-11-11 11:32:48.410 INFO 2748@171: Wi-Fi connected?
2014-11-11 11:32:48.412 INFO 2748@188: Fork
2014-11-11 11:32:48.427 INFO 2748@172: Wi-Fi connected?
2014-11-11 11:32:48.435 INFO 2749@190: Screen lock set state
2014-11-11 11:32:48.437 INFO 2749@191: Device unlocked?
2014-11-11 11:32:48.438 INFO 2749@192: Device unlocked?
2014-11-11 11:33:56.198 INFO 2747@170: Resumed after service restart
2014-11-11 11:33:56.199 INFO 2747@170: Delay
2014-11-11 11:33:56.210 INFO 2748@172: Resumed after service restart
2014-11-11 11:33:56.215 INFO 2748@172: Wi-Fi connected?
2014-11-11 11:33:56.233 INFO 2749@192: Resumed after service restart
2014-11-11 11:33:56.234 INFO 2749@192: Device unlocked?
2014-11-11 11:34:03.264 INFO 2749@190: Screen lock set state
2014-11-11 11:34:03.285 INFO 2749@191: Device unlocked?
2014-11-11 11:34:03.297 INFO 2749@190: Screen lock set state
2014-11-11 11:34:03.301 INFO 2749@191: Device unlocked?
2014-11-11 11:34:03.310 INFO 2749@190: Screen lock set state
2014-11-11 11:34:03.311 INFO 2749@191: Device unlocked?
2014-11-11 11:34:03.312 INFO 2749@190: Screen lock set state
2014-11-11 11:34:03.314 INFO 2749@191: Device unlocked?
2014-11-11 11:34:03.315 INFO 2749@190: Screen lock set state
2014-11-11 11:34:03.316 INFO 2749@191: Device unlocked?
2014-11-11 11:34:03.318 INFO 2749@190: Screen lock set state
*Infinite Looping at this stage*
2014-11-11 11:29:57.614 INFO 2743@1: Flow beginning
2014-11-11 11:29:57.618 INFO 2743@29: File exists?
2014-11-11 11:29:57.619 INFO 2743@41: Variable set
2014-11-11 11:29:57.620 INFO 2743@32: File read text
2014-11-11 11:29:57.646 INFO 2743@30: Variable set
2014-11-11 11:29:57.647 INFO 2743@34: Dialog choice?
2014-11-11 11:29:59.464 INFO 2743@35: Expression true?
2014-11-11 11:29:59.466 INFO 2743@36: Expression true?
2014-11-11 11:29:59.468 INFO 2743@51: Expression true?
2014-11-11 11:29:59.469 INFO 2743@197: Expression true?
2014-11-11 11:29:59.470 INFO 2743@16: For each
2014-11-11 11:29:59.472 INFO 2743@166: Variable set
2014-11-11 11:29:59.474 INFO 2743@167: Expression true?
2014-11-11 11:29:59.475 INFO 2743@139: Fork
2014-11-11 11:29:59.509 INFO 2743@16: For each
2014-11-11 11:29:59.525 INFO 2743@170: Delay
2014-11-11 11:29:59.550 INFO 2744@171: Wi-Fi connected?
2014-11-11 11:29:59.554 INFO 2744@188: Fork
2014-11-11 11:29:59.582 INFO 2744@172: Wi-Fi connected?
2014-11-11 11:29:59.605 INFO 2745@190: Screen lock set state
2014-11-11 11:29:59.607 INFO 2745@191: Device unlocked?
2014-11-11 11:29:59.610 INFO 2745@192: Device unlocked?
2014-11-11 11:30:59.709 INFO 2743@170: Resumed after service restart
2014-11-11 11:30:59.710 INFO 2743@170: Delay
2014-11-11 11:30:59.719 INFO 2744@172: Resumed after service restart
2014-11-11 11:30:59.720 INFO 2744@172: Wi-Fi connected?
2014-11-11 11:30:59.740 INFO 2745@192: Resumed after service restart
2014-11-11 11:30:59.741 INFO 2745@192: Device unlocked?
2014-11-11 11:31:18.218 DBUG 2744@2744: NETWORK_STATE_CHANGED_ACTION: CONNECTING
2014-11-11 11:31:20.188 DBUG 2744@2744: NETWORK_STATE_CHANGED_ACTION: CONNECTING
2014-11-11 11:31:20.238 DBUG 2744@2744: NETWORK_STATE_CHANGED_ACTION: CONNECTING
2014-11-11 11:31:20.289 DBUG 2744@2744: NETWORK_STATE_CHANGED_ACTION: CONNECTED
2014-11-11 11:31:20.291 DBUG 2744@2744: SupplicantState: COMPLETED
2014-11-11 11:31:20.353 INFO 2744@188: Fork
2014-11-11 11:31:20.523 INFO 2744@172: Wi-Fi connected?
2014-11-11 11:31:20.540 INFO 2746@190: Screen lock set state
2014-11-11 11:31:20.541 INFO 2746@191: Device unlocked?
2014-11-11 11:31:20.543 INFO 2746@192: Device unlocked?
2014-11-11 11:32:43.232 INFO 2743@170: Stopped by user
2014-11-11 11:32:43.300 INFO 2744@172: Stopped by user
2014-11-11 11:32:43.338 INFO 2745@192: Stopped by parent
2014-11-11 11:32:43.349 INFO 2746@192: Stopped by parent
2014-11-11 11:32:43.361 INFO 2745@192: Stopped by user
2014-11-11 11:32:43.365 INFO 2746@192: Stopped by user
2014-11-11 11:48:06.382 INFO 2750@1: Flow beginning
2014-11-11 11:48:06.383 INFO 2750@29: File exists?
2014-11-11 11:48:06.386 INFO 2750@41: Variable set
2014-11-11 11:48:06.386 INFO 2750@32: File read text
2014-11-11 11:48:06.394 INFO 2750@30: Variable set
2014-11-11 11:48:06.395 INFO 2750@34: Dialog choice?
2014-11-11 11:48:07.983 INFO 2750@35: Expression true?
2014-11-11 11:48:07.987 INFO 2750@36: Expression true?
2014-11-11 11:48:07.988 INFO 2750@51: Expression true?
2014-11-11 11:48:07.988 INFO 2750@197: Expression true?
2014-11-11 11:48:07.989 INFO 2750@16: For each
2014-11-11 11:48:07.990 INFO 2750@166: Variable set
2014-11-11 11:48:07.991 INFO 2750@167: Expression true?
2014-11-11 11:48:07.996 INFO 2750@139: Fork
2014-11-11 11:48:08.054 INFO 2750@16: For each
2014-11-11 11:48:08.059 INFO 2750@170: Delay
2014-11-11 11:48:08.065 INFO 2751@171: Wi-Fi connected?
2014-11-11 11:48:08.071 INFO 2751@188: Fork
2014-11-11 11:48:08.123 INFO 2751@172: Wi-Fi connected?
2014-11-11 11:48:08.136 INFO 2752@190: Screen lock set state
2014-11-11 11:48:08.138 INFO 2752@191: Device unlocked?
2014-11-11 11:48:08.139 INFO 2752@192: Device unlocked?
2014-11-11 11:48:40.758 INFO 2750@170: Resumed after service restart
2014-11-11 11:48:40.760 INFO 2750@170: Delay
2014-11-11 11:48:40.767 INFO 2751@172: Resumed after service restart
2014-11-11 11:48:40.767 INFO 2751@172: Wi-Fi connected?
2014-11-11 11:48:40.781 INFO 2752@192: Resumed after service restart
2014-11-11 11:48:40.782 INFO 2752@192: Device unlocked?
2014-11-11 11:48:43.497 INFO 2752@0: Stopped at end
2014-11-11 11:48:43.528 DBUG 2751@2751: NETWORK_STATE_CHANGED_ACTION: CONNECTING
2014-11-11 11:48:53.581 DBUG 2751@2751: NETWORK_STATE_CHANGED_ACTION: CONNECTING
2014-11-11 11:48:53.621 DBUG 2751@2751: NETWORK_STATE_CHANGED_ACTION: CONNECTING
2014-11-11 11:48:53.764 DBUG 2751@2751: NETWORK_STATE_CHANGED_ACTION: CONNECTED
2014-11-11 11:48:53.765 DBUG 2751@2751: SupplicantState: COMPLETED
2014-11-11 11:48:53.826 INFO 2751@188: Fork
2014-11-11 11:48:53.929 INFO 2751@172: Wi-Fi connected?
2014-11-11 11:48:53.960 INFO 2753@190: Screen lock set state
2014-11-11 11:48:53.961 INFO 2753@191: Device unlocked?
2014-11-11 11:48:53.963 INFO 2753@192: Device unlocked?
FYI, I noticed when this happens the "resume after restart" message is printed now; by the way, it doesn't restart from the beginning of the flow, but from the block it was interrupted on.
--
You received this message because you are subscribed to the Google Groups "Automate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automate-use...@googlegroups.com.
To post to this group, send email to automa...@googlegroups.com.
Visit this group at http://groups.google.com/group/automate-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/275ba5f4-c1ba-4d71-ba5e-ff9459d2701f%40googlegroups.com.
FYI, I noticed when this happens the "resume after restart" message is printed now; by the way, it doesn't restart from the beginning of the flow, but from the block it was interrupted on.
...
It was Android apparently killing the service (no reboot). I'm not
sure which activities are you referring to.
Nope, I don't usually do that. I wonder if you should try to put an icon for the service, I know you are against that, but maybe you could make it optional?
--
You received this message because you are subscribed to the Google Groups "Automate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automate-use...@googlegroups.com.
To post to this group, send email to automa...@googlegroups.com.
Visit this group at http://groups.google.com/group/automate-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/b38e6d03-9e98-473f-b4bb-6a2708fffd72%40googlegroups.com.
Nope, I don't usually do that. I wonder if you should try to put an icon for the service, I know you are against that, but maybe you could make it optional?