Resumed after restart during "awaked" delay

129 views
Skip to first unread message

Ivan Petrov

unread,
Sep 2, 2023, 9:40:38 AM9/2/23
to Automate for Android
Hello. From time to time, the application stops at the delay block and does not respond to incoming SMS. "Resumed after restart" appears only after the phone is taken in hand and something is done with it. Automate is used with the "no activity control restrictions" setting. I removed permissions for all programs in the background and left only the 3 most necessary ones. Disabled miui optimization and set performance mode. For a while it seemed to me that this helped, but I was wrong and it continues again and again :( This happens on different phones Xiaomi with 6 and 11 android. Why is this happening and how to fix it?
log:
08-29 09:24:46.744 D 229@130: LocationGet Using location manager: provider=GPS, knownLocation=Location[gps **,******,**,****** acc=48 et=+11d17h58m2s135ms alt=202.0 vel=0.26 bear=176.5 {Bundle[mParcelledData.dataSize=40]}], maxFixAge=18000000
08-29 09:24:57.966 D 229@130: LocationGetonLocationChanged: Location[gps **,******,**,****** acc=25 et=+11d22h58m14s313ms alt=273.0 vel=1.66 bear=8.5 {Bundle[mParcelledData.dataSize=40]}]
08-29 09:24:57.979 I 229@12: Fiber stop
08-29 09:24:57.980 I 228@9: Stopped by block
08-29 09:24:58.011 I 229@113: Expression true?
08-29 09:24:58.011 I 229@170: Delay
08-30 10:40:09.432 I 218@38: Resumed after restart
08-30 10:40:09.436 I 218@38: SMS received
08-30 10:40:09.459 I 219@78: Resumed after restart
08-30 10:40:09.459 I 219@78: Call outgoing
08-30 10:40:09.478 I 229@170: Resumed after restart
08-30 10:40:09.481 I 229@170: Delay
08-30 10:40:09.523 I 229@145: Flow start
08-30 10:40:09.547 I 229@0: Stopped at end

andreas.s...@web.de

unread,
Sep 3, 2023, 7:26:12 AM9/3/23
to Automate for Android
did you set the delay block to wake your device?
And why use a delay block? The SMS block, as I understand it, pauses the fiber until a SMS is received

Иван Петров

unread,
Sep 3, 2023, 11:26:48 AM9/3/23
to Automate for Android

3 fibers launched. One of them has a delay block with awake flag. All 3 fibers stop working and eventually get "Resumed after restart".
воскресенье, 3 сентября 2023 г. в 14:26:12 UTC+3, andreas.s...@web.de:

Ivan Petrov

unread,
Sep 3, 2023, 12:12:46 PM9/3/23
to Automate for Android
Ok I'll try to answer from 1 account.
This problem seems to have the same roots as the one I described earlier in this post: https://groups.google.com/g/automate-user/c/veK6TzjNgZ4
There I was able to wake up the functions of the phone with a "device keep awake" block with an illumination flag. But here it cannot be used, and the wake-up flag in the delay block apparently does not work to the extent necessary to prevent the automate from being put to sleep. I hope the developer can help with this.

The application as a whole does the following:
1) Shows location data and sends it to an emergency number in case of a call there.
2) Sends location data when the SOS button is pressed.
3) Returns data by location when receiving SMS with a password.
Additionally, it makes sure that the GNSS is "warm".

https://llamalab.com/automate/community/flows/44347
воскресенье, 3 сентября 2023 г. в 18:26:48 UTC+3, Иван Петров:

Henrik "The Developer" Lindqvist

unread,
Sep 4, 2023, 6:13:57 AM9/4/23
to Automate for Android
"Resumed after restart" means the app was killed, usually by some non-standard "power save" feature, but it can also occur in a low-memory situation. Xiaomi is sadly one of the worst offenders, see:

Иван Петров

unread,
Sep 4, 2023, 3:35:20 PM9/4/23
to Automate for Android
Yes, I previously studied https://dontkillmyapp.com , but after your recommendation, I decided to double-check the settings again. It turned out the autoload flag was not set. My mistake. Corrected, I will watch the log for a long time and I hope the messages do not appear again. Thank you!

понедельник, 4 сентября 2023 г. в 13:13:57 UTC+3, Henrik "The Developer" Lindqvist:
Reply all
Reply to author
Forward
0 new messages