简体   繁体   English

有没有办法在Android上检测触摸事件的来源?

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

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? 没有root访问权限,有没有办法做到这一点?

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. 更多信息:我将使用它来检测是否有人在其设备上使用自动点击器(auto-tapper?)软件来模仿我的应用程序中的活动。

Bump: Still researching for an answer, I can't find any clear explanation online. 凹凸:还在研究答案,我在网上找不到任何明确的解释。 Can anyone help? 有人可以帮忙吗?

不会。像BotMaker假冒水龙头这样的应用程序(这就是为什么它们需要root才能“注入”这些假冒水龙头的原因),但是在Android中没有真正水龙头和假冒水龙头的概念,因此注入的这些水龙头看起来与任何其他水龙头一样真实应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM