如何从我的应用程序中以编程方式重启iPhone?

时间:2021-11-08 02:10:31

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

有没有办法使用公共或私有API以编程方式从应用程序中触发重启iPhone?

5 个解决方案

#1


-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

不,没有合法的方式。主要是出于安全原因。如果他们允许并且有人试图写一些病毒会发生什么。但非法,是的,它可以,Cydia可以做到这一点,所以我们可以从技术上做到这一点

#2


5  

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.

问题是,你无法在没有用户确认的情况下重启手机。 Apple不会让你在没有用户知道的情况下重启iphone。这违反了Apple的条款。

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.

要重新启动设备,您需要执行iphone中的文件。这样就可以了。现在是困难的部分,文件的名称和路径是你需要弄清楚的。

HAppy programming!

EMX Dev

#3


2  

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

有私人API,但Apple永远不会在AppStore上批准你的应用程序。

#4


1  

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

如果你越狱iPhone,你可以下载终端并发出reboot命令。

#5


0  

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

我用一种有效的技术(越狱手机)回答了这个类似的问题,只要你让你的包依赖于SBSettings:

iphone reboot programmatically

iphone以编程方式重启

#1


-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

不,没有合法的方式。主要是出于安全原因。如果他们允许并且有人试图写一些病毒会发生什么。但非法,是的,它可以,Cydia可以做到这一点,所以我们可以从技术上做到这一点

#2


5  

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.

问题是,你无法在没有用户确认的情况下重启手机。 Apple不会让你在没有用户知道的情况下重启iphone。这违反了Apple的条款。

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.

要重新启动设备,您需要执行iphone中的文件。这样就可以了。现在是困难的部分,文件的名称和路径是你需要弄清楚的。

HAppy programming!

EMX Dev

#3


2  

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

有私人API,但Apple永远不会在AppStore上批准你的应用程序。

#4


1  

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

如果你越狱iPhone,你可以下载终端并发出reboot命令。

#5


0  

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

我用一种有效的技术(越狱手机)回答了这个类似的问题,只要你让你的包依赖于SBSettings:

iphone reboot programmatically

iphone以编程方式重启