Android 12 non blocking overlay is blocking

2,986 views
Skip to first unread message

krabbs

unread,
Dec 8, 2021, 1:31:02 PM12/8/21
to Tasker
Hello, 

i have a pixel 6 with android 12. My non blocking scenes are blocking touch actions. i know the following but i can't get it work :(

Note: Windows of type TYPE_APPLICATION_OVERLAY will not be trusted.

Untrusted touches are blocked by default on devices running Android 12 or later. To allow untrusted touches, run the following ADB command in a terminal window:

# A specific app adb shell am compat disable BLOCK_UNTRUSTED_TOUCHES com.example.app # All apps # If you'd still like to see a Logcat message warning when a touch would be # blocked, use 1 instead of 0. adb shell settings put global block_untrusted_touches 0

krabbs

unread,
Dec 8, 2021, 1:32:10 PM12/8/21
to Tasker

krabbs

unread,
Dec 8, 2021, 1:35:12 PM12/8/21
to Tasker
ah sorry for multiple posts here. i thought i can edit the posts :D

i just want to add the adb output if i try to change the BLOCK_UNTRZSTED_TOUCHES

#adb shell am compat disable BLOCK_UNTRUSTED_TOUCHES  net.dinglisch.android.taskerm
->Cannot override a change on a non-debuggable app and user build.


hopefuly somebody can help

João Dias

unread,
Dec 9, 2021, 4:35:17 AM12/9/21
to Tasker
Hi. Can you please clarify what touch actions they are blocking exactly? Thanks in advance!

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Message has been deleted

krabbs

unread,
Dec 9, 2021, 1:40:16 PM12/9/21
to Tasker
Every touch which is within the scene is blocked. Strange thing is, that this occures in every app and homescreen but not in the tasker ui.
and im pretty sure that this problem is linked to my pixel or to android 12. the same tasks and scenes works fine on my old pixel 2 with android 11.

can i provide somehow more infos or would a logcat help you for debugging?

krabbs

unread,
Dec 9, 2021, 1:50:16 PM12/9/21
to Tasker
Screenshot_20211209-194525.pngScreenshot_20211209-194454.png
For example in chrome I can touch and swipe everywhere but not in the transparent white scene called test. In the tasker ui/App itself I can touch everywhere as expected like the scene was never created

krabbs

unread,
Dec 25, 2021, 4:47:43 AM12/25/21
to Tasker
hey i have a fix:

adb shell settings put global block_untrusted_touches 0

unlike the command above, all apps are now granted these rights. it's a pity that it's only successful for this way, but it now works again.

joaomgcd

unread,
Jan 20, 2022, 7:35:11 AM1/20/22
to Tasker
Thank you! I've now integrated this into Tasker so it changes the setting for you if needed.
Reply all
Reply to author
Forward
0 new messages