title: How to Set BroadcastReceiver Permissions (Security)
body: <p>So I have 2 apps - A and B.</p>
  
  <p>In A i have a BroadcastReceiver. In the <code>receiver</code> tag (manifest file) I specify an <code>android:permission</code> string (let's say <code>com.example.app.SEND</code>). Now B cannot send broadcasts to A anymore. Makes sense!</p>
  
  <p>So what do I have to do in order for B to send broadcasts to A ? In B's manifest, I specified <code>uses-permission</code> tag with <code>android:name</code> set to the same string (<code>com.example.app.SEND</code>) as the receiver's <code>android:permission</code> but still the broadcasts won't go from B to A.</p>
  
  <p>What am I doing wrong ? Or is there something else that needs to be done ?</p>
  
  <p>-- Update --</p>
  
  <p>Here's my app A's receiver tag:</p>
  
  <pre><code>    &lt;receiver
          android:name="com.example.app.MyReceiver"
          android:enabled="true"
          android:exported="true"
          android:permission="com.example.BReceiver.SEND" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.BReceiver" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>And here's the <code>uses-permission</code> tag from my B's manifest:</p>
  
  <pre><code>&lt;uses-permission android:name="com.pycitup.BReceiver.SEND" /&gt;
  </code></pre>