Apple has won the rights to a patent critical to the iPhone, documents show. Measuring some 358 pages, the patent covers much of the base software for the iPhone, including the operating system and various modules for functions like contacts, stocks, the camera and media playback. The patent also describes hardware components inside and outside of the device, such as the accelerometer, the audio