TapAndTurn icon indicating copy to clipboard operation
TapAndTurn copied to clipboard

Can't manage apps permissions (overlay issue)

Open licaon-kter opened this issue 7 years ago • 18 comments

Steps:

  • have the app installed
  • install some other app (that needs some permissions, like basic Storage, but it's updated to Android 6 and higher so is able to ASK for permissions)
  • see the "Hey this app needs Storage/Camera/whatever permission, do you allow?"
  • press Ok
  • see another dialogue denied
  • press the button
  • scroll to tap and turn
  • enter tap and turn
  • disable
  • back
  • give permission
  • use the other app

licaon-kter avatar Aug 17 '17 09:08 licaon-kter

hmm is there any way around? Its how TnT works, by displaying an overlay...

gabm avatar Aug 17 '17 10:08 gabm

I was thinking about this again and i think there is not that much to do. Google decided to not allow any overlays when asking for permissions... it's different than the install dialog for example, because there it's just forbidden to have an overlay over the button element itself. When asking for permission android seems to check whether there is an overlay somewhere...

TnT needs one overlay to be always enabled to enforce a certain orientation. There is no way around this I'm afraid so the workflow will probably be like this ..

The only thing that should work is disabling TnT by pressing the notification. Though i think you disabled it ...

gabm avatar Aug 17 '17 18:08 gabm

pressing the notification

That a good joke ;) of course I hide it (yes, Android thanks for forcing the devs to either have an useless notification or killing the app... really... great... idea)

licaon-kter avatar Aug 17 '17 18:08 licaon-kter

i know u have it disabled. But is important to state here that people who still have it (like me) should be able to temporarily disable TnT using that button... that's by far the fastest way..

Can u name an app that this happened? I'd like to test whether the notification does what it should in this case...

gabm avatar Aug 17 '17 18:08 gabm

Any app (on Android 6) that has some permission (storage, record audio, photo, phone, whatever), eg. take your Gallery app, force close it, delete all data, start it... it should ask for "storage permission"

licaon-kter avatar Aug 17 '17 19:08 licaon-kter

hmm what a pity, on nougat that doesn't happen :/ can't reproduce...

Okay, I'll close here as won't fix.. there is nothing to do.

gabm avatar Aug 17 '17 19:08 gabm

I guess you've checked this already?

licaon-kter avatar Aug 18 '17 10:08 licaon-kter

Could u please give me some more information about the version of Android that u use and a clear way of reproducing the issue with 2.7.0. As long as I cannot reproduce it's very difficult :/

gabm avatar Aug 28 '17 11:08 gabm

i think there is not that much to do.

Maybe I am missing something, but what about only showing the overlay when the rotate button is to be displayed? It seems the issue is that the overlay is active all the time, even when it isn't even needed.

haarp avatar Aug 28 '17 12:08 haarp

well basically there are two overlays: one is displaying the button and this is only active when necessary...

But the second overlay is basically an empty and invisible view.. this one is requesting the system to have a certain orientation. Therefore it needs to be active all the time...

gabm avatar Aug 28 '17 12:08 gabm

So you are not seeing this say in Android Studio emulating an Android 6 device?

licaon-kter avatar Aug 28 '17 12:08 licaon-kter

But the second overlay is basically an empty and invisible view.. this one is requesting the system to have a certain orientation. Therefore it needs to be active all the time...

Hmm, only if you request an orientation that isn't the default. If rotation is disabled by default, then you'll only need an overlay when you want to switch to landscape. Not ideal, but a workaround.

haarp avatar Aug 28 '17 12:08 haarp

So you are not seeing this say in Android Studio emulating an Android 6 device?

good idea, I'll check... on my android 7 i couldn't reproduce ...

gabm avatar Aug 28 '17 13:08 gabm

Hmm, only if you request an orientation that isn't the default.

this I tried in the past but the recognition of the default orientation was very very unreliable. Also i think that the suggested workaround would result in unpredictable behavior... :/

gabm avatar Aug 28 '17 13:08 gabm

Hello

I too had this issue on Android 6. I recently installed Android 7 and saw 9897157 in action. I can't reproduce the problem any more, and after giving the permission to other apps Tap 'n' Turn seems to be working without any issues.

So, if I've understood correctly, this issue can only reproduced in Android 6 and there isn't anything that can be done to fix it there?

gkaklas avatar Sep 13 '17 14:09 gkaklas

actually I didn't find time to check in emulator :/ ... thats still open, any help of course highly appreciated

gabm avatar Sep 13 '17 14:09 gabm

I can confirm this issue for Android 6 on a Lenovo C2.

Ifthis couldn't be fixed because of Android's restrictions, some explicit and clear hint within TapAndTurn how to workaround e.g. "Disable TaT while installing other apps ..." would be very helpful for new users.

Took me a while to find out that this "screen overlay detected" came from TapAndTurn and NOT from Firefox, or the webpage I've visited. First when I've got this issue also in Nextcloud app, I've started to search more widely. And first after finding this page https://www.androidpit.de/display-overlay-erkannt-fehler-beheben-loesung I was able to detect TapAndTurn as the delinquent ;-)

michaelof avatar Oct 01 '17 14:10 michaelof

Many apps have this overlay, eg. CF.lumen or NavApps, and sometimes it complains about one or another, you don't really know which one. It's a pain. :(

licaon-kter avatar Oct 01 '17 15:10 licaon-kter