4

I want to make an app that won't be released on the App Store. I want this app to open siri through private API's, basically inject a home button press and hold into the events queue. I have tried using GSEvent(GSSendEvent - Inject Touch Event iOS), but it no longer works(it silently fails) after iOS 7. I believe it is possible through SBUIController but I can't figure how to use SBUIController in iOS 8. To be clear, I want to do this on a non-jailbroken phone.

How can I go about doing this in iOS 8?

Thanks

Community
  • 1
  • 1
virindh
  • 3,775
  • 3
  • 24
  • 49
  • It might be helpful to include the code that you tried (but fails after iOS 7). – Andrew Oct 12 '14 at 17:19
  • The code that I tried is in the SO answer linked...it is a known behavior not specific to any code that fails after iOS 7 – virindh Oct 12 '14 at 20:56
  • Keep in mind that in APIs, Apple may refer to "Siri" as the "VirtualAssistant". This may help you find what you need. – Nate Oct 20 '14 at 23:57

1 Answers1

3

You should check out the runtime headers of all the private/public apis here.

I found a method hidden in accessibility, which could possibly work in your case. Have a look at it here: http://git.io/frK6Sw . The method is named -(void)openSiri, which suggest that it might open Siri, I haven't tried though.

Dominik Hadl
  • 3,609
  • 3
  • 24
  • 58
  • I've seen that before! However, i cant understand how to use the runtime headers...I've tried the example in the readme and it doesn't work. Can you please provide an example? Thanks. – virindh Oct 15 '14 at 02:08
  • Sure, have a look at this answer - http://stackoverflow.com/a/13388225/1001803 . You have to copy the private framework and then add the headers yourself (or just write one, where the method names you need are the same). Afterwards you should be able to use it. Btw. if you turn on assistive touch in accessibility, you can see it has a button "open siri", so that means there must be a method which opens siri somewhere in accesibility :) You could probably reverse engineer that, however that could be a little more difficult. – Dominik Hadl Oct 15 '14 at 07:01
  • @DominikHadl - I can understand the open siri part. How do you inject home button? Any example on that? – TorukMakto May 25 '15 at 16:17