Hi i am trying to get SYSTEM_ALERT_WINDOW permission i have added <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
in my manifest file. Now when i install the release build, it asks for permission and everything works as expected in marshmallow. But when i install it from playstore it automatically grants me SYSTEM_ALERT_WINDOW permission, but when i try to start a System overlay service, it is giving me error.
W/ActivityManager: Appop Denial: Accessing service ComponentInfo{packagename/packagename.classname} from pid=6189, uid=10289 requires appop SYSTEM_ALERT_WINDOW
But when i checked facebook chathead it was working without asking me permissions.
How do i check for appop denial permissions?