I have two receivers I want to trigger manually and I can't seem to do it. These are the commands I'm using:
adb -s deviceid shell am broadcast -a action android.intent.action.PHONE_STATE
or
adb -s deviceid shell am broadcast -a action android.intent.action.MEDIA_BUTTON
I've tried adding -p mypackage or -n mypackage/myreceiver and they never get triggered. I also don't see anything on logcat. Adb returns result=0, not sure what that means.