general:
am broadcast -a <Intent-Name> -n <Package>/<Receiver-Name-with-leading-dot> <Extras>
example:
am broadcast -a com.google.android.c2dm.intent.REGISTRATION -n de.example/.GCMBroadcastReceiver
--es "registration_id" "1234"
explanation: --es define extra as string
full command:
adb shell am broadcast -a com.google.android.c2dm.intent.REGISTRATION
-n de.example/.GCMBroadcastReceiver --es "registration_id" "1234"
testing:
uncomment android:permission="com.google.android.c2dm.permission.SEND"
from your broadcast receiver configuration.
more details:
adb shell am help for more information.