title: Android 11 - Detect apps that can interrupt in DND mode
body: <p>How I can detect expected apps that can interrupt in DND mode?
  Or when the app's notification shows up, can I know that app in the expected list?</p>
  <p>Update: After few days investigation, I'm not sure this is good solution but It's the only clue. In NotificationManager#Policy#toString has something like below</p>
  <pre><code>return &quot;NotificationManager.Policy[&quot;
                          + &quot;priorityCategories=&quot; + priorityCategoriesToString(priorityCategories)
                          + &quot;,priorityCallSenders=&quot; + prioritySendersToString(priorityCallSenders)
                          + &quot;,priorityMessageSenders=&quot; + prioritySendersToString(priorityMessageSenders)
                          + &quot;,priorityConvSenders=&quot;
                          + conversationSendersToString(priorityConversationSenders)
                          + &quot;,suppressedVisualEffects=&quot;
                          + suppressedEffectsToString(suppressedVisualEffects)
                          + &quot;,areChannelsBypassingDnd=&quot; + (((state &amp; STATE_CHANNELS_BYPASSING_DND) != 0)
                              ? &quot;true&quot; : &quot;false&quot;)
                          + &quot;]&quot;;
  </code></pre>
  <p>areChannelsBypassingDnd value is the only clue.</p>