title: Intent PACKAGE_ADDED not registering
body: <p>Hello i am trying to detect application installed so that i can do some analysis on the application and i am using this example i found on stackoverflow to listen for package installs from my current application but nothing is happening in my logcat.</p>
  
  <pre><code>void registerReceiver() {
      IntentFilter filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED);
      filter.addAction(Intent.ACTION_PACKAGE_REMOVED);
      filter.addAction(Intent.ACTION_PACKAGE_CHANGED);
      filter.addDataScheme("package");
  
  }
  
  public void onReceive(Context context, Intent intent) {
      String actionStr = intent.getAction();
      if (Intent.ACTION_PACKAGE_ADDED.equals(actionStr)) {
          Uri data = intent.getData();
          String pkgName = data.getEncodedSchemeSpecificPart();
          //handle package adding...
          Log.i("Logging Service", pkgName);
  
      }
  
  }
  
  &lt;receiver android:name="RealTimeActivity"&gt;
      &lt;intent-filter&gt;
     &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;action android:name="android.intent.action.PACKAGE_ADDED"  /&gt;
      &lt;action android:name="android.intent.action.PACKAGE_CHANGED" /&gt;
      &lt;action android:name="android.intent.action.PACKAGE_INSTALL" /&gt;
      &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
      &lt;action android:name="android.intent.action.PACKAGE_REPLACED" /&gt;
      &lt;/intent-filter&gt;
   &lt;/receiver&gt;
  
  
  &lt;uses-permission android:name="android.permission.BROADCAST_PACKAGE_ADDED" /&gt;
  &lt;uses-permission android:name="android.permission.BROADCAST_PACKAGE_CHANGED" /&gt;
  &lt;uses-permission android:name="android.permission.BROADCAST_PACKAGE_REMOVED" /&gt;
  &lt;uses-permission android:name="android.permission.BROADCAST_PACKAGE_INSTALL" /&gt;
  &lt;uses-permission android:name="android.permission.BROADCAST_PACKAGE_REPLACED" /&gt;
  </code></pre>