开发者

Restart Springboard without locking screen?

开发者 https://www.devze.com 2022-12-11 18:24 出处:网络
Is there any way to restart the开发者_StackOverflow社区 Springboard programmatically, but prevent the iPhone from turning on its screen lock following this?

Is there any way to restart the开发者_StackOverflow社区 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.)


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消