Restart Springboard without locking screen?

隐身守侯 提交于 2019-12-24 07:37:40

问题


Is there any way to restart the Springboard programmatically, but prevent the iPhone from turning on its screen lock following this?

Have tried switching off the screen lock in Settings, but it'll still kick in after a Springboard restart.

(The phone is jailbroken.)


回答1:


As of iPhone OS 3.x, You can bypass the lock screen with notify_post("com.apple.language.changed").


This method no longer work in iOS 5.x because the system now checks whether the language is actually changed before respringing.

However, you could do the following to achieve the same effect:

  1. Set the preference SBLanguageRestart of com.apple.springboard to true (using CFPreferencesSetAppValue and CFPreferencesAppSynchronize, for instance, or directly changing /var/mobile/Library/Preferences/com.apple.springboard.plist)
  2. Kill SpringBoard.



回答2:


Not really a programming question but no, you can't stop the lock screen.



来源:https://stackoverflow.com/questions/1764492/restart-springboard-without-locking-screen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!