有没有办法在Android上检测触摸事件的来源? [英] Is there a way to detect the source of touch events on Android?

查看:38
本文介绍了有没有办法在Android上检测触摸事件的来源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,它需要区分物理触摸屏(硬件)触摸和其他应用程序调用的软件模拟触摸.有没有办法在没有 root 访问权限的情况下做到这一点?

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:仍在寻找答案,我在网上找不到任何明确的解释.有人可以帮忙吗?

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

推荐答案

没有.像 BotMaker 假点击这样的应用程序(这就是为什么他们需要 root,才能注入"这些假点击),但在 Android 中没有真假点击的概念,因此这些注入的应用看起来与任何其他点击一样真实.

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.

这篇关于有没有办法在Android上检测触摸事件的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆