• Stars
    star
    509
  • Rank 86,772 (Top 2 %)
  • Language Objective-C++
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simulate touch library for iOS

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.