Skip to content

cainxx/SimulateTouch

 
 

Repository files navigation

SimulateTouch

Simulate touch library for iOS

You can make fake touch(even multi-touch) and swipe.

Support iOS6 and 7

REQUIREMENT: RocketBootstrap by Ryan Petrich (https://github.com/rpetrich/rocketbootstrap)

API Info: http://api.iolate.kr/simulatetouch/

and refer to main.mm (stouch; command line tool) for how to use.

How it works

There are two components in this project:

SimulateTouch.dylib MobileSubstrate

This hooks into com.apple.backboardd and exposes a Mach messaging port defined as MACH_PORT_NAME, current code value is kr.iolate.simulatetouch. It listens for Mach messages and uses IOHIDEvents to simulate touches/swipes/buttons.

stouch command line tool

Interprets command line requests into Mach messages and sends it to MACH_PORT_NAME Mach port.

Dependencies

Theos

Follow instructions to setup Theos here.

rocketboostrap

  • Install the rocketbootstrap on the device and copy rocketbootstrap.h and ``rocketbootstrap_dynamic.hfrom/usr/include/` to your `$THEOS/usr/include/`.
  • Copy /usr/lib/librocketbootstrap.dylib from device to your $THEOS/usr/include.

bootstrap.h

Get it from rpetrich's RocketBoostrap repo.

simulatetouch

  • Install simulatetouch on the device and copy /usr/lib/libsimulatetouch.dylib from device to your $THEOS/usr/lib.

About

Simulate touch library for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C++ 92.4%
  • Objective-C 5.3%
  • Makefile 2.3%