Page 1 of 1

Manually restoring system partition to virgin state

PostPosted: Mon Dec 05, 2016 2:08 pm
by miku2007
I have an iPhone5,2 on 10A405 that I acquired jailbroken. The phone runs pretty poorly and a dpkg -l shows some weird packages having been installed by the previous owner such as CommCenter patches and wacky stuff pertaining to carrier bundles...

Ideally I would like to achieve the following:

1. Restore rootfs contents from a known-good source by manually copying contents (decrypted rootfs dmg from iPhone5,2_6.0_10A405_Restore.ipsw)
2. If possible - move the jailbreak exploit from /var/evasi0n/* to / so I can erase and reset the phone
3. Enjoy my hopefully better-running jailbroken iPhone 5

How is the root filesystem 'personalized' per-restore?
I currently only know of the kernelcache in /System/Library/Caches/com.apple.kernelcaches/

Others?

Baseband firmware? Weird stuff I might not be aware of?

Any input would be extremely appreciated. I would be so happy to get this phone into a decent state.

Re: Manually restoring system partition to virgin state

PostPosted: Tue Dec 06, 2016 7:25 pm
by backendbilly
Playing with the jailbreak process will cost you the jailbreak and you will end up losing it completely if you don't know what you're doing. Without getting into too much detail, consider using tools from the Cydia author such as "Cydia eraser". You can install it through Cydia. Make sure you read about it before proceeding. The aim of this tool is to erase your device without losing the jailbreak. Just make sure you backup before running this tool as you will lose everything on the device. Think of it as a restore without losing the current running iOS version.