views:

219

answers:

4

I'm trying to block all user input in my app. That includes touch event,sleep button, home button, etc. It's for jailbroken device. So you can use whatever that works.

Thank you!

+6  A: 

Press and hold the power button.

Alex Reynolds
+1  A: 

Erm, how is this a good idea? There's no way they'd be able to exit the app then.

It's a bad form to ask for help creating what sounds like a malicious app, or at least not provide enough details to make it clear what the heck you're doing.

refulgentis
A: 

Thank you for your answer. But I'm not creating any malicious app. I just want to lock the iPhone under some dangerous circumstances(based on accelerator for example). Users should not use the iPhone until it's safe. Are you willing to share your ideas now?

iphonedev
+2  A: 

Even with a Jailbroken device I dont think there is anyway to prevent the home button from quitting your app. Its a bit like ctrl-alt-delete on windows.

Toby Allen
The hardware buttons are direct interrupts, short of patching the kernel or baseband it isn't possible to disable them, and even that may not be possible depending on how the HW is configured.
Louis Gerbarg