iPhone Software Update 4.02By
iPhone Software 4.02 is now available. Update your iPhone! Hopefully this will fix the proximity sensor issue among other bugs.
Apple today made iOS 4.0.2 available to the iPhone and iPod Touch. iOS 4.0.2 specifically fixes the browser and PDF-related bug that allowed the iPhone to be more easily hacked and controlled. No other new features were noted by Apple. It is recommended for the iPhone 3G, 3GS, iPhone 4, and iPod Touch 2nd and 3rd generations. Apple has already distributed several beta versions of iOS 4.1 to developers. This is not iOS 4.1. Apple also made iOS 3.2.2 available to the iPad to fix a similar problem.