ARTICLE AD BOX
My goal is when using remote access via TeamViewer, to autotap on screen sharing prompt when it appears on target device ( Android 16)
I've tried adb commands , it does work.
adb -s 127.0.0.1:5555 shell 'while true; do dumpsys window | grep -iq MediaProjection && input tap 840 1580; sleep 0.2; done'
However, when network switch to mobile data, wireless debugging stops.
The prompt no longer autoclicks.
How to proceed please? I am a no coding expert.
Either (1) How to make wireless debugging survive network switch.
Or
(2) How to make the autoclick permanent
