title: Broadcast Receiver for BOOT_COMPLETED on API >= 23
body: <p>Currently I've this in my Manifest:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  
      ...
  
      &lt;receiver
          android:name=".receivers.LockerReceiver"
          android:enabled="true"
          android:exported="true"
          &gt;
          &lt;intent-filter android:priority="999"&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;action android:name="android.intent.action.QUICKBOOT_POWERON" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>This does not work on <strong>APIs >= 23</strong>. there's no boot event received ever.
  Now. Since Marshmallow most of the permissions should be asked runtime. But how can I do it if what I want to permit is to receive the <code>BOOT_COMPLETED</code> event?</p>
  
  <p>If I use</p>
  
  <pre><code>&lt;uses-permission-sdk-23 android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  </code></pre>
  
  <p>it appears to work, but should I do something else to ask the permission?</p>