You can easily create a springboard icon to respring your device. Here’s how to do it.
Table of Contents
Requirements
- A jailbroken device running iOS 10
- SSH connection
How to Create a Respring Icon iOS 10
Step 1 Install nano and sudo via Saurik’s Cydia source.
Step 2 SSH into your device. Follow this tutorial if you don’t know how to do it.
Step 3 Enter the command given below. This is the script that will run when the Springboard icon is clicked.
sudo /usr/libexec/substrate
killall -9 SpringBoard
Step 4 Type the commands given below. This will edit the sudoers file.
visudo
root ALL=(ALL) ALL
mobile NOPASSWD: /usr/libexec/substrate
With this command, you will not require a password for calling this path. Save and exit.
Step 5 Press control+x to exit. Save it when you are prompted to do so and name that script substratefix. Type “ls” and make sure the file is present in the root.
Step 6 The script is now up and running. Now all that is needed to be done is granting it executable permissions. Type the following commands –
chmod 0550 substratefix
chown root:mobile substratefix
Step 7 Now we move onto the next part – plist file for the Springboard icon. Download the plist file from here. The plist file contains a lot of items that you don’t need to edit. Just edit the following ones –
- CFBundleDisplayName – Name of the Springboard icon
- CFBundleExecutable – Put the name of the file, that is, substratefix
- CFBundleIdentifier – com.example.substratefix
Step 8 Move both files (substratefix and plist) to a folder called nameofapp.app. Move this folder into /Applications.
Step 9 Run this command in termnial.
uicache
Step 10 Reboot your device to test if its working.
Step 11 This step is optional. To add an icon, add an icon called icon-40.png in the .app folder.
I’m trying this with reboot but nopasswd doesn’t seem to work right when sudo is used in a script.
visudo: {without the ALL=(ALL – visudo balks at syntax error}
# User privilege specification
root ALL=(ALL) ALL
mobile All=(ALL) NOPASSWD: /sbin/reboot
# cat /Applications/Reboot.app/Reboot.sh
#! /bin/sh
sudo /sbin/reboot
when launched the application just crashes
when running /Applications/Reboot.app/Reboot.sh as mobile, password is requested.
iPhone:/Applications/Reboot.app root# ls -l
-rw-r–r– 1 root mobile 248485 Nov 22 13:39 Default.png
-rwxr-xr-x 1 root mobile 345 Nov 22 14:12 Info.plist
-rwxr-xr-x 1 root mobile 29 Nov 22 15:53 Reboot.sh
-rw-r–r– 1 root mobile 3183 Nov 22 13:38 icon.png