I am currently debugging an application that should auto-start after the device boots. To this end I have created a BroadcastReceiver
and added it to my AndroidManifest.xml
:
<receiver android:name=".receiver.StartupBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
This works all of the time on most devices. On one device however (an MXQ Pro set-top box) it only works most of the time. So far, I have not been able to find any patterns in when it works and when it does not.
So, I would like to find out which BroadcastReceivers are actually, currently registered with the system to receive the BOOT_COMPLETED Intent.
I played around a bit with
pm
: but this only tells me which packages would like to receive the Intentdumpsys
: but its output is overwhelming and I don't know what to look for
Thanks for any advice!
dumpsys activity -h
? – Urnfielddumpsys activity b
seemed promising, but I can find neither my package name nor the actualBroadcastReceiver
in there, even on devices where everything works. There are hundreds of "ReceiverLists" each with their own ID, but nothing matches the output of, for example,dumpsys package my.package.name
either. Hence the "overwhelming". – Underbrushdumpsys package my.package.name
and got:Receiver Resolver Table: Non-Data Actions: android.intent.action.BOOT_COMPLETED: 52b3eee0 my.package.name/.MyReceiver filter 52b3ef68 Action: "android.intent.action.BOOT_COMPLETED"
– Urnfield