Android的全球触摸事件事件、全球、Android

2023-09-05 08:58:24 作者:五行缺钱

我在做一个后台程序一个在Android和想赶在屏幕上的触摸事件。 由于前台应用程序B(当前运行的)是不是我的应用程序, 我不能使用的意图间的应用程序通信。

I'm making a background app A in android, and want to catch the touch event on the screen. Because the foreground app B (currently running one) is not my app, I can't use the intent for inter-app communication.

我可以读出触摸感应像其他GPS或加速度传感器的信息,使用公共的API,挂钩(?),即使在低级别的电容式触摸屏,或以任何方式? (考虑到用户允许的任何权限,但生根)

Can I read the touch sensing information like other GPS or Accelerometer sensors, using public API, hooking(?), even in a low-level from the capacitive touch screen, or in any way? (given the user allowed any permission but rooting)

推荐答案

幸运的是,这是不可能的,明显的安全和隐私的原因。

Fortunately, this is not possible, for obvious security and privacy reasons.

 
精彩推荐
图片推荐