title: BroadcastReceiver Won't work in android 9 after avoid the linter reports UnsafeProtectedBroadcastReceiver
body: <p>Im using scheduledAlarm to trigger <code>BroadcastReceiver</code> which Start <code>JobIntentService</code> it worked fine but when i inspected the code i got <code>UnsafeProtectedBroadcastReceiver</code> I added if condition check in <code>onReceive</code> method to fillter the action  but <code>JobIntentService</code> didn't work. but if I replaced the condition it worked fine. Note that I'm using android 9.any help thanks in advance
  <strong>BroadCastReceiver</strong> </p>
  
  <pre><code>class BootBroadCastReciever : BroadcastReceiver() {
  
      override fun onReceive(context: Context, intent: Intent) {
  
   if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
           val i = Intent(context, IncomingRequestServices::class.java)
              //Start the service
              context?.let {
                  IncomingRequestServices.enqueueWork(it,i)
          }
      }
  
      }
  
      companion object {
          const val REQUEST_CODE = 12345
      }
  }
  </code></pre>
  
  <p><strong>Mainfest file</strong></p>
  
  <pre><code>  &lt;uses-permission android:name="android.permission.WAKE_LOCK"/&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/&gt;
     &lt;receiver android:name=".BoardcastReciever.BootBroadCastReciever" android:exported="true"&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED"/&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;service
            android:name=".Services.IncomingRequestServices"
            android:exported="false"
            android:permission="android.permission.BIND_JOB_SERVICE"/&gt;
  </code></pre>
  
  <p><strong>JobIntentService</strong></p>
  
  <pre><code>class IncomingRequestServices  : JobIntentService() {
  
      var CHANNEL_ID = "ChannelID"
  
  
      override fun onHandleWork(intent: Intent) {
          //I check for news from server and send notification to user
      }
  
  
  
  
      companion object
      {
          const val JOB_ID = 101
          const val NOTIF_ID = 82
          fun enqueueWork(context: Context, work: Intent)
          {
              JobIntentService.enqueueWork(context,IncomingRequestServices::class.java, JOB_ID, work)
          }
      }
  </code></pre>
  
  <p><strong>alarm</strong></p>
  
  <pre><code>  private fun scheduleAlarm() {
          // Construct an intent that will execute the AlarmReceiver
          val intent = Intent(applicationContext, BootBroadCastReciever::class.java)
          // Create a PendingIntent to be triggered when the alarm goes off
          alarmPendingIntent = PendingIntent.getBroadcast(this, BootBroadCastReciever.REQUEST_CODE,
                  intent, PendingIntent.FLAG_UPDATE_CURRENT)
          // Setup periodic alarm every 5 seconds
          val firstMillis = System.currentTimeMillis() // first run of alarm is immediate
          val intervalMillis = 60000 // as of API 19, alarm manager will be forced up to 60000 to save battery
          val alarm = this.getSystemService(Context.ALARM_SERVICE) as AlarmManager
          // See https://developer.android.com/training/scheduling/alarms.html
          alarm.setInexactRepeating(AlarmManager.RTC_WAKEUP, firstMillis, intervalMi
  
  llis.toLong(), alarmPendingIntent)
          }
  </code></pre>