2

Is there any way to trigger a reboot of the iPhone programmatically from within your application, either using public or private API?

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
Pankaj Kainthla
  • 2,439
  • 5
  • 31
  • 61

5 Answers5

4

The problem is, u cant reboot the phone without user's confirmation. Apple wont allow you to reboot iphone without user knowing it. This is something which violates Apple's terms.

For rebooting the device, u need to execute a file present in the iphone. This will do the trick. Now comes the hard part, the name and path to the file is something for u to figure out.

HAppy programming!

EMX Dev

Prince iPhone
  • 292
  • 2
  • 5
2

There is private API for this, but Apple would never approve your app on the AppStore.

Pripyat
  • 2,937
  • 2
  • 35
  • 69
1

If you jailbreak your iPhone, you can download Terminal and issue the reboot command.

Lionel
  • 3,188
  • 5
  • 27
  • 40
  • 1
    he just said - you can issue the reboot command - but that's for jailbroken phones only. – Pripyat Sep 04 '10 at 09:04
  • the question asked about doing this programmatically. you apparently cannot call reboot programmatically (e.g. using a system() call), even if your app runs as root. see my answer (http://stackoverflow.com/questions/6419678/iphone-reboot-programmatically/) – Nate Aug 27 '11 at 10:21
0

I answered this similar question with a technique that works (jailbroken phones) as long as you make your package depend on SBSettings:

iphone reboot programmatically

Community
  • 1
  • 1
Nate
  • 31,017
  • 13
  • 83
  • 207
-1

No, there is no legal way. Mostly because of security reasons. What happens if they allow and somebody trying to write some virus. But illegally, yes, it can, Cydia can do that so we can technically do that

vodkhang
  • 18,639
  • 11
  • 76
  • 110