How can I force touch events on none routed Android devices

前端 未结 2 946
-上瘾入骨i
-上瘾入骨i 2021-01-29 02:25

I would like to write an application which can programatically generate touch events on the phone.

I have already tried this methods:

  • adb : adb swipe and s
2条回答
  •  -上瘾入骨i
    2021-01-29 03:06

    I would like to find a way to achieve this in a single application which can produce touch outside of the app (from background) and I would like to publish on market.

    This is not possible, outside of what little input faking can be done by an accessibility service.

    How and with what privileges can teamviewer do it?

    If your read that Play Store listing, you will notice that it only works with Samsung devices. That is because the makers of TeamViewer struck a deal with Samsung to enable this sort of integration. Similarly, the TeamViewer team struck deals with a few other device manufacturers. However, they did not do so with all manufacturers, and so TeamViewer does not work on all devices.

提交回复
热议问题