title: How can I get the "Display pop-up windows while running in the background" and "Show on Lock screen" permission by default in xiaomi devices?
body: <p>I spent lots of days finding a solution but didn't get it.
  How can i get the &quot;Display pop-up windows while running in the background&quot; and &quot;Show on Lock screen&quot; permission by default without opening other-permission page? I have also tried &quot;SYSTEM_ALERT_WINDOW&quot; but it doesn't work. At first, I thought it was not possible programmatically, but I saw some apps over the play store that have this permission granted and if I replace my app package name with that app package name then my app got permission by default.</p>
  <p><a href="https://i.stack.imgur.com/dK9QV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dK9QV.png" alt="enter image description here" /></a></p>
  <p>please guide me if this permission approves from the play store or possible programmatically.
  Thanks in advance.</p>