SAN FRANCISCO (Reuters) - Apple Inc accused HTC Corp, which makes touchscreen smartphones using Google Inc's software, of infringing 20 hardware and software patents related to the iPhone, in a lawsuit filed on Tuesday.