Is jailbreaking illegal???
Not any more... First jailbreaking was a illegal thing. But not any more. So you can enjoy jailbreaking without any hassle... But some iStores on India and Authorized Resellers in Sri Lanka (Where I live :) saying that they wont accept jailbroken iDevices to claim the warranty. Best thing is to revoke the jailbreak before claiming warranty ;)
So how I can revoke the process of jailbreak? ( how to unjailbreak )
When we jailbreak our iPhone or iPod or iPad the jailbreak tool writes some notes and files on the root drive. By doing a full restore via iTunes, we can delete some of them. To clear the all junk you have to get the DFU mode ( Default Firmware Upgrade ) and then fully restore with iTunes.. Yes it will make your iPhone iPod touch or iPad a neve jailbreaked device :)
Any questions?? Feel free to ask.