I keep getting grey pop-up error messages from an essential app I don't want to uninstall ("xDrip+: No sensor found"). The messages keep displaying outside of the app which is annoying. Is there a way to disable those messages?
I tried finding that out myself but I couldn't even find what this element is called. Any help, even just saying what this message type is called by Android would be a step forward.
I'm quite surprised that apps are allowed to display those intrusive messages whenever they want.
edit: The alert is called a toast.
adb shell appops set PKG_NAME TOAST_WINDOW deny
to prevent toasts from reappearing. Replace PKG_NAME with the package name of the xdrip+ app. To find it, follow my answer here. – Firelord Oct 18 '19 at 12:17