title: boot_completed not working on Android 10 Q API level 29
body: <p>I have an application that starts an Intent after the boot that works from Android 6 to Android 9 API level 28.</p>
  <p><strong>But this code does not work on Android 10 API level 29</strong>, Broadcast simply does not receive any events and does not run onReceive on MyClassBroadcastReceiver after the boot. Is there any extra permission on Android 10 or configuration that needs to be done?</p>
  <p>Dry part of the example: Manifest:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  package=&quot;com.softniels.autostartonboot&quot;&gt;
  
  &lt;uses-permission android:name=&quot;android.permission.RECEIVE_BOOT_COMPLETED&quot; /&gt;
  
  &lt;application
      android:allowBackup=&quot;true&quot;
      android:icon=&quot;@mipmap/ic_launcher&quot;
      android:label=&quot;@string/app_name&quot;
      android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
      android:supportsRtl=&quot;true&quot;
      android:theme=&quot;@style/AppTheme&quot;&gt;
  
      &lt;activity android:name=&quot;.MainActivity&quot;&gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
              &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;service
          android:name=&quot;com.softniels.autostartonboot.ForegroundService&quot;
          android:label=&quot;My Service&quot;&gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;com.softniels.autostartonboot.ForegroundService&quot; /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  
      &lt;receiver
          android:name=&quot;.StartMyServiceAtBootReceiver&quot;
          android:enabled=&quot;true&quot;
          android:exported=&quot;true&quot;&gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.BOOT_COMPLETED&quot; /&gt;
              &lt;action android:name=&quot;android.intent.action.QUICKBOOT_POWERON&quot; /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p>Here the part that doesn't run on Android 10.</p>
  <pre><code>public class StartMyServiceAtBootReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
          if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
              Log.i(&quot;onReceive&quot;, &quot;call onReceive ACTION_BOOT_COMPLETED&quot;);
              Intent i = new Intent(context, MainActivity.class);
              i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
              context.startActivity(i);
          }
      }
  }
  </code></pre>