FakeStandby icon indicating copy to clipboard operation
FakeStandby copied to clipboard

Why does it need accessibility service?

Open Blocked opened this issue 2 years ago • 2 comments

Why is overlay service("Draw over other apps") permission not enough? Most apps can easily draw a blank screen over other apps with just this permission.

Blocked avatar Jul 17 '22 22:07 Blocked

This is because the app does not only draw over other apps but also prevents you from touching throught the overlay and accidentally interacting with the underlying app. To control such things like the touchscreen in such a powerful way you need to use an accessibility service.

JonasBernard avatar Jul 18 '22 21:07 JonasBernard

I think all apps that draw over other apps, prevent touch events from passing through the floating app. For eg,

https://github.com/termux/termux-float

Or vlc in older android versions(androids without Picture In Picture) used this permission to provide a floating player. Touches won't go through to the underlying app.

https://github.com/videolan/vlc-android/blob/5855fc645a177d7870b56f6f9b7768353798e7e3/application/vlc-android/AndroidManifest.xml#L24

Am I missing something?

Blocked avatar Jul 19 '22 11:07 Blocked