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

2

8

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!

Leninism answered 1/3, 2014 at 10:32 Comment(1)
Might look here! #20998818Chambers
F
8
[[%c(SBUIController) sharedInstance]clickedMenuButton]; //One tap

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

[[%c(SBUserAgent) sharedUserAgent] lockAndDimDevice] //Lock button
Finecut answered 6/3, 2014 at 15:0 Comment(3)
thank you, but can I simulate home button down and up events separately, and how can I simulate volume button click events?Leninism
@Leninism Not that I know of and That's a different question from the initial post. Ask it separately.Finecut
Thank you, may be I can use IOHIDEventSystem to achieve this, but can you take a look at this #22244157, I'll very appreciate it.Leninism
L
0

Kindly check these below links:

1) http://iphonedevwiki.net/index.php/SBApplication

2) Simulate all physical buttons like the pressure on the home button on iOS 7 (Jailbreak)

3) https://github.com/MP0w/iOS-Headers/blob/6e220684809a8e581357c1622efcc002a1df5014/iOS7/PrivateFrameworks/BiometricKit/BiometricKit.h#L68

Hopefully these links help you in resloving your problem. Cheers :)

Lucindalucine answered 13/3, 2014 at 12:26 Comment(2)
Your second link is nothing more than what the first answer posted here describes. Please, don't post redundant information. Thanks.Attica
@Attica yes your right, I just add link of that post that it may help Suge to figure out his problem by reading the complete post and discussion there. ThanksLucindalucine

© 2022 - 2024 — McMap. All rights reserved.