title: How to broadcast intent with extras through ADB shell?
body: <p>I am trying to send the <code>BATTERY_CHANGED</code> intent through the ADB shell. So far I only managed to send the intent with no information:</p>
  
  <pre><code>am broadcast -a android.intent.action.BATTERY_CHANGED
  </code></pre>
  
  <p>I created an app witch listens for this intent and here is what the system sends every few seconds:</p>
  
  <pre><code>#Intent;action=android.intent.action.BATTERY_CHANGED;launchFlags=0x60000010;i.icon-small=17302838;B.present=true;i.scale=100;i.level=100;S.technology=Li-ion;i.status=5;i.voltage=4155;i.invalid_charger=0;i.plugged=2;i.health=2;i.temperature=280;end
  </code></pre>
  
  <p>When I broadcast the intent my app shows this:</p>
  
  <pre><code>#Intent;action=android.intent.action.BATTERY_CHANGED;launchFlags=0x10;end
  </code></pre>
  
  <p>My question is how can I broadcast the intent through the <code>adb shell</code> with some of these properties/flags (like scale, status, plugged, etc.)?</p>