Solutions for iOS non-jailbreak automation scripts

Because Apple's review is too strict, private APIs are not allowed to be put on the appstore, but automated scripts are just needed for many mobile game plug-ins. In order to bypass Apple's restrictions, the existing legal rules are used to realize the automatic operation of the iPhone, similar to the button wizard function, I searched a lot of information, and made a few attempts:

Firstly, PTFakeTouch, appuim, xctest, uitest, monkey and other solutions were abandoned, because they required jailbreaking on the one hand, and code implantation on the other, which did not meet the principle of being simple and easy to use.

Automated scripts need to use scripts to simulate normal human touch and click gestures, that is, common automatic monster killing plug-ins, king glory one-key automatic switch resurrection armor plug-ins, etc., so it is necessary to obtain the touch layer of the Apple mobile phone.

  Refer to Apple's official public protocol file: Bluetooth description file supported by iOS- Apple Support (China)

Human Interface Device (HID) Profile
This profile is available for iPhone 5s and later, iPad Air and later, and iPod touch (6th generation) and later.
HID allows iOS to communicate with Bluetooth keyboards and game controllers.

Judging from the description, the iPhone's USB does not support HID, but Bluetooth does, and the corresponding screen touch and keyboard permissions are opened, so the overall idea is clear, and the automation script command is transmitted through the HID protocol. Let the Apple system automatically serve us.

  Relevant code Demo, message email

Guess you like

Origin blog.csdn.net/harder321/article/details/122259751