Apple has deigned to allow apps that use your iPhone 4's LED flash as a flashlight into the App Store. Some cost money, others do not. Some are well-designed, some not so much. But they all pretty much work.
Snooping around the new iPhone OS 4 software, some have already spotted something interesting: Three new functions called AVCaptureDevice.hasFlash, AVCaptureDevice.flashMode, and AVCaptureDevice.hasTorch. Do these functions mean the next iPhone's camera will get a flash? Possibly. [AppleInsider]