Draw Overlay permission for apps installed from Pl

2020-07-11 08:51发布

问题:

Here is a well-known Q/A about draw overlay permission issue. I observed same behavior on my previous apps also, i.e. it was automatically granted when the app is installed from Play Store.

In my recent app, however, I observed that that permission is not granted even if it is installed from Play Store. At first, I thought that this might be a specific problem for our test devices. However, I wanted to be sure about it by tracking the number of such lack-of-permission situations in the wild through my favorite analytics tool.

We published the version that notifies about this incident yesterday, and the analytics say that we had to manually request for this permission at 80 users, in just 1 day. Ouch!!!

The analytics say that this problem occurs in almost all Android versions, from 6.0 to 9. So it is not the case for just a few versions.

Is there any change about this permission recently? Or, does Play Store have some kind of a whitelist (e.g. Facebook takes it automatically) to grant this permission?

回答1:

Yes, there is a change since beginning of January 2019. For my app I got a first report on 9th January. Only fresh installs of an app are affected.

There are several apps affected, but the selection of apps that still receive the permission automatically seems random. This is a known problem and has been reported to Google, but of course: zero response. See following bug reports for more info:

  • https://issuetracker.google.com/issues/127690549
  • https://issuetracker.google.com/issues/37125806
  • https://issuetracker.google.com/issues/37119304
  • https://issuetracker.google.com/issues/123686422

You might argue that one has to provide a permission check flow anyway, but bear in mind that not all roms provide a UI for granting overlay permission. I don't know of any Android TV rom which provides such interface. Hence this is particularly annoying for TV apps that don't work without this permission.