Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate home button press event in iOS 7(Jailbroken)?

How can I simulate the home button press event in iOS 7? I tried, but it only worked at the home screen but not inside the other apps.The problem is mainly about the port, it looks like that if I got the task port of SpringBoard, it works, otherwise not.But how can I get the task port of SpringBoard no matter at the home screen or inside others apps?Thank you!

like image 323
Suge Avatar asked Mar 01 '14 10:03

Suge


1 Answers

[[%c(SBUIController) sharedInstance]clickedMenuButton]; //One tap

[[SBUIController sharedInstance] handleMenuDoubleTap]; //Double tap

[[%c(SBUserAgent) sharedUserAgent] lockAndDimDevice] //Lock button
like image 144
Segev Avatar answered Oct 28 '22 07:10

Segev