Is there a way to detect the source of touch events on Android?

主宰稳场 提交于 2021-02-08 06:51:20

问题


I'm working on an application that needs to distinguish between physical touchscreen (hardware) touches and software simulated touches invoked by other application. Is there any way to do this without root access?

More info: I will be using this to detect if someone is using auto-clicker (auto-tapper?) software on their device to imitate activity in my application.

Bump: Still researching for an answer, I can't find any clear explanation online. Can anyone help?


回答1:


No. Apps like BotMaker fake taps (that's why they require root, to be able to "inject" these fake taps) but it there's no concept of genuine vs fake taps in the Android so these injected will look equally genuine as any other tap to the apps.



来源:https://stackoverflow.com/questions/26952742/is-there-a-way-to-detect-the-source-of-touch-events-on-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!