BIG GIANT EDIT: If you do this, Cydia will not allow you to install, or will force uninstall of Saurik's patch for the pdf exploit. This is because the firmware requirements are either < 3.2.2. or =4.0 or =4.0.1. Thus, if cydia thinks you're on 4.0.2, it will uninstall or not allow install of the patch. Just do what dhlizard says in the next post. He is smart, and I am dumb.
Tested ONLY on iPhone 4, not sure about other iDevices. Use at your own Risk
This will make iPhone think you're on 4.0.2., so it won't prompt you to upgrade.
Using iFile or SSH or DiskAid or PhoneDisk or whatever,
1. navigate to System/Library/CoreServices
2. open SystemVersion.plist
3. edit value of "ProductBuildVersion" to "8A400"
4. edit value of "ProductVersion" to "4.0.2"
5. save & respring or reboot
iTunes will now show that you're on 4.0.2
Tested ONLY on iPhone 4, not sure about other iDevices. Use at your own Risk
This will make iPhone think you're on 4.0.2., so it won't prompt you to upgrade.
Using iFile or SSH or DiskAid or PhoneDisk or whatever,
1. navigate to System/Library/CoreServices
2. open SystemVersion.plist
3. edit value of "ProductBuildVersion" to "8A400"
4. edit value of "ProductVersion" to "4.0.2"
5. save & respring or reboot
iTunes will now show that you're on 4.0.2