How to capture and record iOS Touch Events at syst

2019-07-10 14:07发布

问题:

I want to capture all the touch events at the system level, I do not mean capturing at one specified app, but all the apps even the SpringBoard.I tried IOHIDEvent(https://github.com/kennytm/iphone-private-frameworks/tree/master/IOKit/hid), but the runtime headers was changed after iOS4, and now I can not get them of iOS6. May be GSEvent is also a good way, but does anyone known how to do this by GSEvent? Thank you!

回答1:

Take a look at EntryDevLevel excellent answer here on how to capture and record clicks on iOS using iOHID:

iOS touch event notifications (private API)

BTW. His solution works on non jailbroken iOS either.