title: Android 6.0 Broadcast Receiver don't receive BOOT_COMPLETE
body: <p>My receiver is not working with <code>Android 6.0 Marshmallow</code>.</p>
  
  <p>I am sending a broadcast through adb shell, see below:</p>
  
  <p><code>adb shell am broadcast -a android.intent.action.BOOT_COMPLETED</code> received
  if application was open, App say:Working! </p>
  
  <p>But if the application was not open, it has not been returning anything.</p>
  
  <p>My code is here;</p>
  
  <p>AndroidManifest.xml</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.example.berate.rebootreceiverfromb3r0"&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" android:protectionLevel="signature|development"&gt;&lt;/uses-permission&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;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;receiver android:name="com.example.berate.rebootreceiverfromb3r0.Yakala_Receiver"&gt;
                  &lt;intent-filter&gt;
                      &lt;category android:name="android.intent.category.DEFAULT"&gt;&lt;/category&gt;
                      &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
                      &lt;action android:name="android.intent.action.QUICKBOOT_POWERON" /&gt;
                  &lt;/intent-filter&gt;
              &lt;/receiver&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Receiver.Java;</p>
  
  <pre><code>public class Yakala_Receiver extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          Toast.makeText(context,"i got it ",Toast.LENGTH_SHORT).show();
      }
  }
  </code></pre>
  
  <p>Edit: I have very interesting info, My code is working on samsung (Android 6.0) devices. But my (Android 6.0) devices not responding me</p>