Tri-Me | WebRTC experiment using feature tracking and delaunay | Computer Vision library
kandi X-RAY | Tri-Me Summary
kandi X-RAY | Tri-Me Summary
WebRTC experiment using feature tracking and delaunay triangulation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Tri-Me
Tri-Me Key Features
Tri-Me Examples and Code Snippets
Community Discussions
Trending Discussions on Tri-Me
QUESTION
I've noticed many times, that when I use an app that uses SAW (system-alert-window, AKA "display over other apps) permission (example here), and I open Chrome web browser and reach some website that requires a permission (example here, taken from here), it won't let me grant/deny the permission:
The problemI can't find how they did it, and from which Android version it's possible to check it.
What I've foundSadly as much as I've searched, I actually had more questions.
For example, how come the web browser can't detect which app is showing on top, and tell us to disable it?
Or, now that Android 12 might arrive, there seem to be a new permission to block SAW (here) :
HIDE_OVERLAY_WINDOWS Added in Android S
public static final String HIDE_OVERLAY_WINDOWS Allows an app to prevent non-system-overlay windows from being drawn on top of it
Constant Value: "android.permission.HIDE_OVERLAY_WINDOWS"
Perhaps for this case there aren't many that have asked about it, or for some reason I didn't choose the correct things to write in order to search for an answer.
The questionsHow can I detect if some app is using SAW permission while I show something?
Is there a way to detect which app does that?
What can the API offer for this, and from which version is it available?
I remember I was told that accessibility can be used to draw on top. Sadly I failed to find a tutorial on how to do this, and also of an example of such apps. Would this API be able to detect them too? Or this isn't considered as SAW? Where can I find a tutorial on how to do it, so that I could check it out?
Bonus: how on Android S do you use the new permission to hide SAW?
ANSWER
Answered 2021-Mar-23 at 01:32Actually you can ask MotionEvents if the window is obscured (an alert is being shown over them) so you can tell that you're obscured, but you cannot tell which app is doing it
There are some similar questions that has required explanations How to detect when my Activity has been obscured?
Android detect or block floating/overlaying apps
I'm not sure about item 4, but usually application who use accessibility to reas the screen and show you something magical (like that banned Voodoo app) also require SAW permission and as much as I can remember, Accessibility services are just some callbacks.
- You put the permission in manifest and when you want to hide SAWs simply call
setHideOverlayWindows(true)
https://developer.android.google.cn/about/versions/12/features#hide-application-overlay-windows
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Tri-Me
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page