"Boot_completed" after reboot

478 views
Skip to first unread message

amine...@gmail.com

unread,
Dec 28, 2015, 2:17:16 PM12/28/15
to Automate
Hi ! I'm trying to automate a check that would happen each reboot using the "Boot_completed " receiver or the "shutdown" receiver works perfectly as long as i shutdown and reboot manually, but if i use the reboot option of my phone ( Android 4.2.2 - Samsung) it no longer work. Even the "reboot" receiver don't receive anything, have you got some ideas about that ?

Henrik Lindqvist

unread,
Dec 28, 2015, 3:18:11 PM12/28/15
to automa...@googlegroups.com, amine...@gmail.com
The Reboot block, or any other non-standard reboot option, may not broadcast an ACTION_SHUTDOWN to give apps time to close properly, it's not an orderly shutdown.

After a reboot the device may perform a non-standard QUICKBOOT_POWERON, not a proper BOOT_COMPLETED.
Automate try to broadcast a BOOT_COMPLETED in both cases, but maybe Samsung has its own QUICKBOOT_POWERON, i know HTC has one, which Automate handles.

amine...@gmail.com

unread,
Dec 28, 2015, 5:54:42 PM12/28/15
to Automate
Thanks for these explanations ! I tried with a Xperia device and it wasn't working too, so I'll search a workaround. Do you think a feature like "check if sim card is unlocked" is possible ?

Alex Essilfie

unread,
Dec 30, 2015, 4:58:18 PM12/30/15
to Automate, amine...@gmail.com
I am unable to receive the BOOT_COMPLETED broadcast on my Sony Xperia SP (C5503 Android 4.3) device.

The following are the methods I used to try to trigger the BOOT_COMPLETED broadcast
  1. Select Power off from the power menu, wait till the phone goes off and then turn it back on.
  2. Forced power off by pressing the reset button (Xperia SP uses an internal battery).
  3. Select Reboot from the reboot menu in Link2SD.
Is there something that could be preventing me from receiving the broadcast?

below is a simplified version of the flow I am trying to implement.


    Start
      |
┌-----┤
|     ↓
| Broadcast
|  Receive
|     |
|     ↓
|   Delete
|    File
|     |
└-----┘  

As an alternative, is there a block that will stop the flow until the device is restarted?
Specifically, I am looking for something that will pause until the "Resumed after restart" message is written in the log.

Henrik Lindqvist

unread,
Dec 30, 2015, 7:38:19 PM12/30/15
to Automate, amine...@gmail.com
A bug. The flow startup procedure change in the last release. I'm investigating.
The flow example should work.
Reply all
Reply to author
Forward
0 new messages