ADB Shell: How do I get the BroadcastReceivers list that will receive the BOOT_COMPLETED Intent?

I am currently debugging an application that should automatically start after the device boots up. To do this, I created BroadcastReceiverand 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 the time on most devices. However, on a single device (MXQ Pro), it works most of the time. Until now, I could not find any patterns when it works and when not.

So, I would like to know which BroadcastReceivers really are currently registered in the system to get the BOOT_COMPLETED Intent.

I played a little with

  • pm: but it only tells me which packages Intent would like to receive
  • dumpsys: but his conclusion is overwhelming, and I don't know what to look for

Thanks for any advice!

+4
1

, - (.. - , ), dumpsys package my.package.name, @pskink, .

, - Android 7.0

adb shell cmd package query-receivers --brief -a android.intent.action.BOOT_COMPLETED

--brief, . :

adb shell cmd package query-receivers --components -a android.intent.action.BOOT_COMPLETED
+1

All Articles