In Android 6.0.1, the permissive behavior of SYSTEM_ALER_WINDOW, if the user has Google Play version 6.0.5 or higher installed, the permision of SYSTEM_ALERT_WINDOW is automatically turned on (if needed).

https://stackoverflow.com/questions/36016369/system-alert-window-how-to-get-this-permission-automatically-on-android-6-0-an/36019034


I do not understand what changes need to be made in the code so that the permissions turn on automatically?

    1 answer 1

    You got a little misunderstood. The answer in English and white says that this permission automatically granted when you install the application from the market version 6.0.5 or higher. Otherwise, no. And sample code.