devos50 / qemu-ios-generate-nand

36 stars 5 forks source link

Can the process be reversed to get the image back again? #7

Closed zoe-vb closed 1 year ago

zoe-vb commented 1 year ago

So there was a tool I needed to run to patch springboard and the only way to do it was through iOS so is there a way to convert all the pages back into filesystem-readonly.img?

devos50 commented 1 year ago

Hmm yes I think this should be possible. But note that the current version of the emulator doesn't support file persistence (I haven't gotten the write commands to work as it did seem to mess up the VFL/FTL context pages). But this shouldn't really be an issue for running the emulator since these changes are also buffered by VFS AFAIK.

zoe-vb commented 1 year ago

Okay thanks, I made a script in /bin and a LaunchDaemon which executes on boot of the emulator and patches springboard and then restarts it which works just fine instead. I'm going to patch the binary on my own iPod Touch and then create a diff with bsdiff and upload it to my fork of the generate-nand repo so others can replicate my procedure.