BroadcastReceiver not receiving BOOT_COMPLETED

You can emulate all broadcast actions by connecting via adb to the device and open a device shell.

Here we go:

  • open console/terminal and navigating to /platform-tools
  • type adb shell or on linux/mac ./adb shell
  • in the shell type am broadcast -a android.intent.action.BOOT_COMPLETED or whatever action you want to fire

There are a bunch of nice commands coming with adb or the adb shell. Just try it

Regards
Flo

edit: oh damn, i wanted this answer as an answer on the “had to turn phone on/off every time”. sorry folks

Leave a Comment