title: Marshmallow Intent.ACTION_BOOT_COMPLETED
body: <p>i have a rotted <code>Nexus6</code> With <code>Android6</code>. I've created a system app (located in <code>system/app</code>) i wish to execute a simple code when receiving ACTION_BOOT_COMPLETED but for some reason the code does not executes.. </p>
  
  <p>Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.atest"&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
  
          &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  
          &lt;receiver
              android:name="com.atest.testReceiver"&gt;
              &lt;intent-filter android:enabled="true"&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED"/&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;activity android:name=".MainActivity"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Receiver:</p>
  
  <pre><code>public class testReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
          if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
              // Some simple code
          }
      }
  }
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p><strong>EDIT:</strong>
  When executing with adb the following:</p>
  
  <pre><code>am broadcast -a android.intent.action.BOOT_COMPLETED -p com.atest
  </code></pre>
  
  <p>The code execute as expected, but still when rebooting/booting, no success..</p>