Intent filter for PACKAGE_ADDED for a specific package
<p>In my Android app, I'm catching the PACKAGE_ADDED broadcast:</p>

<pre><code>&lt;receiver android:name=".OnAppInstall"&gt;
    &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.PACKAGE_INSTALL" /&gt;
        &lt;action android:name="android.intent.action.PACKAGE_ADDED" /&gt;
        &lt;data android:scheme="package" /&gt;
    &lt;/intent-filter&gt;
&lt;/receiver&gt;
</code></pre>

<p>My app is only concerned with installation of a specific companion app. The data string in the intent goes: <code>package:com.acme.myapp</code>. The intent data Uri is an instance of <code>OpaqueUri</code>; <code>getHost()</code>, <code>getPath()</code>, and <code>getQuery()</code>  all return nulls.</p>

<p>Can I somehow make an intent filter that only allows intents for one specific package ID? </p>