是否可以在越狱的iOS设备上在后台捕获触摸事件? [英] Is it possible to capture touch events in the background on a jailbroken iOS device?

查看:57
本文介绍了是否可以在越狱的iOS设备上在后台捕获触摸事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算安装一个涉及被黑iPad的安装项目-我希望有一个后台进程在运行时记录所有触摸事件,而不管前台运行的是哪个应用,然后通过OSC发送出去.

I have an installation project in mind which involves a hacked iPad - I'd like to have a background process running recording all the touch events regardless of what app is running in the foreground, and send them out via OSC.

请注意,这是使用具有root用户访问权限的越狱iPad,系统将提醒用户不要输入任何敏感数据.但是我不是iOS开发人员,所以我不确定这是否可能.我将不胜感激任何投入/建议.

Note that this is using a jailbroken iPad with root access, and users will be alerted about not entering any sensitive data. But I'm not an iOS developer so I'm not sure if this is even possible. I'd appreciate any kind of input/suggestions.

[edit]既然有人问了我这个问题的动机,我将尝试解释一下:具体地说,我想用Arduino构建一个机械系统,以模拟用户在iPad上的触摸输入,但是我不想将他们限制为使用除了记录触摸事件外什么也不做的应用程序.

[edit] Since someone questioned my motive behind this question, I'll try to explain a bit: to be specific, I'd like to build a mechanical system with Arduino that emulates the user's touch input on the iPad, but I do not want to limit them to using an app that does nothing else but recording touch events.

推荐答案

共有三个选项:

  1. 使用IOHIDFamily子系统捕获所有触摸事件.这将为您完成大部分处理,您唯一需要做的就是使用HID客户端获取事件,获取事件的类型,如果是触摸事件,则获取其位置,半径以及您需要的其他内容.
  2. 使用MultitouchSupport框架.这样,您将不得不手动处理数字化仪数据帧,这很棘手.
  3. 使用MobileSubstrate钩子将SpringBoard内已经存在的HID客户端钩住.
  1. Use the IOHIDFamily subsystem to capture all the touch events. This will do most of the processing for you, the only thing you'll need to do is fetch the events using a HID client, get their types, and if they are touch events, get their position, radius and other things you need.
  2. Use the MultitouchSupport framework. This way you will have to process the digitizer data frames manually which is tricky.
  3. Use a MobileSubstrate hook to hook the already existing HID client inside SpringBoard.

这篇关于是否可以在越狱的iOS设备上在后台捕获触摸事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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