Doing a respring the right way

August 4, 2013 1 minute read

Respringing the “right way” allows SpringBoard to save battery usage data. Otherwise, your usage data is lost and the standby/usage times are reset to “–” until you fully charge again.

Tweaks that respring the right way

  • Activator
  • Auxo
  • Flipswitch
  • Springtomize

(There are probably a few more)

How to respring the right way

In tweaks:

[(SpringBoard *)[UIApplication sharedApplication] _relaunchSpringBoardNow];

From the command line:

Install cycript (Cydia will need to be in developer mode to find it). Create /usr/bin/spring and enter the following contents:

#!/usr/bin/cycript -p SpringBoard
[[SpringBoard sharedApplication] _relaunchSpringBoardNow];

chmod +x /usr/bin/spring to make it executable, and now you can run spring to respring. (You could also call it respring if /usr/bin/respring doesn’t already exist.)

Can there be a “fix” for tweaks that don’t respring the right way?

I’m working on it, not a high priority to get it done though.


This was originally posted at https://gist.github.com/kirb/6149827.

A lot has changed since this was written. See the follow-up post.