iPhone 4s reboots on unlock I have an Apple iPhone 4s running the last version of iOS that can be jailbroken(the one just before 9.1 I think).

Each time I swipe to unlock, it hangs for a second while displaying the pin entry keypad and then reboots. It reboots to safe mode and then back to normal mode.

This has happened before on version 8.4, but it wasn't connected to WiFi then. Restore fixed it.

I want to know how I can fix it without a restore so I can keep root access. I have root SSH access to the device, which is amazingly still connected to the WiFi. I can also use apt tools(apt-get apt-cache dpkg) and I've removed the last installed tweaks(apt-get purge)(DefaultPlayer and iCleaner).

If I have to restore, is there a way to backup over SSH and restore to a jailbreakable version?
First things first, always backup.


No jailbreakable iOS version is being signed so no, if you restore it you'll lose your jailbreak. 


The problem is probably a theme relates package, try disabling winterBoard themes. 

I would suggest reinstalling the system anyway because if your safe mode isn't working it means that the private system partition is broken, even if you got it working for some reason it would have loads of problems in the future, unfortunately, you'll lose your jailbreak. 

Also, I'd suggest making a backup with iMazing, a great OS X (and windows) tool to manage your iDevices in more detail. 

Sorry for that, 

Tiferrei